/* File: app/static/css/mobile/mobile-menu.css */
/* Location: app/static/css/mobile/mobile-menu.css */
/* Purpose: Mobile menu drawer styles */

/* ===== MOBILE MENU DRAWER ===== */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    z-index: 2000;
    transition: left 0.3s ease-out;
    overflow-y: auto;
    padding-top: var(--mobile-safe-area-top);
}

.mobile-menu-drawer.active {
    left: 0;
}

/* Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-close:hover {
    background: var(--hover-bg);
}

.mobile-menu-close i {
    font-size: 16px;
    color: var(--text-primary);
}

/* Menu Content */
.mobile-menu-content {
    padding: 16px 0;
}

.mobile-menu-section {
    margin-bottom: 24px;
}

.mobile-menu-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0;
}

.mobile-menu-section a:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.mobile-menu-section a i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

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

/* ===== DARK THEME SUPPORT ===== */
[data-theme="dark"] .mobile-menu-drawer {
    background: var(--bg-primary);
    border-right-color: var(--border-color);
}

[data-theme="dark"] .mobile-menu-header {
    border-bottom-color: var(--border-color);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-menu-drawer.active {
    animation: slideInLeft 0.3s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-drawer,
    .mobile-menu-overlay {
        transition: none;
    }
    
    .mobile-menu-drawer.active {
        animation: none;
    }
}

/* ===== TOUCH OPTIMIZATION ===== */
.touch-capable .mobile-menu-section a {
    min-height: 44px;
}

.touch-capable .mobile-menu-close {
    min-height: 44px;
    min-width: 44px;
} 