/**
 * Global Mobile Menu Fix
 * This CSS ensures consistent mobile menu styling across all pages
 */

/* Mobile menu styles */
.mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 50 !important;
    transition: opacity 0.3s ease-in-out !important;
}

.mobile-menu-content {
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 20rem !important;
    background-color: white !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
}

.mobile-menu-content.translate-x-0 {
    transform: translateX(0) !important;
}

/* Fix for Alpine.js x-show and transitions */
[x-cloak] {
    display: none !important;
}

/* Close button styles */
.mobile-menu-close {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 60 !important;
    display: none !important; /* Hide by default, JS will show when menu is open */
    align-items: center !important;
    justify-content: center !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    background-color: white !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease-in-out !important;
}

.mobile-menu-close:hover {
    background-color: #f3f4f6 !important;
    transform: scale(1.05) !important;
}

.mobile-menu-close:active {
    transform: scale(0.95) !important;
}

/* Hide on desktop */
@media (min-width: 1025px) {
    .mobile-menu-close {
        display: none !important;
    }
}
