/**
 * Menu Modal - Nordersun v5.1.0
 * Modal del menu hamburguesa con 4 botones
 * Colores Walmart
 */

/* ============================================
   MODAL OVERLAY
   ============================================ */

.menu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

/* ============================================
   MODAL CONTAINER
   ============================================ */

.menu-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.menu-modal-overlay.active .menu-modal {
    transform: scale(1);
    opacity: 1;
}

/* ============================================
   CLOSE BUTTON
   ============================================ */

.menu-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.menu-modal-close i {
    font-size: 18px;
    color: #666;
}

/* ============================================
   MODAL HEADER
   ============================================ */

.menu-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.menu-modal-title {
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    font-size: 24px;
    font-weight: normal;
    color: #0071dc;
    margin-bottom: 8px;
}

/* ============================================
   MENU SCREENS
   ============================================ */

.menu-screen {
    width: 100%;
}

/* ============================================
   BACK BUTTON
   ============================================ */

.menu-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.menu-back-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(-2px);
}

.menu-back-btn i {
    font-size: 16px;
    color: #666;
}

/* ============================================
   MENU ITEMS
   ============================================ */

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item-btn {
    background: linear-gradient(135deg, #0071dc 0%, #005bb5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.menu-item-btn:hover {
    background: linear-gradient(135deg, #005bb5 0%, #004a99 100%);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 113, 220, 0.3);
}

.menu-item-btn i {
    font-size: 18px;
}

/* ============================================
   MENU CONTENT
   ============================================ */

.menu-content {
    padding: 20px 0;
    color: #333;
    line-height: 1.6;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
}

.menu-content p {
    margin-bottom: 16px;
    font-size: 15px;
    color: #555;
}

.menu-content::-webkit-scrollbar {
    width: 8px;
}

.menu-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.menu-content::-webkit-scrollbar-thumb {
    background: #0071dc;
    border-radius: 10px;
}

.menu-content::-webkit-scrollbar-thumb:hover {
    background: #005bb5;
}

/* ============================================
   VERSION
   ============================================ */

.menu-version {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-version span {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .menu-modal {
        max-width: 95%;
        padding: 28px 20px;
    }

    .menu-modal-title {
        font-size: 20px;
    }

    .menu-item-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .menu-item-btn i {
        font-size: 16px;
    }

    .menu-content {
        max-height: 300px;
        font-size: 14px;
    }
}
