/* Mobile-Friendly Navigation CSS */

/* Base navigation styles - keep existing desktop styles */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1000;
}

.nav-brand {
    color: #ff6b35;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: #4a9eff;
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}

/* Login/Register button */
.nav-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #4a9eff 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Hamburger menu button - hidden by default */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ff6b35;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile menu container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 2rem 0;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile menu header */
.mobile-menu-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    margin-bottom: 1rem;
}

.mobile-menu-header .nav-brand {
    font-size: 1.2rem;
}

/* Mobile menu links */
.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mobile-nav-links a:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding-left: 2.5rem;
}

/* Mobile CTA button */
.mobile-nav-cta {
    margin: 2rem;
    text-align: center;
}

.mobile-nav-cta .nav-cta {
    display: inline-block;
    width: auto;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    /* Hide desktop navigation */
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }
    
    /* Adjust main navigation padding */
    .main-navigation {
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .main-navigation {
        padding: 0.75rem;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .mobile-menu {
        width: 90%;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Smooth transitions for all interactive elements */
* {
    box-sizing: border-box;
}

/* Focus styles for accessibility */
.hamburger:focus,
.mobile-nav-links a:focus,
.nav-links a:focus,
.nav-cta:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-links a,
    .mobile-nav-links a {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hamburger span,
    .mobile-menu,
    .nav-links a,
    .mobile-nav-links a,
    .nav-cta {
        transition: none;
    }
}

