/* =============================================
   Bildirimler – Navbar notification bell & panel
   ============================================= */

/* Bildirim container */
.nav-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

/* Zil butonu */
.nav-notif-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-200);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.nav-notif-btn:hover {
    color: var(--text-100);
    background: rgba(255,255,255,0.08);
}

/* Okunmamış badge */
.nav-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 10px;
    padding: 0 4px;
    font-family: Inter, system-ui, sans-serif;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--bg-100);
}

/* Panel (dropdown) */
.nav-notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: -40px;
    width: 380px;
    max-height: 500px;
    background: var(--bg-200, #1a1a2e);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: notifPanelIn 0.15s ease;
}

@keyframes notifPanelIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Panel header */
.nav-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-notif-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-100);
    font-family: Inter, system-ui, sans-serif;
}

/* Bildirim listesi */
.nav-notif-list {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
}
.nav-notif-list::-webkit-scrollbar {
    width: 5px;
}
.nav-notif-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
}

/* Boş durum */
.nav-notif-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--text-300, #888);
    font-size: 13px;
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.5;
}

/* =============================================
   Tek bildirim öğesi
   Layout: [avatar] [mesaj] [poster]
   ============================================= */
.nav-notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-notif-item:last-child {
    border-bottom: none;
}
.nav-notif-item:hover {
    background: rgba(255,255,255,0.04);
}
.nav-notif-item.notif-unread {
    background: rgba(64,196,255,0.06);
}
.nav-notif-item.notif-unread:hover {
    background: rgba(64,196,255,0.10);
}

/* Sol: Kullanıcı profil fotoğrafı */
.nav-notif-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.06);
}

/* Orta: Bildirim mesajı */
.nav-notif-content {
    flex: 1;
    min-width: 0;
}
.nav-notif-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-200);
    font-family: Inter, system-ui, sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.nav-notif-text strong {
    color: var(--text-100);
    font-weight: 600;
}
.nav-notif-time {
    font-size: 11px;
    color: var(--text-300, #888);
    margin-top: 4px;
    font-family: Inter, system-ui, sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-notif-time i {
    font-size: 10px;
}

/* Sağ: İçerik posteri */
.nav-notif-poster {
    width: 42px;
    height: 58px;
    min-width: 42px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

/* u-hidden helper */
.nav-notif-badge.u-hidden,
.nav-notif-panel.u-hidden {
    display: none !important;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .nav-notif-panel {
        position: fixed;
        top: 56px;
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - 80px);
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .nav-notif-panel {
        right: 4px;
        left: 4px;
        max-height: calc(100vh - 70px);
    }
    .nav-notif-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .nav-notif-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
    .nav-notif-poster {
        width: 36px;
        height: 50px;
        min-width: 36px;
    }
}
