/* ================================
   Mobile Hamburger Menu Styles
   ================================ */

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Styles */
@media (max-width: 968px) {

    /* Reorder nav container: hamburger → logo → sign up */
    .nav-container {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        /* Space between elements */
    }

    /* Show hamburger button on the far left */
    .hamburger {
        display: flex !important;
        order: -1 !important;
        /* Place first (leftmost) */
        margin-right: 0.5rem !important;
        /* Extra space from logo */
    }

    /* Resize logo on mobile to prevent overlap */
    .nav-logo-img {
        max-height: 24px;
        width: auto;
    }

    /* Logo comes after hamburger */
    .nav-logo {
        order: 0 !important;
        flex: 1 !important;
        /* Take available space */
        min-width: 0;
        /* Allow shrinking */
    }

    /* Show both Login and Sign Up buttons in mobile header */
    .nav-actions {
        display: flex !important;
        position: static !important;
        padding: 0 !important;
        gap: 0.5rem !important;
        background: transparent !important;
        border: none !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .nav-actions .nav-link-btn {
        display: inline-block !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px !important;
        color: white !important;
    }

    .nav-actions .btn-primary {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        width: auto !important;
        min-width: 75px !important;
        white-space: nowrap !important;
        background: var(--color-accent-blue) !important;
        /* Updated to use variable which is now gold */
        border: none !important;
        border-radius: 8px !important;
    }

    /* Mobile menu overlay for navigation links */
    .nav-links {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 2rem 1.5rem !important;
        gap: 0 !important;
        transition: left 0.3s ease !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        display: flex !important;
    }

    .nav-links.active {
        left: 0 !important;
    }

    .nav-links a {
        width: 100% !important;
        padding: 1rem 0 !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}

/* Very Small Mobile Screens (iPhone 13 etc) */
@media (max-width: 400px) {
    /* Removed .nav-logo-text display:none since button is hidden below */

    .nav-container {
        gap: 0.5rem !important;
    }

    .mobile-only.btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Hide Create button on iPhone SE (375px), iPhone 13 (390px), iPhone XR (414px) */
@media (max-width: 420px) {
    .mobile-only.btn {
        display: none !important;
    }
}