/* =====================================================
   ROOT – ARALİS GLOBAL KURUMSAL PALET
   ===================================================== */
:root {
    /* Ana Header Arkaplanı (Başlangıçta Şeffaf/Camsı) */
    --header-bg: rgba(0, 20, 43, 0.2); 
    --header-bg-scrolled: rgba(0, 20, 43, 0.98);
    
    --header-border: rgba(255, 255, 255, 0.1);

    /* Renkler */
    --accent: #FF8C3E; /* Kurumsal Turuncu */
    --accent-hover: #e67e38;
    --accent-soft: rgba(255, 140, 62, 0.15);

    --text-main: #ffffff;
    --text-soft: #e2e8f0;
    --text-muted: #94a3b8;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================================
   HEADER (ANA KAPSIYICI)
   ===================================================== */
.aralis-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Standart Yükseklik */
    z-index: 9999; /* Slider'ın her zaman üstünde */

    background: var(--header-bg);
    backdrop-filter: blur(4px); /* Hafif blur */
    border-bottom: 1px solid transparent;

    transition: var(--transition);
}

/* Scroll Yapınca Devreye Giren Stil */
.aralis-header.shrink {
    height: 70px; /* Küçülme efekti */
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ALT IŞIK (Sadece Scroll Yapınca Görünür) */
.header-lightbar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.aralis-header.shrink .header-lightbar {
    opacity: 1;
    background: rgba(255, 140, 62, 0.3);
}

.header-lightbar::before {
    content: "";
    position: absolute;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: headerGlow 3s linear infinite;
}
@keyframes headerGlow {
    to { left: 100%; }
}

/* =====================================================
   INNER (İÇ YAPI & HİZALAMA)
   ===================================================== */
.header-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center; /* Dikey ortalama - Kaymaları önler */
    justify-content: space-between;
}

/* LOGO */
.header-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.aralis-header.shrink .header-logo img {
    height: 40px;
}

/* =====================================================
   NAVIGASYON (MENÜ)
   ===================================================== */
.header-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto; /* Sağa yaslar ama Right Area'ya yer bırakır */
    margin-right: 30px;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link i {
    font-size: 13px;
    color: var(--accent);
    opacity: 0.8;
}

.nav-link:hover, .nav-item.open .nav-link {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

/* Nav Aktif Çizgisi */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 10px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: 0.3s ease;
}
.nav-link.active::after {
    width: 20px;
}

/* =====================================================
   DROPDOWN MENÜLER
   ===================================================== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px); /* Header'dan biraz aşağıda */
    left: 0;
    min-width: 240px;
    padding: 12px;
    border-radius: 16px;
    
    background: rgba(0, 20, 43, 0.98); /* Koyu Lacivert */
    backdrop-filter: blur(20px);
    border: 1px solid var(--header-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

/* Hover veya JS ile açılma */
.nav-item:hover .dropdown-menu,
.nav-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background: var(--accent-soft);
    color: var(--text-main);
    padding-left: 20px; /* Hover efekti */
}

/* =====================================================
   SAĞ ALAN (DİL & PORTAL & HAMBURGER)
   ===================================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

/* =====================================================
   DİL SEÇİMİ (Fix: Devasa Bayrak Sorunu Çözüldü)
   ===================================================== */
.topbar-lang {
    position: relative;
    z-index: 1001;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--header-border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-current img {
    width: 20px; /* Sabit Genişlik */
    height: auto;
    border-radius: 2px;
}

.lang-current:hover {
    background: rgba(255,255,255,0.1);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 140px; /* Genişlik Sınırlandırıldı */
    padding: 8px;
    
    background: rgba(0, 20, 43, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid var(--header-border);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.topbar-lang:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.lang-item img {
    width: 20px !important; /* Bayrakları zorla küçült */
    height: auto;
    border-radius: 2px;
}

.lang-item:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* =====================================================
   MÜŞTERİ PORTALI (Fix: Renk ve Boyut)
   ===================================================== */
.topbar-portal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap; /* Yazının alt satıra kaymasını engeller */

    background: var(--accent); /* Aralis Turuncusu */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 140, 62, 0.25);
    transition: var(--transition);
}

.topbar-portal i { font-size: 14px; }

.topbar-portal:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(255, 140, 62, 0.4);
}

/* =====================================================
   HAMBURGER & MOBİL MENÜ
   ===================================================== */
.hamburger {
    display: none; /* Mobilde görünür */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s;
}

/* Mobil Drawer (Yan Menü) */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 20, 43, 0.98); /* Koyu Lacivert */
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav a {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.mobile-nav a:hover { color: var(--accent); }

.mobile-nav a.portal {
    margin-top: 20px;
    padding: 15px 40px;
    background: var(--accent);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
}

/* =====================================================
   RESPONSIVE (TABLET & MOBİL)
   ===================================================== */
@media (max-width: 1150px) {
    .header-nav { display: none; }
    .header-right { gap: 10px; }
    .hamburger { display: flex; }
    
    /* Mobilde Portal Butonunu Gizle (Drawer içine aldık) */
    .topbar-portal { display: none; } 
    
    .header-inner { padding: 0 20px; }
}
/* =====================================================
   DROPDOWN MENÜLER (Geliştirilmiş Sabitlenmiş Versiyon)
   ===================================================== */
.dropdown-menu {
    position: absolute;
    /* Link ile menü arasındaki görsel mesafeyi buradan ayarlayın */
    top: calc(100% + 10px); 
    left: 0;
    min-width: 240px;
    padding: 12px;
    border-radius: 16px;
    
    /* Arka planı geri getirdik - Okunabilirlik için şart */
    background: rgba(0, 20, 43, 0.98); 
    backdrop-filter: blur(20px);
    border: 1px solid var(--header-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

/* KÖPRÜ ÇÖZÜMÜ: Link ile Menü arasındaki boşluğu dolduran görünmez alan */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px; /* Boşluk kadar yukarı uzanır */
    left: 0;
    width: 100%;
    height: 20px; /* Boşluğu kapatacak yükseklik */
    background: transparent; /* Tamamen görünmez */
}

/* Hover veya JS ile açılma */
.nav-item:hover .dropdown-menu,
.nav-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}