/**
 * Use Cases Mobile Menu Fix
 * This CSS ensures the mobile menu works correctly on the use-cases page
 */

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

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

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

/* Ensure the mobile menu is visible when open */
.mobile-menu[style*="display: block"] .mobile-menu-content.translate-x-0 {
    transform: translateX(0) !important;
}

/* Close button styles */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}

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

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