/* ════════════════════════════════════════════════════════
   HEADER.CSS — AZ24SAAT.ORG  |  Premium 2025
════════════════════════════════════════════════════════ */
@font-face {
        font-display: swap;
        font-family: 'Inter';
        font-style: normal;
        font-weight: 400;
        src: url('/assets/fonts/inter-v13-latin-regular.woff2') format('woff2')
}

@font-face {
        font-display: swap;
        font-family: 'Inter';
        font-style: normal;
        font-weight: 500;
        src: url('/assets/fonts/inter-v13-latin-500.woff2') format('woff2')
}

@font-face {
        font-display: swap;
        font-family: 'Inter';
        font-style: normal;
        font-weight: 700;
        src: url('/assets/fonts/inter-v13-latin-700.woff2') format('woff2')
}

*,
*::before,
*::after {
        box-sizing: border-box
}

body {
        margin: 0;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        background: #f2f4f8;
        color: #1a1d27;
        -webkit-font-smoothing: antialiased
}

a {
        text-decoration: none;
        color: inherit
}

/* ── Site Header ── */
.site-header {
        background: linear-gradient(135deg, #0f1c38 0%, #1a2b49 60%, #1e3254 100%);
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        color: #fff;
        flex-wrap: wrap;
        min-height: 64px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
        position: sticky;
        top: 0;
        z-index: 1000;
}

/* ── Logo ── */
.logo a {
        display: flex;
        align-items: center
}

.logo img {
        width: 140px;
        height: auto;
        display: block
}

/* ── Search ── */
.header-search {
        display: flex;
        gap: 0;
        align-items: center;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 24px;
        overflow: hidden;
        transition: background .2s, border-color .2s
}

.header-search:focus-within {
        background: rgba(255, 255, 255, .14);
        border-color: rgba(255, 255, 255, .3)
}

.header-search input[type="text"] {
        padding: 9px 16px;
        background: transparent;
        border: none;
        outline: none;
        font-size: 14px;
        color: #fff;
        width: 180px;
        font-family: inherit;
        transition: width .3s
}

.header-search input[type="text"]::placeholder {
        color: rgba(255, 255, 255, .5)
}

.header-search input[type="text"]:focus {
        width: 240px
}

.header-search button {
        background: #e30613;
        color: #fff;
        border: none;
        padding: 9px 16px;
        cursor: pointer;
        font-size: 15px;
        line-height: 1;
        transition: background .2s;
        flex-shrink: 0
}

.header-search button:hover {
        background: #b7000f
}

/* ── Navigation ── */
.main-nav {
        flex: 1
}

.main-categories {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 4px
}

.main-categories>li {
        position: relative
}

.main-categories a {
        display: block;
        padding: 6px 13px;
        border-radius: 20px;
        color: rgba(255, 255, 255, .85);
        font-weight: 500;
        font-size: 13.5px;
        transition: background .2s, color .2s
}

.main-categories>li>a:hover,
.main-categories>li>a:focus {
        background: rgba(255, 255, 255, .12);
        color: #fff
}

.main-categories>li.active>a {
        background: rgba(255, 255, 255, .18);
        color: #fff;
        font-weight: 600
}

/* ── Submenu ── */
.submenu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
        padding: 6px 0;
        min-width: 210px;
        z-index: 100;
        list-style: none;
        border: 1px solid #e8eaf0
}

.submenu li a {
        display: block;
        padding: 10px 18px;
        color: #374151;
        font-size: 13.5px;
        transition: background .15s, color .15s
}

.submenu li a:hover {
        background: #f3f4f6;
        color: #e30613
}

.main-categories li:hover>.submenu,
.main-categories li:focus-within>.submenu {
        display: block;
        animation: fadeDown .15s ease
}

@keyframes fadeDown {
        from {
                opacity: 0;
                transform: translateY(-6px)
        }

        to {
                opacity: 1;
                transform: translateY(0)
        }
}

/* ── Language Switcher ── */
.header-tools {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto
}

.language-switcher {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .12)
}

.language-switcher a,
.language-switcher span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 32px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: .03em;
        transition: all .2s
}

.language-switcher a {
        color: rgba(255, 255, 255, .8);
        background: transparent
}

.language-switcher a:hover {
        background: rgba(255, 255, 255, .12);
        color: #fff
}

.language-switcher .active {
        color: #0f1221;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .18)
}

/* ── Hamburger ── */
.hamburger {
        display: none;
        border: none;
        background: rgba(255, 255, 255, .1);
        cursor: pointer;
        z-index: 1001;
        padding: 8px;
        border-radius: 10px;
        transition: background .2s
}

.hamburger:hover {
        background: rgba(255, 255, 255, .18)
}

.hamburger-box {
        width: 26px;
        height: 20px;
        display: inline-block;
        position: relative
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
        width: 26px;
        height: 2.5px;
        background: #fff;
        border-radius: 3px;
        position: absolute;
        transition: transform .22s ease
}

.hamburger-inner {
        top: 50%;
        transform: translateY(-50%)
}

.hamburger-inner::before,
.hamburger-inner::after {
        content: '';
        display: block
}

.hamburger-inner::before {
        top: -9px
}

.hamburger-inner::after {
        bottom: -9px
}

.hamburger.is-active .hamburger-inner {
        transform: rotate(45deg)
}

.hamburger.is-active .hamburger-inner::before {
        top: 0;
        transform: rotate(90deg)
}

.hamburger.is-active .hamburger-inner::after {
        bottom: 0;
        transform: rotate(90deg);
        opacity: 0
}

/* ── Responsive ── */
@media screen and (max-width:992px) {
        .site-header {
                position: relative;
                padding: 10px 16px;
                flex-wrap: wrap
        }

        .hamburger {
                display: flex;
                align-items: center;
                justify-content: center;
                order: 3
        }

        .header-search {
                order: 2;
                flex-grow: 1
        }

        .header-search input[type="text"] {
                width: 100%
        }

        .logo {
                order: 1
        }

        .main-nav {
                display: none;
                width: 100%;
                order: 5;
                margin-top: 10px
        }

        .main-nav.is-active {
                display: block
        }

        .main-categories {
                flex-direction: column;
                gap: 0;
                background: rgba(0, 0, 0, .2);
                border-radius: 12px;
                overflow: hidden
        }

        .main-categories>li>a {
                padding: 13px 16px;
                border-bottom: 1px solid rgba(255, 255, 255, .06);
                border-radius: 0;
                color: #fff
        }

        .submenu {
                position: static;
                box-shadow: none;
                background: rgba(0, 0, 0, .2);
                border: none;
                border-radius: 0;
                padding-left: 16px
        }

        .header-tools {
                order: 4;
                width: 100%;
                justify-content: flex-end;
                margin-left: 0
        }
}

@media screen and (max-width:576px) {
        .logo img {
                width: 120px
        }

        .header-search {
                order: 4;
                width: 100%;
                margin-top: 6px
        }

        .header-search input[type="text"] {
                width: 100% !important
        }
}
