/* Unified Mobile Menu CSS - Simplified Version */
/* Combines essential responsive navigation styles */

:root {
    --primary: #2a5bd7;
    --secondary: #f7931e;
    --dark: #1a1a1a;
    --mobile-breakpoint: 768px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    color: white;
    font-size: 2.5rem;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Hamburger Icon */
.mobile-menu-btn .hamburger {
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* Mobile Navigation Container */
#mobile-nav-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

#mobile-nav-container.active {
    left: 0;
}

/* Mobile Navigation Overlay */
#mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

#mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Header */
.mobile-nav-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
    min-height: 60px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-nav-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
    background-color: #f8f9fa;
    color: var(--primary);
    padding-left: 2rem;
}

.mobile-nav-menu a.active {
    background-color: var(--primary);
    color: white;
}

.mobile-nav-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--secondary);
}

/* Body scroll lock */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide desktop navigation on mobile */
    #main-nav {
        display: none !important;
    }
    
    /* Ensure body doesn't scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    #mobile-nav-container,
    #mobile-nav-overlay {
        display: none !important;
    }
    
    /* Ensure desktop navigation is visible */
    #main-nav {
        display: flex !important;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #mobile-nav-container,
    #mobile-nav-overlay,
    .mobile-menu-btn {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .mobile-menu-btn,
    #mobile-nav-container,
    #mobile-nav-overlay {
        display: none !important;
    }
    
    body {
        overflow: visible !important;
        position: static !important;
    }
}
