/* =========================================================
   1. GENEL AYARLAR VE SCROLLBAR
========================================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; transition: 0.3s; }
::-webkit-scrollbar-thumb:hover { background: #ff007f !important; }

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { 
    background-color: #0a0a0a; 
    color: #ffffff; 
    height: 100vh; 
    overflow: hidden; 
    position: relative;
}
a { text-decoration: none; cursor: pointer; }

body::before { content: ''; position: fixed; top: -20%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(255,0,127,0.15) 0%, transparent 70%); z-index: -1; pointer-events: none; }
body::after { content: ''; position: fixed; bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(0,255,136,0.1) 0%, transparent 70%); z-index: -1; pointer-events: none; }

/* =========================================================
   2. ORTAK CAM EFEKTLERİ (LIQUID GLASS)
========================================================= */
.liquid-glass {
    background: rgba(18, 18, 18, 0.70) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5) !important;
}

.glass-dark {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}

/* =========================================================
   3. AÇILIR KAPANIR MENÜLER VE PANELLER (DARK DEFAULT)
========================================================= */
.liquid-glass-menu {
    position: absolute;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    display: none;
    z-index: 1000;
    animation: popIn 0.2s ease-out forwards;
    min-width: 160px;
}
.liquid-glass-menu.show { display: block; }
.avatar-action-item {
    padding: 12px 16px; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.2s ease;
    border-radius: 10px; margin-bottom: 2px;
}
.avatar-action-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); }
.avatar-action-item:last-child { border-bottom: 0; }

.avatar-action-item.highlight { color: #00ff88; font-weight: bold; }


@keyframes popIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes dropFadeRight {
    from { opacity: 0; transform: translateY(-10px) translateX(10px); }
    to { opacity: 1; transform: translateY(0) translateX(0); }
}


/* =========================================================
   MODERN TEMA DEĞİŞTİRİCİ (ACTION-ITEM İÇİ MONOKROM)
========================================================= */
/* Kaydırma Çubuğunun Dış İskeleti (Daha kompakt) */
.theme-switch-track {
    position: relative;
    width: 56px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    border: 1px solid #333;
    box-sizing: border-box;
}

body.light-theme .theme-switch-track {
    background: #e5e5e5;
    border-color: #ccc;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Hareket Eden Yuvarlak (Arka Plan Butonu) */
.theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #333; /* Koyu temada: Seçili olanın arkasındaki koyu buton */
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* AÇIK TEMA DURUMU (Top Solda) */
body.light-theme .theme-switch-thumb {
    background: #fff; /* Açık temada: Beyaz buton */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transform: translateX(0);
}

/* KOYU TEMA DURUMU (Top Sağda) */
body:not(.light-theme) .theme-switch-thumb {
    transform: translateX(26px); /* Kutu genişliğine göre tam sağa kayar */
}

/* İkonların (Güneş/Ay) Kendisi */
.theme-switch-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* İkonlar her zaman hareket eden topun ÜSTÜNDE durur */
    transition: color 0.3s;
}

.theme-switch-icon svg {
    width: 12px; /* İkonlar butona tam oturur */
    height: 12px;
}

/* --- KOYU TEMA RENKLERİ --- */
body:not(.light-theme) .icon-sun { color: #555; } /* Pasif Güneş */
body:not(.light-theme) .icon-moon { color: #fff; } /* Aktif Ay (Bembeyaz ve belirgin) */

/* --- AÇIK TEMA RENKLERİ --- */
body.light-theme .icon-sun { color: #000; } /* Aktif Güneş (Simsiyah ve belirgin) */
body.light-theme .icon-moon { color: #999; } /* Pasif Ay */


/* =========================================================
   HIZLI OLUŞTUR (+) MENÜSÜ CSS
========================================================= */
.quick-add-btn {
    position: relative;
    cursor: pointer;
}

/* BÜYÜMEYİ (SCALE) ZORLA İPTAL ET */
.quick-add-btn:hover {
    transform: none !important;
}

.quick-add-menu {
    position: absolute;
    top: 50px;
    right: 0; /* Menüyü ikonun sağ hizasından açar */
    width: 220px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: popIn 0.2s ease-out;
    z-index: 100000;
}

.quick-add-menu.show {
    display: flex;
}

.quick-add-menu .action-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ddd;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.notification-icon-wrap quick-add-btn:hover { transform: transform 0,3s ease !important; }

.quick-add-menu .action-item:last-child { border-bottom: none; }
.quick-add-menu .action-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.quick-add-menu .action-icon-svg { width: 18px; height: 18px; }

/* Koyu Temada İlan Yayınla Vurgusu (Yeşil) */
.quick-add-menu .add-ad-item { color: #00ff88; font-weight: 600; }
.quick-add-menu .add-ad-item svg { stroke: #00ff88; }
.quick-add-menu .add-ad-item:hover { background: rgba(0, 255, 136, 0.1); }

/* --- AÇIK TEMA (LIGHT THEME) DESTEĞİ --- */
body.light-theme .quick-add-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

body.light-theme .quick-add-menu .action-item {
    color: #444;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .quick-add-menu .action-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* Açık Temada İlan Yayınla Vurgusu (Pembe) */
body.light-theme .quick-add-menu .add-ad-item { color: #ff007f; }
body.light-theme .quick-add-menu .add-ad-item svg { stroke: #ff007f; }
body.light-theme .quick-add-menu .add-ad-item:hover { background: rgba(255, 0, 127, 0.1); }