/* --- GENEL MENÜ ALANI --- */
.main-navbar {
    background-color: #213B5A; /* Varsayılan yedek renk */
    width: 100%;
    padding: 0; /* Üst ve alt boşluklar tamamen sıfırlandı */
    font-family: 'Roboto', sans-serif;
    position: relative; /* Alt menülerin hizalanması için gerekli */
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO --- */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    /* Yükseklik artık PHP'den dinamik geliyor */
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block; /* Altındaki minik resim boşluğunu yok eder */
}

.site-logo img:hover {
    transform: scale(1.05);
}

/* --- MASAÜSTÜ MENÜ LİNKLERİ --- */
.desktop-menu {
    flex: 1; 
    display: flex;
    justify-content: flex-end; 
    padding-right: 40px; 
}

.desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; 
    align-items: center;
}

.desktop-menu a {
    color: #ffffff; /* Varsayılan yedek renk */
    text-decoration: none;
    font-size: 17px; 
    font-weight: 300; /* Fontu incelttik, daha şık duracak */
    padding-bottom: 5px;
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ffffff; /* Varsayılan yedek renk */
    transition: width 0.3s ease;
}

/* Hover olduğunda veya Aktif Sayfa olduğunda alt çizgi dolsun */
.desktop-menu a:hover::after,
.desktop-menu a.active-link::after {
    width: 100%;
}

/* --- SAĞ TARAF (DİL VE MOBİL) --- */
.nav-right {
    display: flex;
    align-items: center;
}

/* --- DİL AÇILIR MENÜSÜ --- */
.lang-dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 300; /* İncelttik */
}

.current-lang img {
    border-radius: 2px;
}

.lang-menu-list {
    position: absolute;
    top: 100%; 
    right: 0;
    background-color: #1e3650; /* Açılır menü zemin rengi (hafif daha koyu) */
    list-style: none;
    margin: 0;
    padding: 10px 0;
    width: 140px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.lang-dropdown:hover .lang-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 300;
    transition: background 0.2s;
}

.lang-menu-list li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- MOBİL BUTON --- */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff; 
    font-size: 22px; /* Hamburger butonunu incelttik ve biraz küçülttük */
    cursor: pointer;
    padding: 10px 0 10px 15px;
    transition: transform 0.3s ease;
}

/* --- MOBİL AŞAĞI AÇILAN MENÜ --- */
.mobile-dropdown-menu {
    position: absolute; 
    top: 100%; 
    left: 0;
    width: 100%;
    height: auto;
    background-color: #213B5A; /* Varsayılan yedek renk */
    z-index: 9990;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding-bottom: 30px;
}

/* Mobil menü aktif olduğunda görünür yap */
.mobile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-body {
    padding: 30px 20px 0 20px;
}

.mobile-menu-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.mobile-menu-body li {
    margin-bottom: 25px;
}

.mobile-menu-body a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300; /* İncelttik */
}

.mobile-lang-dropdown {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* --- RESPONSIVE AYARLAR (MOBİL KONTROLLERİ) --- */
@media (max-width: 991px) {
    .desktop-menu {
        display: none;
    }
    .desktop-lang {
        display: none;
    }
    .mobile-toggle-btn {
        display: block;
    }
}