/* ================================================================
   MOBILE MENU - PROFESSIONAL STRUCTURE
   Uses fixed positioning to avoid affecting document layout
   ================================================================ */

/* Mobile Menu Button (Toggle) */
.mobile-menu-button {
    position: fixed !important;
    top: 16px;
    left: 16px;
    z-index: 2000 !important;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 201, 215, 0.15);
}

.mobile-menu-button:active {
    background: rgba(0, 201, 215, 0.2);
    border-color: rgba(0, 201, 215, 0.4);
    box-shadow: 0 2px 8px rgba(0, 201, 215, 0.25);
}

.mobile-menu-button.active {
    background: rgba(0, 201, 215, 0.25);
    border-color: rgba(0, 201, 215, 0.5);
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
    pointer-events: none;
}

/* Mobile Menu Overlay (Backdrop) */
.mobile-menu-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999 !important;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Navigation Menu */
.mobile-navigation {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    z-index: 1000 !important;
    background: rgba(30, 60, 120, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    flex-direction: column;
}

.mobile-navigation.active {
    transform: translateX(0);
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mobile-nav-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* Mobile Nav List */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: rgba(0, 201, 215, 0.6);
}

.mobile-nav-link:active {
    background: rgba(0, 201, 215, 0.15);
    color: #ffffff;
    border-left-color: rgba(0, 201, 215, 1);
}

.nav-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-label {
    flex: 1;
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
    body .mobile-menu-button,
    html body .mobile-menu-button,
    #mobileMenuButton {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        z-index: 2000 !important;
    }
}

/* Tablet and smaller */
@media (max-width: 600px) {
    body .mobile-menu-button,
    html body .mobile-menu-button,
    #mobileMenuButton {
        width: 48px !important;
        height: 48px !important;
        top: 12px !important;
        left: 12px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        z-index: 2000 !important;
    }

    .hamburger-icon {
        width: 26px;
        height: 26px;
    }

    .mobile-navigation {
        width: 260px;
    }

    .mobile-nav-header {
        padding: 16px 12px;
    }

    .mobile-nav-list {
        padding: 4px 0;
    }

    .mobile-nav-link {
        padding: 10px 12px;
        gap: 10px;
        font-size: 15px;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .mobile-menu-button {
        width: 44px;
        height: 44px;
        top: 10px;
        left: 10px;
    }

    .mobile-navigation {
        width: 240px;
        max-width: 85vw;
    }

    .mobile-nav-title {
        font-size: 16px;
    }

    .mobile-nav-link {
        padding: 10px 10px;
        font-size: 14px;
    }

    .nav-icon {
        font-size: 18px;
    }
}

/* Desktop - Hide mobile menu */
@media (min-width: 769px) {
    .mobile-menu-button,
    .mobile-menu-overlay,
    .mobile-navigation {
        display: none !important;
    }
}
