/* Mobile Navigation Styles */

/* Hide mobile navigation on desktop */
@media (min-width: 768px) {
    .mobile-nav-container {
        display: none !important;
    }
    
    .mobile-menu-dropdown {
        display: none !important;
    }
    
    .desktop-nav {
        display: flex !important;
    }
    
    .desktop-controls {
        display: flex !important;
    }
}

/* Show mobile navigation on mobile devices */
@media (max-width: 767px) {
    .desktop-nav {
        display: none !important;
    }
    
    .desktop-controls {
        display: none !important;
    }
    
    .mobile-nav-container {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.75rem;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
        z-index: 1001;
    }
    
    .mobile-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
        background: var(--text-primary);
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -7px);
    }
    
    .mobile-controls {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-controls .theme-selector {
        gap: 0.25rem;
        padding: 0.25rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
    }
    
    .mobile-controls .theme-option {
        min-width: 36px;
        height: 36px;
        font-size: 0.875rem;
        border-radius: 0.375rem;
    }
    
    .mobile-controls .language-toggle {
        padding: 0.5rem 0.75rem;
        border-radius: 0.375rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Mobile Menu Dropdown */
.mobile-menu-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh; /* 50% of viewport height */
    background-color: #0b1120;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    background-color: rgba(11, 17, 32, 0.95);
}

.mobile-menu-dropdown.active {
    transform: translateY(0);
}

.mobile-menu-dropdown-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Smooth scroll behavior for mobile menu */
.mobile-menu-dropdown-content::-webkit-scrollbar {
    width: 0px;
}

.mobile-menu-dropdown-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-menu-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    flex-shrink: 0;
}

.mobile-menu-dropdown-title {
    color: #e5e7eb;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.mobile-menu-dropdown-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.mobile-menu-dropdown-close:hover {
    color: #e5e7eb;
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-dropdown-nav {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-dropdown-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 1.125rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.mobile-menu-dropdown-link:hover {
    color: #e5e7eb;
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.mobile-menu-dropdown-link i {
    width: 1.5rem;
    text-align: center;
    color: #60a5fa;
    font-size: 1rem;
}

.mobile-menu-dropdown-link.active {
    color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .mobile-menu-dropdown {
        height: 60vh; /* Slightly taller on very small screens */
    }
    
    .mobile-menu-dropdown-nav {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .mobile-menu-dropdown-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .mobile-menu-dropdown-title {
        font-size: 1.125rem;
    }
} 