:root {
    --header-bottom-height: 60px;   /* Daha kompakt → 10 menü rahat sığar */
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-max: 1320px;
    --gutter: 32px;
    
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --brand-navy: #0f1a34;
    --brand-blue: #0047ff;
    --brand-blue-soft: rgba(0, 71, 255, 0.08);

    --header-bg: #ffffff;
    --header-border: rgba(15, 26, 52, 0.08);
    --header-shadow: 0 12px 40px -12px rgba(15, 26, 52, 0.12);
    
    --text-primary: var(--brand-navy);
    --text-muted: #64748b;
    
    --submenu-bg: #ffffff;
    --submenu-shadow: 0 24px 48px -12px rgba(15, 26, 52, 0.15);

    --mobile-panel-top: 76px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--text-primary);
}

/* ---------------------------------------------------
   HEADER GENEL YAPI
--------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--header-bg);
    z-index: 1000;
    transition: box-shadow var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: var(--header-shadow);
}

.container-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------------------------------------------------
   ÜST KATMAN: LOGO VE MASAÜSTÜ AFİŞ
--------------------------------------------------- */
.mobile-top-banner {
    display: none;
}

.header-top {
    border-bottom: 1px solid var(--header-border);
    background: var(--header-bg);
    position: relative;
    z-index: 2;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    padding: 12px 0;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-banner {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-banner img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

/* ---------------------------------------------------
   ALT KATMAN: MASAÜSTÜ MENÜ
   10 öğe yan yana → eşit aralıklı, ince ayraçlı, dengeli
--------------------------------------------------- */
.header-bottom {
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
}

.header-bottom-inner {
    display: flex;
    align-items: center;
    height: var(--header-bottom-height);
}

.site-nav { width: 100%; }

.site-menu {
    list-style: none;
    display: flex;
    align-items: stretch;
    justify-content: center;   /* Menü ortalanır, kenarlara yapışmaz */
    gap: 0;                    /* Aralık yerine ayraç çizgisi kullanılıyor */
    margin: 0;
    padding: 0;
    height: var(--header-bottom-height);
    width: 100%;
}

.site-menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 1 1 0;        /* 10 öğe eşit genişlikte paylaşır */
    max-width: 150px;   /* Az menüde aşırı genişlemeyi önler */
}

/* İnce ayraç — son öğe hariç, "nizami" hizalı görünüm */
.site-menu-item:not(:last-child)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--header-border);
}

/* =====================================================================
   MASAÜSTÜ ANA MENÜ LİNKİ
   flex-direction: column → ikon üstte, metin altta
   white-space: nowrap   → asla iki satıra kırılmaz
   ===================================================================== */
.site-menu-item > a {
    position: relative;
    display: flex;
    flex-direction: column;       /* İkon üste, metin alta */
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 10px;
    width: 100%;
    color: var(--text-muted);     /* Pasif öğeler daha soft, premium hiyerarşi */
    text-decoration: none;
    font-size: 11.5px;            /* 10 öğenin rahat sığması için kompakt */
    font-weight: 600;
    letter-spacing: 0.15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0;
    transition: background var(--transition-smooth), color var(--transition-smooth);
}

/* Alt çizgi efekti */
.site-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 2px 2px 0 0;
    transition: width var(--transition-smooth);
}

.site-menu-item > a:hover::after,
.site-menu-item.active > a::after,
.site-menu-item:focus-within > a::after {
    width: calc(100% - 20px);
}

