/**
 * Mobile Navigation Menu Styles
 * Responsive hamburger menu that works across all pages
 */

/* Hamburger button - visible only on mobile */
.mobile-menu-button {
    display: block;
    background: transparent;
    border: none;
    color: #fbbf24;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.mobile-menu-button:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Mobile menu panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-left: 2px solid #374151;
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

/* Close button */
.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fbbf24;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    transform: rotate(90deg);
}

.mobile-menu-close:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Mobile menu content styling */
.mobile-menu-panel .flex.flex-col {
    margin-top: 60px;
}

.mobile-menu-panel a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 16px;
    border-bottom: 1px solid #374151;
}

.mobile-menu-panel a:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
    padding-left: 24px;
}

.mobile-menu-panel a.text-amber-400,
.mobile-menu-panel a.font-semibold {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #f59e0b;
}

.mobile-menu-panel a:last-child {
    border-bottom: none;
}

/* Smooth animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-panel,
    .mobile-menu-overlay,
    .mobile-menu-button,
    .mobile-menu-close {
        transition: none;
    }

    .mobile-menu-close:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-menu-panel {
        border-left: 3px solid #fbbf24;
    }

    .mobile-menu-button,
    .mobile-menu-close {
        border: 2px solid #fbbf24;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .mobile-menu-panel {
        width: 90%;
    }

    .mobile-menu-panel a {
        font-size: 16px;
        padding: 10px 12px;
    }
}
