/**
 * Mobile Menu Toggle – Hamburger Button
 * Fixed circular button (mobile only) that triggers the existing
 * Storefront header slide-down via the js-openmenu / OpenMenu() helper.
 *
 * Uses <span> bars instead of SVG to avoid global button style overrides.
 *
 * @package TicketSystemTango
 */

/* ==========================================================================
   Hidden on desktop
   ========================================================================== */

.tev-mobile-menu-toggle {
    display: none !important;
}

/* ==========================================================================
   Mobile – Fixed hamburger button
   ========================================================================== */

@media (max-width: 768px) {
    .tev-mobile-menu-toggle {
        /* Override the global button styles completely */
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 3000;

        width: 48px;
        height: 48px;
        padding: 0 !important;
        margin: 0;

        /* Dark glassmorphism background — NOT gold */
        background: rgba(18, 18, 18, 0.8) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        border: 1px solid rgba(198, 166, 100, 0.4) !important;
        border-radius: 50% !important;

        cursor: pointer;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;

        /* Reset all other button styles */
        text-transform: none !important;
        letter-spacing: 0 !important;
        font-size: 0 !important;
        color: transparent !important;
        text-indent: -9999px;
        overflow: hidden;
    }

    /* Three horizontal bars (hamburger icon) */
    .tev-mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: var(--ts-gold, #c6a664);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
        pointer-events: none;
    }

    .tev-mobile-menu-toggle:hover,
    .tev-mobile-menu-toggle:focus-visible {
        background: rgba(198, 166, 100, 0.15) !important;
        border-color: var(--ts-gold, #c6a664) !important;
        transform: scale(1.08);
    }

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