/* Mobile Menu Styles - Separate file to avoid conflicts */

/* Hide mobile menu elements on desktop */
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide desktop navigation on mobile */
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
        position: relative;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--text-main, #1a1b26);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* Hamburger to X animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

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

    /* Mobile menu container */
    .mobile-menu {
        display: block !important;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 1001;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu.active {
        max-height: 500px !important;
        overflow-y: auto;
    }

    .mobile-menu-inner {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-menu-link {
        display: block;
        color: var(--text-main, #1a1b26);
        font-size: 1.1rem;
        font-weight: 500;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: color 0.3s ease;
        text-decoration: none;
    }

    .mobile-menu-link:last-of-type {
        border-bottom: none;
    }

    .mobile-menu-link:hover,
    .mobile-menu-link:active {
        color: var(--primary, #066FD1);
    }

    .mobile-menu-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-btn-full {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Mobile menu overlay/backdrop */
    .mobile-menu-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        pointer-events: all;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

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

