/* ========================================
   AITOLIE - Header Styles (Dark Mode)
   Navigation, Language Switcher, CTA
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: transparent;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.header.is-scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Navigation - Hidden on mobile by position, not display */
.header__nav {
    display: block;
}

@media (min-width: 1024px) {
    .header__nav {
        display: flex;
        margin-left: auto;
    }
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__nav-item {
    display: flex;
    align-items: center;
}

.header__nav-link {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    transition: color 0.2s;
}

.header__nav-link:hover {
    color: #D4AF37;
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Button */
.header__lang {
    position: relative;
}

.header__lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.header__lang-btn:hover {
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.5);
}

/* Language Dropdown */
.header__lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 100;
}

.header__lang.is-open .header__lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.header__lang-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.header__lang-option.is-active {
    color: #D4AF37;
}

.header__lang-flag {
    font-size: 14px;
}

/* CTA Button - Gold Outline */
.header__cta {
    display: none;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #C9A962;
    background: transparent;
    border: 1px solid rgba(201, 169, 98, 0.5);
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.header__cta:hover {
    color: #E8D5A3;
    border-color: #C9A962;
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.2);
}

@media (min-width: 768px) {
    .header__cta {
        display: inline-flex;
    }
}

/* Mobile Menu Toggle */
.header__menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    /* Ensure above overlay (999) */
}

@media (min-width: 1024px) {
    .header__menu-toggle {
        display: none;
    }
}

.header__menu-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.header__menu-toggle.is-active .header__menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle.is-active .header__menu-bar:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle.is-active .header__menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Mobile Menu Overlay ========== */
@media (max-width: 1023px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 32px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid rgba(201, 169, 98, 0.2);
    }

    .header__nav.is-open {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 0;
    }

    .header__nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header__nav-link {
        display: block;
        padding: 20px 0;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }

    .header__nav-link:hover {
        color: #C9A962;
    }
}
/* Products Dropdown (Futuristic) */
.header__nav-item--products {
    position: relative;
}

.header__nav-link--products {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header__nav-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.25s ease;
}

.header__products-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(13, 20, 28, 0.96), rgba(8, 14, 24, 0.92));
    border: 1px solid rgba(100, 220, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(60, 170, 255, 0.08);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 220;
}

.header__products-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(120, 230, 255, 0.14), rgba(201, 169, 98, 0.08));
    pointer-events: none;
}

.header__products-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: rgba(232, 245, 255, 0.9);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 13px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header__products-title {
    white-space: nowrap;
}

.header__products-status {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(120, 230, 255, 0.35);
    background: rgba(14, 31, 46, 0.7);
    color: #8fe6ff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.header__products-link:hover {
    background: rgba(120, 230, 255, 0.12);
    color: #ffffff;
    transform: translateX(2px);
}

.header__nav-item--products:hover .header__products-menu,
.header__nav-item--products:focus-within .header__products-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__nav-item--products:hover .header__nav-chevron,
.header__nav-item--products:focus-within .header__nav-chevron {
    transform: rotate(225deg) translateY(-1px);
}

@media (max-width: 1023px) {
    .header__products-menu {
        position: static;
        min-width: 100%;
        margin: 2px 0 14px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .header__products-link {
        padding: 12px;
    }

    .header__products-title {
        white-space: normal;
    }
}