/*
 * ============================================================================
 * Proje Adı: AI Tools (Yapay Zeka Evreni)
 * Dosya: style.css
 * Hazırlayan: Bilgisayar Programcılığı Öğrencisi
 * Açıklama: Sitenin tüm tasarım ve animasyon kodları buradadır kanka.
 * Not: Flexboxları zor ayarladım, umarım telefonda kaymaz.
 * ============================================================================
 */

/* --- GENEL AYARLAR VE TEMA DEĞİŞKENLERİ --- */
:root {
    /* Varsayılan Dark Tema */
    --bg-color: #0a0b14;
    --sidebar-bg: #0a0b14;
    --card-bg: #161926;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    --input-bg: #161926;
    --primary-color: #38bdf8;
    --hover-bg: rgba(56, 189, 248, 0.1);
    --card-border: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(0, 0, 0, 0.1);
    --input-bg: #f1f5f9;
    --primary-color: #0284c7;
    --hover-bg: rgba(2, 132, 199, 0.1);
    --card-border: rgba(0, 0, 0, 0.1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background-color: var(--bg-color) !important; 
    color: var(--text-color); 
    overflow-x: hidden; 
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- SIDEBAR (SOL MENÜ TASARIMI) --- */
.sidebar { 
    width: 260px; 
    background-color: var(--sidebar-bg); 
    border-right: 1px solid var(--border-color); 
    padding: 30px 20px; 
    display: flex; 
    flex-direction: column; 
    position: fixed; 
    height: 100vh; 
    z-index: 10; 
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.logo { margin-bottom: 40px; /* Logonun altından 40px boşluk bırakır */ }
.logo-text { 
    color: #38bdf8; /* Logo metni rengi (açık mavi) */
    font-weight: 800; /* Yazıyı çok kalın yapar */
    font-size: 1.5rem; /* Yazı büyüklüğünü ayarlar */
}

.menu { display: flex; flex-direction: column; gap: 10px; /* Menü elemanları arasına 10px boşluk koyar */ }
.menu-item { 
    text-decoration: none; /* Linklerin altındaki varsayılan çizgiyi kaldırır */
    color: #94a3b8; /* Normal durumda menü yazısı rengi (gri tonu) */
    padding: 12px 15px; /* Menü öğelerine iç boşluk verir */
    border-radius: 10px; /* Köşeleri yuvarlatır */
    transition: 0.3s; /* Renk değişimlerinin aniden değil, 0.3 saniyede yumuşak olmasını sağlar */
    font-weight: 600; /* Yazıyı yarı kalın yapar */
    display: block; /* Öğenin tüm genişliği kaplamasını sağlar */
}

/* Fareyle menü elemanının üzerine gelindiğinde (hover) veya aktif olduğunda çalışır */
.menu-item:hover, .menu-item.active { 
    background: rgba(56, 189, 248, 0.1); /* Arka plana çok hafif şeffaf mavi verir */
    color: #38bdf8; /* Yazı rengini açık mavi yapar */
}

.premium-section { margin-top: auto; padding-bottom: 20px; /* Premium kutusunu en aşağı iter ve alttan boşluk bırakır */ }

/* --- ANA İÇERİK ALANI (Sağ Taraftaki Büyük Alan) --- */
.main-content { 
    flex: 1; /* Kalan tüm boş alanı kaplamasını sağlar */
    margin-left: 260px; /* Sol menü genişliği kadar (260px) soldan boşluk bırakır ki yazılar menünün altında kalmasın */
    padding: 40px 60px; /* İçeriğin üst/alt 40px, sağ/sol 60px iç boşluğu olur */
    position: relative; /* İçindeki bazı animasyonların düzgün yerleşmesi için pozisyonu baz alınır */
}

/* Animasyonun sadece üstte görünmesini ve aşağı doğru şeffaflaşmasını sağlayan kısım */
#hero-canvas { 
    position: absolute; /* Ana içerik alanında serbestçe yerleşmesini sağlar */
    top: 0; left: 0; /* En sol üste sabitler */
    width: 100%; height: 600px; /* Genişliği tam, yüksekliği 600px ile sınırlar */
    z-index: -1; /* Animasyonu yazıların/kartların arkasına (en alta) atar */
    pointer-events: none; /* Mouse tıklamalarının canvas içinden geçip aşağıdaki butonlara işlemesini sağlar */

    /* Bu kısım animasyonun alt kısımdaki kartlara geçerken yumuşakça silinmesini (fade-out) sağlar */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.top-header { 
    display: flex; /* Sağ üst köşedeki elemanları hizalar */
    justify-content: flex-end; /* İçeriği en sağa yaslar */
    margin-bottom: 50px; /* Alttan 50px boşluk bırakır */
    min-height: 50px; /* Kutunun en az 50px yüksekliğinde olmasını sağlar */
}

/* --- AUTH & PREMIUM UI (Giriş & Premium Key Alanı) --- */
.auth-container {
    display: flex;
    flex-direction: column; /* İçindeki öğeleri alt alta dizer */
    align-items: flex-end; /* Tüm öğeleri sağ tarafa hizalar */
    gap: 12px; /* Öğeler arasında 12px boşluk bırakır */
}

/* Normal Giriş/Kayıt Butonu Stilleri */
.auth-btn { 
    background: rgba(255, 255, 255, 0.05); /* Yarı saydam beyaz arka plan */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Hafif beyaz çerçeve */
    color: white; padding: 10px 20px; 
    border-radius: 8px; /* Köşeleri yuvarlatır */
    cursor: pointer; /* Mouse ile üzerine gelince imlecin el şeklini almasını sağlar */
    font-weight: 600; transition: 0.3s;
}
.auth-btn:hover { background: rgba(255, 255, 255, 0.15); /* Üzerine gelince biraz daha belirginleşir */ }

/* Key Aktifleştirme Kutusu Stilleri */
.key-activation-box {
    background: rgba(16, 18, 27, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2); /* Mavi ince çerçeve */
    padding: 8px; border-radius: 12px;
    display: flex; gap: 8px;
    backdrop-filter: blur(10px); /* Arka planı hafifçe buzlu/bulanık gösterir (Glassmorphism) */
    animation: fadeIn 0.5s ease; /* Ekrana yumuşak bir giriş efektiyle gelmesini sağlar */
}

.key-input {
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; padding: 8px 12px; border-radius: 6px;
    font-size: 0.8rem; outline: none; /* Tıklayınca oluşan varsayılan kalın çerçeveyi kaldırır */
    width: 160px;
}

.key-btn {
    background: #38bdf8; color: #000; border: none;
    padding: 8px 15px; border-radius: 6px; font-weight: 700;
    font-size: 0.75rem; cursor: pointer; transition: 0.3s;
}
.key-btn:hover {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5); /* Üzerine gelince mavi bir parlama yapar */
    transform: translateY(-2px); /* Butonu hafifçe yukarı kaldırır */
}

/* Premium Olduğunu Gösteren Rozet */
.premium-status-badge {
    background: linear-gradient(45deg, #f59e0b, #fbbf24); /* Altın rengi geçiş (gradient) verir */
    color: #000; padding: 6px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 800;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); /* Etrafa altın rengi ışık saçar */
    letter-spacing: 0.5px;
}

/* --- HERO & FİLTRELER (Ana Başlık ve Arama Çubuğu) --- */
.main-title { 
    font-size: 2.8rem; font-weight: 800; text-align: center; /* Yazıyı ortalar */
    background: linear-gradient(to right, #ffffff, #94a3b8); /* Yazıya beyazdan griye geçişli renk verir */
    -webkit-background-clip: text; background-clip: text; /* Rengi arka plana değil, yazının kendisine uygular */
    -webkit-text-fill-color: transparent; /* Geçişli rengin görünmesi için asıl yazı rengini şeffaf yapar */
    margin-bottom: 35px; 
}

.search-container {
    margin-bottom: 35px; text-align: center;
}
.search-box { 
    width: 100%; max-width: 650px; 
    padding: 16px 28px; background: rgba(16, 19, 32, 0.85); 
    border: 2px solid rgba(56, 189, 248, 0.35); border-radius: 35px; 
    color: #ffffff; display: block; margin: 0 auto; 
    font-size: 1.05rem; font-weight: 500;
    outline: none; transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(56, 189, 248, 0.05);
    backdrop-filter: blur(15px);
}
.search-box:focus { 
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3), 0 10px 40px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}
.search-box::placeholder {
    color: #94a3b8; font-weight: 500;
}

.filter-bar { 
    display: flex; justify-content: space-between; align-items: center; 
    margin: 40px 0 60px 0; max-width: 1000px; margin-left: auto; margin-right: auto; /* Çubuğu ortalar */
}

/* Kategori Filtre Butonları */
.filter-btn { 
    background: transparent; border: 1px solid var(--border-color); 
    color: var(--text-muted); padding: 8px 22px; border-radius: 20px; 
    cursor: pointer; font-weight: 600; transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover { 
    background: #38bdf8; color: #0a0b14; border-color: #38bdf8; /* Aktif olduğunda mavi olur */
}

/* Karşılaştır Butonu Özel Stili */
.compare-btn {
    background: linear-gradient(45deg, #f59e0b, #fbbf24); /* Altın rengi arka plan */
    color: #000; border: none; padding: 8px 25px; border-radius: 20px;
    font-weight: 800; cursor: pointer;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); transition: 0.3s; letter-spacing: 0.5px;
}
.compare-btn:hover {
    transform: translateY(-2px); /* Tıklanma hissi için yukarı kaydırır */
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.7); /* Işığı artırır */
}

/* --- MODEL KARTLARI (GRID SİSTEMİ) --- */
.tools-grid { 
    display: grid; /* Kartları yan yana grid (ızgara) sistemiyle dizer */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Her bir kartın en az 300px olmasını sağlar, ekran büyüdükçe yan yana dizer */
    gap: 25px; /* Kartlar arasında 25px boşluk bırakır */
}

/* Yükleme Ekranı (Splash Screen) */
.splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #0a0b14; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
.splash-content { text-align: center; animation: splashPulse 1.5s infinite; }
.splash-logo { width: 80px; height: 80px; background: #38bdf8; border-radius: 20px; margin: 0 auto 20px; animation: spin 2s linear infinite; }
.splash-text { font-size: 2.5rem; color: white; margin-bottom: 10px; }
.splash-sub { color: #94a3b8; font-size: 1.1rem; }

@keyframes splashPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Favori İkonu */
.fav-btn-icon {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8; width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; font-size: 1.2rem;
    z-index: 5;
}
.fav-btn-icon:hover { transform: scale(1.1); background: rgba(0,0,0,0.6); }
.fav-btn-icon.favorited { color: #ef4444; border-color: #ef4444; }

/* Tavsiye Butonları */
.advisor-option-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(56,189,248,0.3);
    color: #e2e8f0; padding: 10px; border-radius: 8px; cursor: pointer;
    text-align: left; transition: 0.2s; font-size: 0.85rem; font-weight: 600;
}
.advisor-option-btn:hover { background: rgba(56,189,248,0.15); transform: translateX(5px); }

.card { 
    background: rgba(22, 25, 38, 0.6); /* Yarı saydam arka plan */
    backdrop-filter: blur(12px); /* Cam efekti */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 20px; padding: 25px; 
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 260px; transition: 0.4s ease;
    animation: cardAppear 0.4s ease forwards;
}

.card:hover { 
    transform: translateY(-10px);
    border-color: #38bdf8; 
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.2), inset 0 0 15px rgba(56, 189, 248, 0.1); /* Neon glow eklendi */
}

/* İncele Butonu */
.details-link { 
    display: block; width: 100%; margin-top: 20px; padding: 12px; 
    background: rgba(56, 189, 248, 0.05); color: #38bdf8; text-align: center; 
    text-decoration: none; font-weight: 700; border: 1px solid rgba(56, 189, 248, 0.2); 
    border-radius: 12px; transition: 0.3s;
}
.details-link:hover { background: #38bdf8; color: #000; /* Üzerine gelince içi dolu mavi olur */ }

/* --- MODAL (AÇILIR PENCERE) STİLLERİ --- */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); /* Arka planı koyulaştırır */
    display: flex; justify-content: center; align-items: center; /* Pencereyi ekranın tam ortasına getirir */
    z-index: 1000; /* Her şeyin üstünde çıkmasını sağlar */
    backdrop-filter: blur(8px); /* Arkada kalan siteyi bulanıklaştırır */
}

.auth-card { 
    background: #161926; padding: 40px; border-radius: 24px; 
    border: 1px solid rgba(56, 189, 248, 0.3); width: 380px; 
    box-shadow: 0 0 50px rgba(0,0,0,0.6); 
}

.auth-card h2 { 
    margin-bottom: 25px; text-align: center; color: #38bdf8; font-size: 1.8rem; letter-spacing: -0.5px;
}

.admin-input { 
    background: #0a0b14; border: 1px solid #333; color: #fff; padding: 12px; 
    width: 100%; border-radius: 8px; margin-bottom: 15px; outline: none;
}
.admin-input:focus { border-color: #38bdf8; }

/* --- ANİMASYONLAR --- */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(-10px); } /* Görünmez ve biraz yukarıda başlar */
    to { opacity: 1; transform: translateY(0); } /* Tam görünür olur ve yerine oturur */
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px); } /* Kartlar sayfa açılışında aşağıdan gelir */
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateBox {
    0% { transform: rotate(0deg); border-color: #38bdf8; }
    50% { transform: rotate(180deg); border-color: #f59e0b; } /* Renk değiştirerek döner */
    100% { transform: rotate(360deg); border-color: #38bdf8; }
}

/* --- LOGO KUTU ANİMASYONU --- */
.logo { position: relative; display: flex; align-items: center; justify-content: center; height: 60px; margin-bottom: 40px; }

/* Dönen kare kutu efekti */
.logo-box {
    position: absolute; width: 45px; height: 45px; border: 2px solid #38bdf8; border-radius: 8px;
    animation: rotateBox 4s linear infinite; /* Sonsuza kadar 4 saniyede bir tur döner */
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); z-index: 1;
}

.logo-text { position: relative; z-index: 2; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; text-shadow: 0 0 10px rgba(0,0,0,1); }


/* --- MOBİL UYUMLULUK (Responsive Design) --- */
.mobile-nav-toggle {
    display: none;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 1.3rem;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.mobile-nav-toggle:hover {
    background: rgba(56, 189, 248, 0.25);
    transform: scale(1.03);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Ekran genişliği 768px'den küçükse (Tablet veya Telefon) */
@media (max-width: 768px) {
    .mobile-nav-toggle { display: flex; }
    .sidebar-close-btn { display: block; }
    
    .sidebar { 
        position: fixed;
        left: -280px; /* Ekran dışına sakla */
        top: 0;
        width: 260px; 
        height: 100vh; 
        z-index: 9999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.6);
        background: #0a0b14 !important;
    }
    .sidebar.mobile-open {
        left: 0; /* Ekran içine kaydır */
    }
    
    .logo-text, .menu-item span { display: inline-block !important; } 
    .main-content { margin-left: 0 !important; padding: 20px 15px !important; width: 100% !important; }
    .main-title { font-size: 1.8rem !important; margin-bottom: 20px !important; }
    
    .top-header {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 25px !important;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
        margin: 25px 0 35px 0 !important;
    }

    .filter-group {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
        flex-shrink: 0;
    }

    .compare-btn {
        width: 100%;
        text-align: center;
        padding: 10px 20px !important;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 15px !important;
    }

    .auth-card {
        width: 92vw !important;
        max-width: 400px !important;
        padding: 25px !important;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #advisor-window {
        position: fixed !important;
        top: 15px !important;
        bottom: 85px !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr !important;
    }

    .top-header {
        flex-direction: column;
        align-items: stretch !important;
    }

    .auth-container {
        align-items: center !important;
        width: 100%;
    }

    .key-activation-box {
        width: 100%;
        justify-content: center;
    }

    .key-input {
        flex: 1;
        width: auto !important;
    }
}

/* --- YENİ ÖZELLİKLER: TEMALAR (Aydınlık ve Cyberpunk Modu) --- */
/* EĞER HTML BODY ETİKETİNDE data-theme='light' VARSA AŞAĞIDAKİLER ÇALIŞIR */
body[data-theme='light'] { background-color: #f8fafc !important; color: #0f172a; } /* Arka planı beyaz, yazıları siyah yapar */
body[data-theme='light'] .sidebar { background-color: #f1f5f9; border-right: 1px solid #e2e8f0; }
body[data-theme='light'] .card { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
body[data-theme='light'] .card h3 { color: #0f172a; }
body[data-theme='light'] .card p { color: #475569; }
body[data-theme='light'] .search-box { background: #ffffff; border: 1px solid #cbd5e1; color: #0f172a; }
body[data-theme='light'] .search-box::placeholder { color: #94a3b8; }
body[data-theme='light'] .filter-btn { color: #475569; border-color: #cbd5e1; }
body[data-theme='light'] .auth-card { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
body[data-theme='light'] .admin-input { background: #f8fafc; border: 1px solid #cbd5e1; color: #0f172a; }
body[data-theme='light'] .main-title { background: linear-gradient(to right, #0f172a, #3b82f6); -webkit-background-clip: text; }
body[data-theme='light'] .logo-text { text-shadow: none; color: #0f172a; }

/* EĞER HTML BODY ETİKETİNDE data-theme='cyberpunk' VARSA AŞAĞIDAKİLER ÇALIŞIR (Pembe/Neon) */
body[data-theme='cyberpunk'] { background-color: #0b021b !important; color: #e0f2fe; }
body[data-theme='cyberpunk'] .sidebar { background-color: #12042b; border-right: 1px solid #d946ef; }
body[data-theme='cyberpunk'] .card { background: #1f093f; border: 1px solid #d946ef; box-shadow: 0 0 15px rgba(217, 70, 239, 0.2); }
body[data-theme='cyberpunk'] .card:hover { border-color: #06b6d4; box-shadow: 0 0 25px rgba(6, 182, 212, 0.5); }
body[data-theme='cyberpunk'] .search-box { background: #12042b; border: 1px solid #d946ef; color: #e0f2fe; }
body[data-theme='cyberpunk'] .filter-btn { color: #e0f2fe; border-color: #d946ef; }
body[data-theme='cyberpunk'] .filter-btn.active { background: #d946ef; color: #fff; border-color: #d946ef; box-shadow: 0 0 10px #d946ef; }
body[data-theme='cyberpunk'] .main-title { background: linear-gradient(to right, #d946ef, #06b6d4); -webkit-background-clip: text; }
body[data-theme='cyberpunk'] .logo-box { border-color: #d946ef; box-shadow: 0 0 15px #d946ef; }

/* --- TEMA SEÇİCİ VE YENİ BUTONLAR --- */
.action-btn {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer;
    font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.action-btn:hover { background: rgba(255, 255, 255, 0.1); }

.theme-select {
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; padding: 8px 12px; border-radius: 6px; outline: none;
    font-family: inherit; cursor: pointer;
}

/* --- POPÜLER ARAÇLAR ÖZEL STİLLERİ --- */
/* Default (Gece Modu) - Altın rengi vurgular */
.popular-card { border: 1px solid rgba(245, 158, 11, 0.3); background: linear-gradient(145deg, #1e293b, #0f172a); }

/* Aydınlık Mod */
body[data-theme='light'] .popular-card { background: linear-gradient(145deg, #fef3c7, #fffbeb); border: 1px solid #fcd34d; }
body[data-theme='light'] .popular-card:hover { border-color: #f59e0b; box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2); }

/* Cyberpunk Mod */
body[data-theme='cyberpunk'] .popular-card { background: linear-gradient(145deg, #1f093f, #0b021b); border: 1px solid #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
body[data-theme='cyberpunk'] .popular-card:hover { box-shadow: 0 0 25px rgba(245, 158, 11, 0.6); }

/* --- GLOBAL THEME OVERRIDES --- */
[data-theme="light"], [data-theme="light"] body, [data-theme="light"] .sidebar, [data-theme="light"] .main-content {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}
[data-theme="light"] .card, [data-theme="light"] .auth-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}
[data-theme="light"] .card h3, [data-theme="light"] .main-title, [data-theme="light"] h2 {
    color: #0f172a !important;
}
[data-theme="light"] .card p {
    color: #64748b !important;
}
[data-theme="light"] .search-box, [data-theme="light"] .theme-select, [data-theme="light"] .admin-input {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
[data-theme="light"] .sidebar {
    border-right: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .menu-item:hover, [data-theme="light"] .menu-item.active {
    background-color: #f1f5f9 !important;
    color: #2563eb !important;
}
[data-theme="light"] .logo-text {
    color: #0f172a !important;
    text-shadow: none !important;
}

[data-theme="cyberpunk"], [data-theme="cyberpunk"] body, [data-theme="cyberpunk"] .sidebar, [data-theme="cyberpunk"] .main-content {
    background-color: #050510 !important;
    color: #00ffcc !important;
}
[data-theme="cyberpunk"] .card, [data-theme="cyberpunk"] .auth-card {
    background: rgba(5, 5, 16, 0.8) !important;
    border: 1px solid #ff00ff !important;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2) !important;
}
[data-theme="cyberpunk"] .card:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6) !important;
    transform: translateY(-5px);
}
[data-theme="cyberpunk"] .card h3, [data-theme="cyberpunk"] .main-title, [data-theme="cyberpunk"] h2 {
    color: #ff00ff !important;
    text-shadow: 0 0 10px #ff00ff !important;
}
[data-theme="cyberpunk"] .card p {
    color: #00e5ff !important;
}
[data-theme="cyberpunk"] .search-box, [data-theme="cyberpunk"] .theme-select, [data-theme="cyberpunk"] .admin-input {
    background-color: #050510 !important;
    border: 1px solid #00ffcc !important;
    color: #00ffcc !important;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2) !important;
}
[data-theme="cyberpunk"] .logo-text {
    color: #ff00ff !important;
    text-shadow: 0 0 15px #ff00ff !important;
}
[data-theme="cyberpunk"] .key-btn, [data-theme="cyberpunk"] .compare-btn {
    background: linear-gradient(90deg, #ff00ff, #00ffcc) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5) !important;
    border: none !important;
}
[data-theme="cyberpunk"] .sidebar {
    border-right: 1px solid #ff00ff !important;
    box-shadow: 5px 0 15px rgba(255, 0, 255, 0.1) !important;
}
[data-theme="cyberpunk"] .menu-item:hover, [data-theme="cyberpunk"] .menu-item.active {
    background-color: rgba(255, 0, 255, 0.1) !important;
    color: #00ffcc !important;
    border-left: 3px solid #00ffcc !important;
}

/* --- YENİ UI: İSTATİSTİK ÇUBUĞU (GLASSMORPHISM) --- */
.glass-stats {
    display: flex; justify-content: center; gap: 20px;
    margin: 0 auto 50px auto; max-width: 800px;
    flex-wrap: wrap;
}
.glass-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 20px 30px;
    display: flex; align-items: center; gap: 15px;
    min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.glass-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}
.stat-icon {
    font-size: 2.5rem; filter: drop-shadow(0 0 10px rgba(56,189,248,0.5));
}
.stat-info { display: flex; flex-direction: column; text-align: left; }
.stat-number { font-size: 2.2rem; font-weight: 900; color: #38bdf8; line-height: 1; margin-bottom: 5px; text-shadow: 0 0 15px rgba(56,189,248,0.4); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

@media (max-width: 768px) {
    .glass-stats { flex-direction: column; gap: 15px; padding: 0 20px; }
    .glass-item { min-width: 100%; justify-content: center; }
}

/* --- YENİ UI: GÜNÜN ARACI (SPOTLIGHT - KÜÇÜK VE İNCE) --- */
.spotlight-container {
    max-width: 580px; margin: 0 auto 30px auto; display: none; /* JS ile açılacak */
}
.spotlight-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(139, 92, 246, 0.08));
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px; padding: 16px 24px;
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.1);
    display: flex; align-items: center; justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; overflow: hidden;
}
.spotlight-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.spotlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-badge {
    position: absolute; top: 0; right: 24px; background: #f59e0b; color: #000;
    padding: 3px 12px; font-weight: 900; font-size: 0.68rem; letter-spacing: 0.5px;
    border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}
.spotlight-content { flex: 1; padding-right: 15px; }
.spotlight-title { font-size: 1.25rem; color: #fff; margin-bottom: 4px; font-weight: 800; letter-spacing: -0.3px; }
.spotlight-desc { color: #cbd5e1; font-size: 0.84rem; line-height: 1.4; margin-bottom: 0; }
.spotlight-action {
    background: linear-gradient(90deg, #38bdf8, #8b5cf6);
    color: #fff; padding: 7px 18px; border-radius: 20px; text-decoration: none;
    font-weight: 700; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 4px;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35); transition: 0.3s; white-space: nowrap;
}
.spotlight-action:hover { box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5); transform: translateY(-1px); }
@media (max-width: 768px) {
    .spotlight-card { flex-direction: column; padding: 20px 16px; text-align: center; gap: 12px; }
    .spotlight-content { padding-right: 0; }
    .spotlight-badge { right: 50%; transform: translateX(50%); border-radius: 0 0 10px 10px; }
    .spotlight-title { font-size: 1.2rem; margin-top: 10px; }
}

/* --- INTRO.JS GÖRÜNÜM DÜZELTMELERİ --- */
.introjs-tooltip {
    color: #0f172a !important; /* Metin rengini koyu yap */
}
.introjs-tooltip * {
    color: #0f172a !important;
}
.introjs-tooltiptext {
    font-size: 1rem !important;
}
.introjs-button {
    text-shadow: none !important;
    background: #38bdf8 !important;
    color: #0f172a !important;
    border: none !important;
    font-weight: bold !important;
}
.introjs-skipbutton {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
}

/* ============================================================================
   SİTE İÇİ TOAST BİLDİRİM VE MESAJ SİSTEMİ (NATIVE ALERT YERİNE)
   ============================================================================ */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100vw - 48px);
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast-notification.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Toast Türleri */
.toast-success { border-left: 4px solid #34d399; box-shadow: 0 10px 30px rgba(52, 211, 153, 0.15), 0 0 0 1px rgba(52, 211, 153, 0.2); }
.toast-error { border-left: 4px solid #f43f5e; box-shadow: 0 10px 30px rgba(244, 63, 94, 0.15), 0 0 0 1px rgba(244, 63, 94, 0.2); }
.toast-warning { border-left: 4px solid #fbbf24; box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15), 0 0 0 1px rgba(251, 191, 36, 0.2); }
.toast-info { border-left: 4px solid #38bdf8; box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15), 0 0 0 1px rgba(56, 189, 248, 0.2); }
.toast-purple { border-left: 4px solid #c084fc; box-shadow: 0 10px 30px rgba(192, 132, 252, 0.15), 0 0 0 1px rgba(192, 132, 252, 0.2); }

.toast-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-message {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.45;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #ffffff;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transition: width linear;
}

.toast-success .toast-progress-bar { background: #34d399; }
.toast-error .toast-progress-bar { background: #f43f5e; }
.toast-warning .toast-progress-bar { background: #fbbf24; }
.toast-info .toast-progress-bar { background: #38bdf8; }
.toast-purple .toast-progress-bar { background: #c084fc; }

/* ============================================================================
   SOL ALT TARAF - SİDEBAR BOTTOM WİDGET (CANLI SİSTEM & İPUCU ALANI)
   ============================================================================ */
.sidebar-bottom-widget {
    margin-top: auto;
    padding: 15px 12px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-status-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar-status-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
}

.status-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
    animation: statusPulse 2s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.3px;
}

.status-sub {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Günün AI İpucu Kartı */
.sidebar-tip-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.sidebar-tip-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-controls {
    display: flex;
    gap: 4px;
}

.tip-controls button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    transition: all 0.2s;
}

.tip-controls button:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
}

.tip-content {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin: 0;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PRO / Dev Banner Kartı */
.sidebar-pro-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px dashed rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-pro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
}

.pro-card-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 4px;
}

.pro-card-title {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pro-card-btn {
    width: 100%;
    padding: 7px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #0f172a;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: filter 0.2s;
}

.pro-card-btn:hover {
    filter: brightness(1.1);
}

