/* =========================================
   TONİK - PREMIUM DARK (V40.0 - KAPSAMLI STABİLİTE FIX)
   ========================================= */

/* 1. FONT & TEMEL AYARLAR */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    --bg-dark: #050505;       
    --bg-card: #111111;       
    --text-light: #ffffff;    
    --text-muted: #b0b0b0;    
    --accent: #ffbe0b;        
    --accent-glow: rgba(255, 190, 11, 0.3); 
    --border-dark: 1px solid #222;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Global Flex Yapısı (Footer'ı En Alta İter) */
body {
    font-family: var(--font-main); color: var(--text-light); background-color: var(--bg-dark);
    line-height: 1.6; overflow-x: hidden; position: relative; 
    display: flex; flex-direction: column; min-height: 100vh;
}
main {
    flex: 1; /* Main içeriğin kalan alanı doldurması için */
    position: relative; z-index: 10;
}

/* Arka Plan Efektleri */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1;
    background: radial-gradient(circle at 50% 0%, rgba(255, 190, 11, 0.05), transparent 60%);
}

#neon-background { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; overflow: hidden; }
.neon-note { position: absolute !important; display: block; font-family: sans-serif; font-weight: bold; opacity: 0; text-shadow: 0 0 10px currentColor; will-change: transform, opacity; }

@keyframes floatUp { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.5; } 100% { transform: translateY(-20vh) rotate(360deg) translateX(var(--random-x)); opacity: 0; } }

