/* --- HEADER & GLASSMORPHISM --- */
.site-header {
    position: sticky; top: 0; z-index: 1000; padding: 16px 0;
    background: rgba(251,248,246,0.75); backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(239, 231, 223, 0.5); transition: var(--transition-smooth);
}
.site-header.scrolled { padding: 12px 0; border-bottom-color: var(--border); box-shadow: 0 10px 30px -15px rgba(26,38,35,0.1); background: rgba(255,255,255,0.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* LOGO CSS GÜNCELLEMESİ */
.logo { 
    text-decoration: none; 
    transition: transform 0.3s; 
    display: flex; 
    align-items: center; 
}
.logo img {
    height: 40px; /* Logonu webapp stiline uygun, şık bir yüksekliğe sabitledik */
    width: auto;
    object-fit: contain; /* Oranları bozmadan sığdırır */
}
.logo:hover { transform: scale(1.02); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); position: relative; }
.main-nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background-color: var(--primary); transition: width 0.3s ease; border-radius: 2px;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; position: relative; color: var(--ink); transition: var(--transition-bounce); }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }

/* Giriş Yapan Kullanıcı Paneli & Dropdown */
.user-dropdown { position: relative; }
.user-chip { display: none; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px 6px 6px; cursor: pointer; transition: var(--transition-smooth); }
.user-chip:hover { border-color: var(--mint); box-shadow: var(--shadow-soft); }
.user-chip.show { display: flex; }
.user-chip .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--secondary)); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.user-chip span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.desktop-only { display: inline-block; }

.dropdown-menu {
    display: none; position: absolute; background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; min-width: 220px; box-shadow: 0 15px 35px -5px rgba(0,0,0,0.1);
    overflow: hidden; z-index: 80; animation: fadeDrop 0.2s ease forwards;
}
@keyframes fadeDrop {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-menu a { display: block; padding: 12px 20px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; transition: background 0.2s; }
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }

/* Bildirim Paneli */
.notif-wrap { position: relative; }
.badge-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); }
.notif-panel { position: absolute; top: 56px; right: 0; width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: var(--transition-bounce); z-index: 70; overflow: hidden; }
.notif-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.notif-panel h4 { padding: 18px 20px; font-size: 15px; border-bottom: 1px solid var(--border); background: var(--bg); }
.notif-item { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: background 0.2s; cursor: pointer; }
.notif-item:hover { background: var(--bg); }
.notif-item:last-child { border-bottom: none; }
.notif-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 8px rgba(232,93,4,0.4); }
.notif-item p { font-size: 13.5px; margin-bottom: 4px; color: var(--ink); }
.notif-item span { font-size: 11.5px; color: var(--ink-soft); font-weight: 500; }

.menu-toggle { display: none; }
.auth-actions { display: flex; gap: 10px; }
.auth-actions.hide { display: none; }
.text-danger { color: #EA647F !important; }

/* --- MOBİL MENÜ DRAWER --- */
.mobile-drawer { display: none; position: fixed; inset: 0; z-index: 1500; background: rgba(13,20,18,0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 88vw); background: var(--surface); padding: 30px 26px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); display: flex; flex-direction: column; gap: 30px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.mobile-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
/* MOBİL MENÜ DRAWER LOGO CSS GÜNCELLEMESİ */
.drawer-top .mobile-logo { height: 32px; width: auto; object-fit: contain; }
.drawer-close { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; }
.drawer-panel nav { display: flex; flex-direction: column; gap: 8px; }
.drawer-panel nav a { padding: 14px 10px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-panel nav a::after { content: '→'; opacity: 0; transform: translateX(-10px); transition: var(--transition-smooth); color: var(--primary); }
.drawer-panel nav a:hover { color: var(--primary); padding-left: 15px; }
.drawer-panel nav a:hover::after { opacity: 1; transform: translateX(0); }

@media (max-width: 992px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex !important; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; }
    .mobile-drawer { display: block; }
}
@media (max-width: 640px) {
    .desktop-only { display: none; }
    .user-chip { padding: 4px; border-radius: 50%; justify-content: center; border: 1px solid var(--border); }
    /* MOBİLDE LOGO KÜÇÜLTME */
    .logo img { height: 32px; }
}
/* Bildirim paneli (2026-10-17) */
.notif-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.notif-head a { font-size: 12px; color: var(--primary); text-decoration: none; font-weight: 600; }
#notifBadge.badge-dot { min-width: 18px; height: 18px; width: auto; padding: 0 5px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #fff; display: none; align-items: center; justify-content: center; line-height: 1; }
.notif-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; }
.notif-item.unread { background: rgba(232,93,4,.07); }
.notif-item:hover { background: rgba(0,0,0,.04); }
.notif-icon { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.notif-item p { margin: 0 0 2px; font-size: 13px; color: var(--ink); line-height: 1.4; }
.notif-item span { font-size: 11.5px; color: var(--ink-soft); }
.notif-all { display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; border-top: 1px solid var(--border); margin-top: 6px; }
#notifList { max-height: 380px; overflow-y: auto; }
