/*
 * Header Stylesheet
 * This file contains styles specifically for the website header and navigation
 * Author: Performance Test Website
 * Date: 2026-03-30
 * Version: 1.0.0
 * 
 * This is a separate CSS file to add additional HTTP requests
 * and demonstrate render-blocking issues with multiple CSS files.
 */

/* ========================================================================
   HEADER STYLES
   ======================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    padding: 1rem 0;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========================================================================
   LOGO STYLES
   ======================================================================== */

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.logo-icon {
    font-size: 2rem;
    color: #007bff;
    margin-right: 0.75rem;
}

/* ========================================================================
   NAVIGATION STYLES
   ======================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu-item {
    margin-left: 2rem;
    position: relative;
}

.nav-menu-item:first-child {
    margin-left: 0;
}

.nav-menu-link {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-menu-link:hover {
    color: #007bff;
    text-decoration: none;
}

.nav-menu-link:hover::after {
    width: 100%;
}

.nav-menu-item.active .nav-menu-link {
    color: #007bff;
}

.nav-menu-item.active .nav-menu-link::after {
    width: 100%;
}

/* ========================================================================
   MOBILE MENU TOGGLE
   ======================================================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle-bar {
    width: 30px;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .mobile-menu-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .mobile-menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .mobile-menu-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================================================
   RESPONSIVE NAVIGATION
   ======================================================================== */

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: left 0.3s ease;
        padding: 5rem 2rem 2rem;
        display: flex;
        align-items: flex-start;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu-item {
        margin: 0;
        margin-bottom: 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu-link {
        font-size: 1.25rem;
        padding: 1rem 0;
    }
}

/* ========================================================================
   DROPDOWN MENU STYLES
   ======================================================================== */

.nav-menu-item.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
}

.nav-menu-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-item {
    padding: 0;
    margin: 0;
}

.dropdown-menu-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s ease;
}

.dropdown-menu-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

/* ========================================================================
   SEARCH BAR IN HEADER
   ======================================================================== */

.header-search {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    width: 250px;
}

.search-button {
    background: none;
    border: none;
    color: #007bff;
    font-size: 1.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    color: #0056b3;
    transform: scale(1.1);
}
