/* =========================================
   1. TEMEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --header-white: #ffffff;
    --mobile-blur: blur(15px);
    --dropdown-width: 240px;
}

/* Kapsayıcıların dışarı taşmasına izin ver (Dropdown için ŞART) */
.site-header, .main-nav-bar, .nav-list {
    overflow: visible !important;
    position: relative;
    z-index: 999;
}

/* Görünürlük Yardımcıları */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* =========================================
   2. MASAÜSTÜ GÖRÜNÜM
   ========================================= */

/* Üst Logo ve Dil Alanı */
.top-branding {
    background: var(--header-white);
    padding: 15px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.site-logo-img { height: 80px; width: auto; margin-bottom: 5px; }

.site-title-branding {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

/* Dil Seçimi */
.desktop-lang {
    position: absolute; top: 15px; right: 20px;
    background: #f8f9fa; padding: 5px 15px; border-radius: 20px;
    font-size: 0.8rem; font-weight: bold; border: 1px solid #eee;
}
.desktop-lang a { text-decoration: none; color: #999; transition: 0.2s; }
.desktop-lang a.active-lang { color: var(--secondary-color); font-weight: 900; }
.desktop-lang a:hover { color: #333; }

/* --- MENÜ ŞERİDİ --- */
.main-nav-bar { 
    background-color: var(--primary-color); 
    border-bottom: 4px solid var(--secondary-color); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-list { 
    display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; 
}

/* Ana Menü Linkleri */
.nav-list > li { position: relative; } /* Dropdown konumu buna göre ayarlanır */

.nav-list > li > a { 
    display: block; padding: 16px 25px; color: #fff; 
    text-decoration: none; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; 
    transition: background 0.3s;
}
.nav-list > li > a:hover { background-color: rgba(255,255,255,0.1); }

/* --- AÇILIR MENÜ (DROPDOWN) --- */
.dropdown-menu {
    display: none; /* Gizli Başla */
    position: absolute;
    top: 100%; left: 0;
    background-color: #fff;
    min-width: var(--dropdown-width);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    list-style: none; padding: 0; margin: 0;
    z-index: 99999; /* En üstte */
    border-top: 3px solid var(--secondary-color);
    border-radius: 0 0 5px 5px;
}

.dropdown-menu li { border-bottom: 1px solid #f1f1f1; }
.dropdown-menu li:last-child { border-bottom: none; }

.dropdown-menu li a {
    display: block; padding: 12px 20px;
    color: #444 !important; /* Link rengi koyu */
    text-decoration: none; font-size: 0.9rem; font-weight: 500; text-transform: none;
    text-align: left; transition: 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f9f9f9;
    color: var(--secondary-color) !important;
    padding-left: 25px; /* Kayma Efekti */
}

/* HOVER OLUNCA AÇ (Sihirli Kod) */
.nav-list > li:hover .dropdown-menu {
    display: block !important;
}

/* =========================================
   3. MOBİL GÖRÜNÜM & RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; } /* Flex yaptık */

    /* Mobil Üst Bar */
    .mobile-header-bar {
        justify-content: space-between; align-items: center;
        background-color: var(--primary-color);
        padding: 0 20px; height: 60px;
        position: sticky; top: 0; z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .mobile-site-title {
        color: #fff; font-weight: 700; font-size: 0.9rem;
        line-height: 1.2; max-width: 70%;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    /* Hamburger Butonu */
    .mobile-toggle {
        background: none; border: none; cursor: pointer;
        display: flex; flex-direction: column; gap: 5px; padding: 5px;
    }
    .mobile-toggle span { 
        display: block; width: 28px; height: 3px; background: #fff; border-radius: 3px; transition: 0.3s; 
    }
    
    /* Mobil Overlay (Açılan Menü) */
    .mobile-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: var(--primary-color); /* Fallback */
        background-color: rgba(0, 51, 102, 0.98); /* Saydamlık */
        backdrop-filter: var(--mobile-blur);
        z-index: 9999;
        flex-direction: column; padding: 80px 30px;
        transform: translateY(-100%); transition: 0.4s ease-in-out; opacity: 0; visibility: hidden;
        overflow-y: auto;
    }
    .mobile-overlay.active { transform: translateY(0); opacity: 1; visibility: visible; }

    /* Mobil Linkler */
    .m-links { list-style: none; padding: 0; margin: 0; width: 100%; }
    .m-links > li { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 0; }
    
    .m-links a { 
        color: #fff; font-size: 1.1rem; font-weight: 700; 
        text-transform: uppercase; text-decoration: none; display: block; 
    }

    /* Mobil Alt Menü */
    .m-sub-links {
        list-style: none; padding-left: 15px; margin-top: 10px;
        border-left: 2px solid var(--secondary-color);
    }
    .m-sub-links li { border: none; padding: 5px 0; }
    .m-sub-links a {
        font-size: 0.95rem; color: #ddd; font-weight: 400; text-transform: none;
    }
}
/* --- TEMEL --- */
:root { --header-white: #ffffff; --mobile-blur: blur(15px); }
.desktop-only { display: block; } .mobile-only { display: none; }

/* Menü taşma sorunu çözümü */
.site-header, .top-branding, .main-nav-bar { overflow: visible !important; position: relative; z-index: 999; }

/* --- MASAÜSTÜ --- */
.top-branding { 
    background: #ffffff; 
    padding: 20px 0; text-align: center; border-bottom: 1px solid #eee;
}
.site-logo-img { height: 90px; width: auto; margin-bottom: 10px; }
.site-title-branding { 
    color: var(--primary-color); /* Yedek Renk */
    color: var(--primary-color); 
    font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin: 0; 
}

/* Navigasyon Şeridi */
.main-nav-bar { 
    background-color: var(--primary-color); /* Yedek Renk */
    background-color: var(--primary-color); 
    border-bottom: 4px solid var(--secondary-color); /* Yedek Renk */
    border-bottom: 4px solid var(--secondary-color); 
}

.nav-list { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }

.nav-list > li > a { 
    display: block; padding: 16px 25px; color: #fff; text-decoration: none; font-weight: 600; 
}
.nav-list > li > a:hover { background: rgba(255,255,255,0.1); }

/* --- DROPDOWN (AÇILIR MENÜ) --- */
.dropdown-menu {
    display: none; 
    position: absolute; top: 100%; left: 0;
    background-color: #fff; min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    list-style: none; padding: 0; margin: 0; z-index: 99999;
    border-top: 3px solid var(--secondary-color);
}
.dropdown-menu li { border-bottom: 1px solid #eee; }
.dropdown-menu li a { color: #333 !important; padding: 12px 20px; font-weight: 500; font-size: 0.9rem; text-transform: none; }
.dropdown-menu li a:hover { background: #f9f9f9; color: var(--secondary-color) !important; padding-left: 25px; }

/* Hover Durumu */
.nav-list > li:hover .dropdown-menu { display: block !important; }

/* --- DİL BUTONLARI --- */
.desktop-lang {
    position: absolute; top: 15px; right: 20px;
    background: #f8f9fa; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold;
}
.desktop-lang a { text-decoration: none; color: #999; }
.desktop-lang a.active-lang { color: var(--secondary-color); font-weight: 900; }

/* --- MOBİL --- */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .mobile-header-bar { 
        justify-content: space-between; align-items: center;
        background-color: var(--primary-color); /* Yedek */
        background-color: var(--primary-color); 
        padding: 0 20px; height: 60px; position: sticky; top: 0; z-index: 999;
    }
    .mobile-site-title { color: #fff; font-weight: 700; font-size: 0.9rem; }
    
    .mobile-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0,51,102,0.98); backdrop-filter: blur(10px);
        z-index: 10000; padding: 80px 30px; display: flex; flex-direction: column;
        transform: translateY(-100%); transition: 0.4s;
    }
    .mobile-overlay.active { transform: translateY(0); }
    
    .m-links { list-style: none; padding: 0; margin: 0; }
    .m-links > li { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 0; }
    .m-links a { color: #fff; font-size: 1.1rem; font-weight: 700; text-decoration: none; display: block; }
    
    .m-sub-links { padding-left: 15px; margin-top: 5px; border-left: 2px solid var(--secondary-color); list-style: none;}
    .m-sub-links a { font-size: 0.95rem; font-weight: 400; color: #ddd; }
    
    .mobile-toggle { background: none; border: none; }
    .mobile-toggle span { display: block; width: 28px; height: 3px; background: #fff; margin: 5px 0; }
}