﻿/* Bildirim Container */
.notification-container {
    position: relative;
    margin-right: 8px;
}

.bell-button {
    position: relative;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .bell-button:hover {
        background: #f0f2f5;
    }

.bell-icon {
    font-size: 20px;
    color: #6b7280;
}

.badge1 {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: none;
}

 .badge1.show {
     display: block;
 }

/* Sallanma animasyonu - daha hızlı ve güçlü */
@keyframes ring {
    0% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(-25deg);
    }

    10% {
        transform: rotate(25deg);
    }

    15% {
        transform: rotate(-25deg);
    }

    20% {
        transform: rotate(25deg);
    }

    25% {
        transform: rotate(-20deg);
    }

    30% {
        transform: rotate(20deg);
    }

    35% {
        transform: rotate(-15deg);
    }

    40% {
        transform: rotate(15deg);
    }

    45% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    55% {
        transform: rotate(-5deg);
    }

    60% {
        transform: rotate(5deg);
    }

    65% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.bell-icon.ringing {
    animation: ring 0.8s ease-in-out;
    transform-origin: top center;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification-panel {
    position: absolute;
    top: 35px;
    right: 0;
    width: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid #e5e7eb;
    max-height: calc(100vh - 100px); /* Ekrana sığsın */
    overflow: hidden; /* Panel kendisi scroll yapsın */
}

    .notification-panel.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

.panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .panel-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
        margin: 0;
    }

.unread-count {
    color: #c084fc;
    font-size: 13px;
    font-weight: 500;
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
}

    .notification-list::-webkit-scrollbar {
        width: 6px;
    }

    .notification-list::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }

.notification-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f9fafb;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

    .notification-item:hover {
        background: #fafbfc;
    }

        .notification-item:hover .close-btn {
            opacity: 1;
        }

    .notification-item:last-child {
        border-bottom: none;
    }

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: white;
}

.icon-messages {
    background: #6366f1;
}

.icon-orders {
    background: #d946ef;
}

.icon-profile {
    background: #06b6d4;
}

.icon-offers {
    background: #f97316;
}

.icon-events {
    background: #3b82f6;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.notification-text {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: #d1d5db;
}

.notification-text .highlight {
    color: #f59e0b;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

    .close-btn:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

    .close-btn i {
        font-size: 9px;
        color: #9ca3af;
    }

.panel-footer {
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
}

    .panel-footer button {
        flex: 1;
        padding: 11px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

.mark-read-btn {
    background: #f3f4f6;
    color: #6b7280;
}

    .mark-read-btn:hover {
        background: #e5e7eb;
    }

.view-all-btn {
    background: #6366f1;
    color: white;
}

    .view-all-btn:hover {
        background: #4f46e5;
    }

@media (max-width: 480px) {
    .notification-panel {
        width: calc(100vw - 40px);
        right: -160px;
    }
}

.badge1 {
    all: unset !important;
}

/* Yeni notification dot */
#notificationDot {
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    background: #ef4444 !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    border: none !important;
    display: none !important;
}

    #notificationDot.show {
        display: block !important;
    }

.notification-empty {
    padding-left: 20px;
    padding-top: 20px;
    font-size: 14px;
    color: #777;
}


/* ---------------- ICON COLORS ---------------- */

.notification-icon.info {
    background-color: #2196F3;
    color: #fff;
}

.notification-icon.success {
    background-color: #4CAF50;
    color: #fff;
}

.notification-icon.warning {
    background-color: #FF9800;
    color: #fff;
}

.notification-icon.error {
    background-color: #F44336;
    color: #fff;
}

.notification-item.info .notification-title {
    color: #1565C0;
}

.notification-item.success .notification-title {
    color: #2E7D32;
}

.notification-item.warning .notification-title {
    color: #EF6C00;
}

.notification-item.error .notification-title {
    color: #C62828;
}
