/* ==================== HEADER ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-dark);
}

/* Nav Bar */
.nav-bar {
    background: linear-gradient(180deg, #1a1a2e 0%, #151525 100%);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    gap: 1px;
    flex-shrink: 0;
    margin-right: 40px;
}
.logo-symbol { color: var(--primary); font-weight: 700; }
.logo-text { color: var(--text-white); }
.logo-accent {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.5em;
    margin-left: 4px;
    background: rgba(14,165,233,0.15);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    gap: 2px;
}
.nav-item { position: relative; }
.nav-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 18px;
    height: 56px;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-ui, var(--font));
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
}
.nav-item > a::before {
    content: '';
    position: absolute;
    inset: 8px 6px;
    border-radius: 8px;
    background: transparent;
    transition: background 0.25s ease;
    z-index: -1;
}
.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-item > a:hover {
    color: #fff;
}
.nav-item > a:hover::before {
    background: rgba(255,255,255,0.04);
}
.nav-item > a:hover::after,
.nav-item.active > a::after {
    width: calc(100% - 24px);
}
.nav-item.active > a {
    color: #fff;
}
.nav-arrow {
    transition: transform 0.25s ease;
    opacity: 0.35;
    margin-left: 1px;
}
.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
    opacity: 0.7;
}

/* Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.search-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    color: rgba(255,255,255,0.45);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

/* Search Overlay */
.search-overlay {
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
}
.search-overlay.active {
    max-height: 80px;
    padding: 14px 0;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0 16px;
    transition: border-color 0.2s ease;
}
.search-form:focus-within {
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
}
.search-form-icon {
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 12px 0;
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}
.search-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    z-index: 100;
    overflow: hidden;
}
.mega-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.nav-item:hover > .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-inner {
    padding: 20px;
}
.mega-heading {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-col ul li { margin-bottom: 0; }
.mega-col ul a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 2px -12px;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.mega-col ul a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: all 0.2s;
}
.mega-col ul a:hover {
    color: var(--primary);
    background: var(--bg-light);
}
.mega-col ul a:hover::before {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}

.mega-col-link {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.mega-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: gap 0.2s ease;
}
.mega-view-all:hover { gap: 12px; }

/* Menu Toggle (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }
.menu-toggle span {
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    transition: 0.2s ease;
}