.site-menu-item > a:hover,
.site-menu-item.active > a,
.site-menu-item:focus-within > a {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

/* İkonlar — üstte, ortalanmış, ince premium boyut */
.site-menu-item > a i:not(.submenu-caret) {
    font-size: 14.5px;
    color: var(--brand-blue);
    display: block;
    line-height: 1;
}

.site-menu-item > a:hover i:not(.submenu-caret) {
    color: var(--brand-blue);
}

/* Menü metni span'ı — tek satır, ortalanmış */
.site-menu-item > a span {
    display: block;
    white-space: nowrap;
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Açılır ok (caret) — metinle aynı satırda küçük */
.submenu-caret {
    font-size: 7px !important;
    display: inline-block !important;
    margin-left: 3px;
    vertical-align: middle;
    transition: transform var(--transition-smooth);
}

.site-menu-item > a .menu-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.site-menu-item.has-children:hover .submenu-caret,
.site-menu-item.submenu-open .submenu-caret {
    transform: rotate(180deg);
}

/* ---------------------------------------------------
   MASAÜSTÜ DROPDOWN
--------------------------------------------------- */
.site-submenu {
    list-style: none;
    margin: 0;
    padding: 12px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 220px;
    background: var(--submenu-bg);
    border: 1px solid var(--header-border);
    border-radius: 12px;
    box-shadow: var(--submenu-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 100;
}

.site-menu-item.has-children:hover .site-submenu,
.site-menu-item.has-children:focus-within .site-submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.site-submenu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 8px;
    color: var(--brand-navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition-smooth), color var(--transition-smooth);
}

.site-submenu li a:hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.site-submenu li a i {
    font-size: 14px;
    color: var(--brand-blue);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ---------------------------------------------------
   HAMBURGER BUTONU
--------------------------------------------------- */
.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    z-index: 1001;
}

.menu-toggle-bar {
    position: absolute;
    left: 9px;
    width: 26px;
    height: 2px;
    background: var(--brand-navy);
    border-radius: 2px;
    transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle-bar:nth-child(1) { top: 15px; }
.menu-toggle-bar:nth-child(2) { top: 22px; }
.menu-toggle-bar:nth-child(3) { top: 29px; }

.menu-toggle.active .menu-toggle-bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.active .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-toggle-bar:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------------------------------------------------
   OVERLAY
--------------------------------------------------- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 52, 0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ---------------------------------------------------
   📱 MOBİL (≤991px) — Akordeon Menü
   Mobilde ikon + metin yan yana (row) kalır, doğaldır
--------------------------------------------------- */
@media (max-width: 991px) {
    .container-inner { padding: 0 16px; }

    .mobile-top-banner {
        display: block;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--header-border);
        text-align: center;
        padding: 8px 16px;
    }

    .mobile-top-banner img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        height: auto;
        max-height: 70px;
        object-fit: contain;
    }

    .header-top-inner {
        height: auto;
        min-height: 76px;
        gap: 12px;
    }

    .header-banner { display: none; }
    .menu-toggle  { display: block; }

    /* Mobil açılır panel */
    .header-bottom {
        position: fixed;
        top: var(--mobile-panel-top);
        left: 0; right: 0; bottom: 0;
        background: #ffffff;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: none;
    }

    .header-bottom.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .header-bottom-inner {
        height: auto;
        padding: 12px 20px 40px 20px;
    }

    .site-menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        height: auto;
        gap: 0;
        justify-content: flex-start;
    }

    .site-menu-item {
        display: block;
        width: 100%;
        flex: none;
        max-width: none;
    }

    .site-menu-item:not(:last-child)::before {
        display: none; /* Mobilde ayraç yerine alt çizgi kullanılıyor */
    }

    /* Mobilde link ROW kalır (ikon sol, metin sağ) — daha doğal */
    .site-menu-item > a {
        flex-direction: row;        /* Mobilde yatay */
        justify-content: flex-start;
        align-items: center;
        gap: 14px;
        font-size: 17px;
        font-weight: 600;
        padding: 16px 8px;
        border-bottom: 1px solid var(--header-border);
        border-radius: 0;
        white-space: normal;        /* Mobilde kırılabilir, zaten geniş alan var */
        overflow: visible;
        text-overflow: clip;
        color: var(--brand-navy);
        background: transparent;
    }

    .site-menu-item > a::after { display: none; }

    .site-menu-item > a i:not(.submenu-caret) {
        font-size: 20px;
        color: var(--brand-blue);
        width: 24px;
        text-align: center;
        display: block;
    }

    .submenu-caret { margin-left: auto; font-size: 11px !important; }

    .site-menu-item > a:hover,
    .site-menu-item.active > a {
        background: var(--brand-blue-soft);
        color: var(--brand-navy);
        padding-left: 14px;
    }

    /* Akordeon alt menü */
    .site-submenu {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border: none;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 16px;
        border-radius: 0;
        transition: max-height var(--transition-smooth), padding var(--transition-smooth);
    }

    .site-menu-item.submenu-open .site-submenu {
        max-height: 1000px;
        padding: 4px 16px 12px 16px;
        border-bottom: 1px solid var(--header-border);
    }

    .site-submenu li a {
        color: var(--text-muted);
        padding: 12px 12px;
        font-size: 15px;
        border-bottom: 1px dashed rgba(15, 26, 52, 0.1);
        white-space: normal;
    }

    .site-submenu li:last-child a { border-bottom: none; }

    .site-submenu li a:hover {
        background: transparent;
        color: var(--brand-blue);
    }

    .logo-img { height: 36px; }
}