/* ============================================
   STANDARDIZED MOBILE MENU STYLES
   ============================================
   This file contains uniform mobile menu styles
   to be used across all pages for consistency.
   ============================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    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: all 0.3s ease;
}

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

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

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

/* Mobile Navigation Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-nav-close:hover {
    background: #f3f4f6;
    color: #333;
}

/* Mobile Navigation List */
.mobile-nav-list {
    flex: 1;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
}

.mobile-nav-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Mobile Navigation Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 12px;
}

.mobile-nav-link:hover {
    background: #f8fafc;
    color: #000;
}

.mobile-nav-link.active {
    background: #f0f9ff;
    color: #0369a1;
    border-left: 3px solid #0369a1;
    font-weight: 600;
}

.mobile-nav-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.mobile-nav-link.active svg {
    color: #0369a1;
}

/* Mobile Responsive Breakpoints */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
        order: 2; /* Position between logo (order: 1) and login button (order: 3) */
    }
}

@media (max-width: 480px) {
    .mobile-nav-menu {
        width: 280px;
        max-width: 85vw;
    }

    .mobile-nav-header {
        padding: 20px;
    }

    .mobile-nav-link {
        padding: 14px 20px;
        font-size: 15px;
    }

    .mobile-nav-link svg {
        width: 18px;
        height: 18px;
    }
}
