/**
 * Header Styles - Modern Light Design
 * Clean, minimal navigation
 */

/* Header Container */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    transition: all 0.3s ease;
}

/* Logo Styles */
.site-logo img {
    max-height: 40px;
    width: auto;
}

.site-logo a {
    display: block;
}

/* Navigation Links */
.primary-menu,
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li,
.mobile-menu li {
    margin: 0;
}

.primary-menu a,
.mobile-menu a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.primary-menu a:hover,
.mobile-menu a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.primary-menu .current-menu-item > a,
.mobile-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.mobile-menu .current_page_item > a {
    color: var(--primary);
    background: var(--primary-bg);
}

/* Mobile Menu */
.mobile-menu a {
    display: flex;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.mobile-menu a:hover {
    background: var(--bg-tertiary);
}

/* Mobile Menu Toggle Button */
#mobile-menu-toggle {
    border: none;
    cursor: pointer;
}

#mobile-menu-toggle:hover {
    background: var(--bg-hover) !important;
}

#mobile-menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Active/Open state for mobile menu toggle */
#mobile-menu-toggle.active svg {
    transform: rotate(90deg);
}

/* Dropdown support */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* Menu item with dropdown indicator */
.primary-menu .menu-item-has-children {
    position: relative;
}

.primary-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.375rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.5;
}

/* Mobile submenu */
.mobile-menu .sub-menu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.mobile-menu .sub-menu.open {
    display: block;
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s ease forwards;
}

/* Scroll state - header becomes more solid */
.site-header.scrolled .header-container {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .primary-menu {
        display: none !important;
    }
    
    #mobile-menu-toggle {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    #mobile-menu {
        display: none !important;
    }
    
    #mobile-menu-toggle {
        display: none !important;
    }
}
