@import url('https://fonts.googleapis.com/css2?family=Teko:wght@600;700&display=swap');

/* 
   Boss Croker's Snappy Digital Menu
   Aesthetic: 1990s vintage sports bar, high-contrast, bold collegiate typography.
*/

:root {
    --menu-bg: #090e0a;
    --menu-surface: #121a13;
    --menu-accent: #ffcc00; /* Antique Gold */
    --menu-accent-red: #ff3344;
    --menu-accent-green: #00ff66;
    --menu-text-bright: #ffffff;
    --menu-text-muted: #a0b0a3;
    --menu-border: #1d2b1f;
}

/* Digital Menu Wrapper */
.digital-menu-wrapper {
    position: relative;
    width: 100%;
    margin-top: 2rem;
}

/* Refined Centered Filter Tabs */
.menu-tabs-nav {
    position: sticky;
    top: var(--header-height, 80px);
    z-index: 90;
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.menu-tabs-container {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 22, 16, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 40px;
    padding: 4px 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.menu-tabs-container::-webkit-scrollbar {
    display: none;
}

/* Tab Button Styling */
.menu-tab-btn {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    background: transparent;
    color: var(--menu-text-muted, #a0b0a3);
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    min-height: 38px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.menu-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.25);
}

.menu-tab-btn.active {
    background: var(--menu-accent, #ffcc00);
    color: #050a06;
    font-weight: 800;
    border-color: var(--menu-accent, #ffcc00);
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.3);
}

/* Menu Grid */
.digital-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .digital-menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Menu Item Card */
.menu-item-card {
    background: var(--menu-surface);
    border: 3px solid var(--menu-border);
    box-shadow: 6px 6px 0px #000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-radius: 4px;
    /* Entry and exit transitions */
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: 
        display 0.3s, 
        opacity 0.3s ease, 
        transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-behavior: allow-discrete;
}

/* Animation starting style for entries */
@starting-style {
    .menu-item-card {
        opacity: 0;
        transform: scale(0.97) translateY(12px);
    }
}

.menu-item-card.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.97) translateY(12px);
}

/* Item Header (Name + Price) */
.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.menu-item-name {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--menu-text-bright);
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Slanted Varsity Price Badge */
.menu-item-price {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--menu-accent);
    color: #000;
    padding: 0.1rem 0.8rem;
    transform: skewX(-10deg);
    box-shadow: 2px 2px 0px #000;
    display: inline-block;
    white-space: nowrap;
}

/* Description Text */
.menu-item-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--menu-text-muted);
    margin-bottom: 0.8rem;
}

/* Dietary & Feature Tags Container */
.menu-item-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Tag Pill */
.menu-tag {
    font-family: 'Teko', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border: 1px solid #000;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    box-shadow: 1.5px 1.5px 0px #000;
}

.menu-tag-spicy {
    background: var(--menu-accent-red);
    color: #fff;
}

.menu-tag-gf {
    background: var(--menu-accent-green);
    color: #000;
}

.menu-tag-v {
    background: #00e5ff;
    color: #000;
}

.menu-tag-new {
    background: #e200ff;
    color: #fff;
}

.menu-tag-classic {
    background: #fff;
    color: #000;
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
    .menu-tabs-nav {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .menu-tabs-container {
        width: 100%;
        justify-content: flex-start;
        padding: 3px 5px;
        border-radius: 15px;
    }

    .menu-tab-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
        min-height: 38px;
        flex-shrink: 0;
    }

    .menu-item-card {
        padding: 1.2rem;
        box-shadow: 4px 4px 0px #000;
    }

    .menu-item-name {
        font-size: 1.5rem;
    }

    .menu-item-price {
        font-size: 1.3rem;
        padding: 0.1rem 0.5rem;
    }
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .menu-item-card {
        transition-duration: 0.05s;
        transform: none !important;
    }
    @starting-style {
        .menu-item-card {
            transform: none;
        }
    }
}
