/*
 * Mobile Navigation Styles
 * Extracted from inline CSS to improve maintainability
 */

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Mobile menu container - use higher specificity to override desktop styles */
    .nav-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: #1a2b4a !important;
        transition: left 0.3s ease !important;
        z-index: 1002 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 2rem 0 !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        pointer-events: none !important;
    }
    
    .nav-wrapper.active {
        left: 0 !important;
        pointer-events: auto !important;
    }
    
    /* Mobile navigation links */
    .nav-links {
        height: auto;
        overflow: visible;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 0;
        list-style: none;
    }
    
    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        list-style: none;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a,
    .nav-links button {
        display: block;
        padding: 1rem;
        color: #fff;
        text-decoration: none;
        width: 100%;
        text-align: center;
        background: none;
        border: none;
        font-family: inherit;
        cursor: pointer;
    }
    
    .nav-links a:hover,
    .nav-links button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile dropdown styles - override desktop styles completely */
    .nav-wrapper .dropdown-content {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .nav-wrapper .dropdown.is-open .dropdown-content,
    .nav-wrapper .dropdown.active .dropdown-content {
        max-height: 500px;
    }
    
    .nav-wrapper .dropdown-content li {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-wrapper .dropdown-content a {
        color: #fff;
        padding: 0.75rem 1rem;
        padding-left: 2rem;
        background: none;
        border-left: 3px solid transparent;
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    .nav-wrapper .dropdown-content a i {
        margin-right: 0.5rem;
        width: 1.2rem;
        text-align: center;
        flex-shrink: 0;
    }
    
    .nav-wrapper .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-left-color: #fff;
    }
    
    /* Mobile close button */
    .mobile-close-btn {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1002;
        color: #fff;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Dark mode mobile menu styles */
    body.dark-mode .nav-wrapper {
        background-color: #121212;
    }
    
    body.dark-mode .nav-wrapper.active {
        background-color: #121212;
    }
    
    body.dark-mode .nav-links a,
    body.dark-mode .nav-links button {
        color: #e0e6ef;
    }
    
    body.dark-mode .nav-links a:hover,
    body.dark-mode .nav-links button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    body.dark-mode .dropdown-content {
        background: rgba(0, 0, 0, 0.3);
    }
    
    body.dark-mode .dropdown-content a {
        color: #e0e6ef;
    }
    
    body.dark-mode .dropdown-content a i {
        color: #e0e6ef;
    }
    
    body.dark-mode .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-left-color: #e0e6ef;
    }
    
    body.dark-mode .mobile-close-btn {
        color: #e0e6ef;
    }
    
    /* Footer mobile styles */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
}