/* İçerik Katmanları */
.site-header, .hero-split, .hero, .store-hero, .site-footer, .workroom-layout, .course-layout { position: relative; z-index: 10; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.5px; color: #fff; margin: 0; }

/* 4. HEADER & NAV */
.site-header { padding: 20px 0; background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: var(--border-dark); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; max-width: 100%; padding: 0 50px; }
.logo a { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-size: 16px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.main-nav a:hover { color: var(--accent); }

/* DROPDOWN FIX */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; right: 0; list-style: none; background: var(--bg-card); border: 1px solid var(--border-dark); padding: 10px 0; border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); min-width: 180px; display: none !important; z-index: 1000;
}
.dropdown:hover .dropdown-menu { display: block !important; }
.dropdown-menu li a { padding: 10px 20px; display: block; font-size: 14px; color: var(--text-light); font-weight: 400; }
.dropdown-menu li a:hover { background: var(--accent); color: #000; }

/* 5. ANA SAYFA HERO */
.hero-split { display: grid; grid-template-columns: 50% 50%; align-items: center; min-height: 85vh; padding: 0; overflow: hidden; position: relative; z-index: 1; }
.hero-content { padding: 0 0 0 80px; text-align: left; z-index: 20; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-content h1 { font-size: 7rem; line-height: 0.9; margin-bottom: 25px; background: linear-gradient(to bottom right, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; letter-spacing: -4px; }
.hero-content p { font-size: 1.4rem; color: var(--text-muted); max-width: 550px; margin-bottom: 50px; font-weight: 300; line-height: 1.6; }
.hero-btn-fixed { display: inline-block !important; width: auto !important; min-width: 0 !important; padding: 18px 40px; font-size: 1.1rem; border-radius: 50px; background: var(--accent); color: #000; font-weight: 700; text-transform: uppercase; box-shadow: 0 0 20px var(--accent-glow); transition: 0.3s; text-align: center; }
.hero-btn-fixed:hover { background: #fff; transform: translateY(-3px); }
.hero-visual { width: 100%; height: 100%; position: relative; background-image: url('https://images.unsplash.com/photo-1520523839897-bd0b52f945a0?q=80&w=2070&auto=format&fit=crop'); background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%); mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%); opacity: 0.8; z-index: 1; }

/* 6. GENEL KARTLAR & GRID (MAĞAZA, BLOG FIX) */
.products-grid, #lobby-view { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 60px; }
.product-card, .game-card { background: var(--bg-card); padding: 30px; border-radius: 20px; border: 1px solid #222; transition: var(--transition); display: flex; flex-direction: column; position: relative; }
.product-card:hover, .game-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; color: var(--accent); }
.product-title, .game-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.product-desc, .game-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin-top: auto; }
.category { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin-bottom: 5px; display: block; }

/* 7. VİDEO DERSHANE TASARIMI (YÜKSEKLİK FIX) */
.course-layout {
    display: grid; grid-template-columns: 350px 1fr;
    min-height: calc(100vh - 85px); /* EKRANI DOLDURAN GÜVENLİ YÖNTEM */
    background: var(--bg-dark); border-top: var(--border-dark);
}
.course-sidebar { background: #0f0f0f; border-right: 1px solid #222; display: flex; flex-direction: column; overflow-y: auto; height: 100%; }
.course-header { padding: 30px 30px 10px 30px; border-bottom: none; background: #141414; }
.course-search { padding: 0 30px 25px 30px; background: #141414; border-bottom: 1px solid #333; margin-top: 0; }
.search-input { width: 100%; padding: 12px 25px; background: #0a0a0a; border: 1px solid #333; border-radius: 50px; color: #fff; font-family: var(--font-main); font-size: 0.9rem; transition: 0.3s; outline: none; }
.section-header { background: #1f1f1f; color: var(--accent); padding: 15px 30px; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #333; border-top: 1px solid #333; }
.lesson-list { overflow-y: auto; }
.lesson-item { padding: 20px 30px; border-bottom: 1px solid #1a1a1a; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 15px; }
.lesson-item:hover { background: #1a1a1a; }
.course-player { padding: 0; background: transparent !important; display: flex; flex-direction: column; overflow-y: auto; height: 100%; }
.video-container { width: 100%; aspect-ratio: 16 / 9; background: #000; flex-shrink: 0; }
.video-container iframe { width: 100%; height: 100%; }
.video-info { padding: 40px; max-width: 900px; margin: 0 auto; }
.video-info h1 { font-size: 2.5rem; margin-bottom: 30px; color: #fff; border-bottom: 1px solid #333; padding-bottom: 20px; }
#video-desc { color: #ccc; font-size: 1.1rem; line-height: 1.8; }

/* 10. FOOTER */
.site-footer { background: #000; color: #555; text-align: center; padding: 40px 0; margin-top: auto; border-top: var(--border-dark); width: 100%; }

/* MOBİL */
@media (max-width: 768px) {
    .site-header .container { flex-direction: column; gap: 15px; padding: 0 20px; }
    .logo a { font-size: 26px; }
    .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero-split { grid-template-columns: 1fr; grid-template-rows: auto 300px; height: auto; }
    .hero-content { padding: 60px 20px; text-align: center; }
    .hero-content h1 { font-size: 4rem; }
    .hero-visual { position: relative; width: 100%; height: 300px; -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%); opacity: 0.5; }
    .workroom-layout, .course-layout { display: flex; flex-direction: column; flex: none; }
    .workspace, .course-player { order: 1; padding: 20px 10px; min-height: 50vh; }
    .sidebar, .course-sidebar { order: 2; border-right: none; border-top: 1px solid #333; padding: 20px; background: #000 !important; }
    .course-sidebar { height: 350px; }
    .question-text { font-size: 1.2rem; margin-bottom: 20px; line-height: 1.4; }
    .options-grid { gap: 10px; }
    .option-btn { padding: 15px; font-size: 0.95rem; white-space: normal; }
    .products-grid, #lobby-view { grid-template-columns: 1fr; }
    .about-profile { flex-direction: column; text-align: center; }
    .profile-img { margin: 0 auto; }
}

/* =========================================
   MAĞAZA SAYFASI YENİ TASARIM STİLLERİ (V41.0)
   ========================================= */

.store-hero-new {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d0d0d 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: var(--border-dark);
    position: relative;
    overflow: hidden; /* Neon sembolleri hero dışına taşmasın */
}

.store-hero-new h1 {
    font-size: 4.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.store-hero-new .hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.product-section {
    padding: 80px 0;
}

.section-header-store {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-store h2 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
}

.section-header-store p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.product-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card-new {
    background: var(--bg-card);
    border: var(--border-dark);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.product-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-glow);
}

.product-card-new-image {
    width: 100%;
    height: 220px; /* Sabit yükseklik */
    object-fit: cover;
    display: block;
    border-bottom: var(--border-dark);
}

.product-card-new-content {
    padding: 25px;
    flex-grow: 1; /* İçeriğin kart içinde esnek olmasını sağlar */
    display: flex;
    flex-direction: column;
}

.product-card-new .category {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-card-new h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-card-new p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Açıklamanın yer kaplamasını sağlar */
}

.product-card-new .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto; /* Fiyatı en alta iter */
    margin-bottom: 15px;
    display: block; /* Küçük etiketi için */
}

.product-card-new .price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-card-new .btn-buy {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.product-card-new .btn-buy:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* EK MODAL STİLİ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    border: var(--border-dark);
    border-radius: 18px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
    opacity: 1;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    background: #222;
    border: 1px solid #444;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.modal-btn:hover {
    background: #333;
    border-color: var(--accent);
    color: var(--accent);
}

.modal-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor; /* SVG rengini yazı rengiyle eşleştirir */
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .store-hero-new h1 {
        font-size: 3rem;
    }
    .store-hero-new .hero-subtitle {
        font-size: 1rem;
    }
    .section-header-store h2 {
        font-size: 2.2rem;
    }
    .section-header-store p {
        font-size: 0.9rem;
    }
    .product-section {
        padding: 50px 0;
    }
    .product-card-new {
        margin: 0 10px; /* Mobil görünümde kartlar arasına boşluk */
    }
    .modal-box {
        padding: 30px 20px;
    }
    .modal-title {
        font-size: 2rem;
    }
}

/* 6. HAKKINDA SAYFASI (GÖRSEL VE YAZI BOYUTU FIX) */
.about-card { background: var(--bg-card); padding: 30px; border-radius: 20px; border: 1px solid #222; margin-bottom: 30px; }
.about-card h2 { font-size: 1.8rem; margin-bottom: 15px; color: #fff; }
.about-card p { font-size: 1rem; color: #aaa; line-height: 1.6; }

.about-profile { 
    display: flex; align-items: center; gap: 30px; background: var(--bg-card); padding: 40px; /* Padding arttı */
    border-radius: 20px; border: 1px solid #222; flex-wrap: wrap; 
}

/* FOTOĞRAF KUTUSU BÜYÜTÜLDÜ */
.profile-img { 
    width: 140px; height: 140px; /* Büyütüldü */
    border-radius: 50%; background: #222; display: flex; align-items: center; justify-content: center; 
    font-size: 3rem; border: 2px solid var(--accent); flex-shrink: 0; 
}
.profile-img img { max-width: 100%; height: auto; object-fit: cover; } /* RESİM SIKIŞTIRMA KURALI */

/* YAZI BÖLÜMÜ BÜYÜTÜLDÜ */
.profile-info h2 { font-size: 2.2rem; margin-bottom: 5px; } /* Başlık biraz daha büyük */
.profile-info p { font-size: 1rem; color: var(--text-muted); }

/* =========================================
   BLOG DÜZENİ KURTARMA KODLARI (FIX)
   ========================================= */

/* Blog Ana Kapsayıcı */
.blog-list { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    padding-bottom: 80px; 
    border-top: 1px solid var(--border-dark); /* Ayırıcı çizgi */
    padding-top: 20px;
}

/* Her Bir Blog Kartı */
.blog-item {
    display: flex; 
    align-items: center; 
    gap: 30px; 
    background: var(--bg-card); 
    padding: 25px; 
    border-radius: 16px; 
    border: 1px solid #222; 
    transition: var(--transition);
}

.blog-item:hover { 
    border-color: #444; 
    transform: translateX(5px); 
    background: #1a1a1a;
}

/* Görsel Kutusu (Özellikler Buradan Geliyordu) */
.blog-thumb {
    width: 120px; /* Görsel kutu boyutu */
    height: 90px;
    background: #1a1a1a; 
    border-radius: 10px; 
    flex-shrink: 0; /* Küçülmesini engelle */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2rem; 
    color: #444; /* Emoji rengi */
    border: 1px solid #333;
}

.blog-content { 
    flex: 1; 
}

/* Başlık */
.blog-title { 
    font-size: 1.5rem; 
    margin-bottom: 8px; 
    line-height: 1.2;
}

/* Mobil görünümde dikey dizilim */
@media (max-width: 768px) {
    .blog-item {
        flex-direction: column; 
        align-items: flex-start;
    }
    .blog-thumb {
        width: 100%; /* Mobil cihazda tam genişlik */
        height: 150px;
        margin-bottom: 15px;
    }
}

// --- MOBİL MENÜ MANTIĞI (KESİN ÇÖZÜM) ---
        function toggleMobileMenu() {
            const nav = document.querySelector('.main-nav');
            nav.classList.toggle('active');
        }

        function toggleDropdown(e) {
            // Sadece mobilde (768px ve altı) çalışsın
            if (window.innerWidth <= 768) {
                e.preventDefault(); // Linke gitmeyi engelle
                // Dropdown'ı aç/kapa
                const parent = e.target.closest('.dropdown');
                parent.classList.toggle('active');
            }
        }
        
        /* =========================================
   MOBİL MENÜ SİSTEMİ (TÜM SAYFALAR İÇİN)
   ========================================= */

/* Header Düzeni */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Masaüstünde Menü Görünümü */
.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hamburger Butonu (Varsayılan Gizli) */
.mobile-toggle {
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer;
}
.mobile-toggle span {
    width: 25px; 
    height: 3px; 
    background-color: #fff; 
    transition: 0.3s;
}

/* --- MOBİL GÖRÜNÜM (768px ve Altı) --- */
@media (max-width: 768px) {
    /* Butonu Göster */
    .mobile-toggle { 
        display: flex; 
    }

    /* Menüyü Gizle ve Şekillendir */
    .main-nav {
        display: none; /* Başlangıçta gizli */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #050505; /* Site arka plan rengi */
        border-bottom: 1px solid #222;
        padding: 20px;
        z-index: 9999;
        flex-direction: column;
    }

    /* JS ile 'active' sınıfı eklenince görünür */
    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 15px;
    }

    /* Dropdown (Daha Fazla) Mobilde Alt Alta Açılsın */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #111;
        width: 100%;
        display: none; /* Gizli */
        margin-top: 10px;
    }

    /* Dropdown Aktif Olunca Göster */
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    /* Masaüstü hover efektini mobilde iptal et */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
}

/* =========================================
   MOBİL MENÜ CSS (EN ALTA EKLE)
   ========================================= */

/* Hamburger Butonu (Varsayılan Gizli) */
.mobile-toggle {
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer;
    padding: 10px;
}
.mobile-toggle span {
    width: 25px; 
    height: 3px; 
    background-color: #fff; 
    transition: 0.3s;
}

/* --- MOBİL GÖRÜNÜM (768px ve Altı) --- */
@media (max-width: 768px) {
    /* Butonu Göster */
    .mobile-toggle { 
        display: flex; 
    }

    /* Menüyü Gizle ve Şekillendir */
    .main-nav {
        display: none; /* Başlangıçta GİZLİ */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #050505; /* Arka plan rengi */
        border-bottom: 1px solid #222;
        padding: 20px;
        z-index: 9999;
        flex-direction: column;
    }

    /* JS ile 'active' sınıfı eklenince GÖRÜNÜR yap */
    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 15px;
    }

    /* Dropdown Menü (Daha Fazla) Ayarları */
    .dropdown-menu {
        position: static; /* Alt alta açılsın */
        box-shadow: none;
        background: #111;
        width: 100%;
        display: none; /* Gizli */
        margin-top: 10px;
        border: 1px solid #333;
    }

    /* Dropdown 'active' olunca göster */
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    /* Masaüstü hover efektini mobilde iptal et */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
}

/* =========================================
   MOBİL MENÜ VE LOGİN DÜZELTMESİ (FIX)
   Bu kodları style.css'in EN ALTINA ekle
   ========================================= */

@media (max-width: 768px) {
    /* 1. Hamburger Butonu - Her şeyin üstüne çıkar */
    .mobile-toggle {
        display: flex !important;
        z-index: 10002 !important; /* En üst katman */
        position: relative;
        cursor: pointer;
        padding: 10px; /* Dokunma alanını genişlet */
    }

    /* 2. Menü Kutusu - Tam ekran ve Scroll edilebilir */
    .main-nav {
        display: none; /* Kapalıyken gizli */
        position: fixed; /* Sabit pozisyon */
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh; /* Tüm ekranı kapla */
        background-color: rgba(0, 0, 0, 0.98); /* Koyu arka plan */
        flex-direction: column;
        justify-content: center; /* Dikey ortala */
        align-items: center;
        z-index: 10001; /* Butonun bir tık altı */
        padding-top: 60px;
        overflow-y: auto; /* İçerik taşarsa kaydır */
    }

    /* Menü Açıldığında */
    .main-nav.active {
        display: flex !important;
    }

    /* Linkler */
    .main-nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        width: 100%;
    }

    .main-nav a {
        font-size: 1.5rem; /* Linkleri büyüt (dokunmak kolay olsun) */
    }

    /* 3. Login/Profil Alanı Mobilde */
    .auth-area {
        display: flex !important; /* Mobilde gizlenmesin */
        flex-direction: column;
        align-items: center;
        margin-left: 0 !important;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #333;
        width: 80%;
        gap: 15px;
    }

    .auth-btn {
        width: 100%; /* Butonu genişlet */
        text-align: center;
        padding: 12px;
        font-size: 1.1rem;
    }

    /* Dropdown Menü */
    .dropdown-menu {
        background: #111;
        width: 90%;
        margin: 10px auto;
    }
}

/* =========================================
   GİRİŞ SİSTEMİ VE MODAL STİLLERİ (GLOBAL)
   ========================================= */

/* Header İçindeki Kullanıcı Alanı */
.auth-area {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    font-family: var(--font-main, sans-serif);
}

.auth-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.user-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 5px;
}

/* Giriş Penceresi (Modal) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    display: none; /* JS ile 'active' olunca flex olacak */
    justify-content: center; align-items: center;
    z-index: 10000;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #111; /* var(--bg-card) */
    border: 1px solid #333; /* var(--border-dark) */
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #050505;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}
.modal-input:focus { border-color: var(--accent); }

.modal-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    color: #000;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1rem;
    transition: 0.3s;
}
.modal-submit:hover { transform: translateY(-2px); box-shadow: 0 5px 15px var(--accent-glow); }

.modal-close-btn {
    position: absolute; top: 15px; right: 15px;
    background: none; border: none;
    color: #666; font-size: 1.5rem;
    cursor: pointer; transition: 0.3s;
}
.modal-close-btn:hover { color: #fff; }

.switch-auth {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}
.switch-auth u {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

/* Mobilde Header Düzeni */
@media (max-width: 768px) {
    .auth-area {
        flex-direction: column;
        margin: 20px 0 0 0;
        width: 100%;
        padding-top: 20px;
        border-top: 1px solid #222;
    }
    .auth-btn { width: 100%; text-align: center; }
}

/* =========================================
   MOBİL MENÜ İÇİN ACİL DÜZELTME (FIX)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Header'ın kendisini ön plana al */
    .site-header {
        position: relative;
        z-index: 10000 !important;
        background-color: #050505; /* Arka plan rengini garantiye al */
    }

    /* 2. Hamburger Butonunu Tıklanabilir Yap */
    .mobile-toggle {
        display: flex !important;
        position: absolute; /* Konumu sabitle */
        right: 20px; /* Sağdan boşluk */
        top: 50%;
        transform: translateY(-50%); /* Dikey ortala */
        z-index: 10001 !important; /* En üstte olsun */
        width: 40px; /* Tıklama alanını büyüt */
        height: 40px;
        justify-content: center;
        align-items: center;
        background: transparent; /* Arkası şeffaf */
    }
    
    /* Çizgilerin görünürlüğü */
    .mobile-toggle span {
        background-color: #fff !important;
        display: block;
        width: 30px;
        height: 3px;
        margin-bottom: 5px;
    }

    /* 3. Menü Açıldığında */
    .main-nav {
        position: fixed !important; /* Sayfadan bağımsız olsun */
        top: 80px; /* Header boyu kadar aşağıdan başlasın */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px); /* Ekranın kalanını kapla */
        background-color: #000 !important;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        overflow-y: auto; /* Menü uzunsa kaydırılabilsin */
        display: none; /* Kapalıyken gizli */
    }

    .main-nav.active {
        display: flex !important; /* Açılınca esnek kutu olsun */
    }

    /* Linklerin boyutu */
    .main-nav ul li {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .main-nav a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }
    
    /* Dropdown Düzeltmesi */
    .dropdown-menu {
        position: static !important; /* Altına iterek açsın */
        width: 80%;
        margin: 10px auto;
        background: #111;
        box-shadow: none;
        border: 1px solid #333;
    }
}
