:root {
    --bg-color: #0f1115;
    --card-bg: rgba(25, 28, 36, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-light: #f59e0b; /* Amber */
    --accent-dark: #b45309;
    --font-main: 'Outfit', sans-serif;
    --header-height: 180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Glassmorphism */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--header-height);
}

/* App Header */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    height: var(--header-height);
    display: flex;
    flex-direction: column;
}

.brand-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.brand-accent {
    background: linear-gradient(135deg, var(--accent-light), #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Menus & Groups Navigation */
.scrollable-x {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    gap: 1rem;
    scroll-behavior: smooth;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.menu-tabs-container {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tab-btn, .chip-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-light);
    background: rgba(245, 158, 11, 0.1);
}

.chip-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
}

.chip-btn.active {
    background: var(--accent-light);
    color: #fff;
    border-color: var(--accent-light);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Item Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}

/* Menu Card */
.menu-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
}

.card-img {
    width: 100%;
    height: 180px;
    background-color: rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Allergen Badges */
.allergen-container {
    margin-bottom: 0.75rem;
}

.allergen-header {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 0.35rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.allergen-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.allergen-badge:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(248, 113, 113, 0.5);
    transform: scale(1.05);
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-light);
}

.card-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.menu-card:hover .card-action {
    background: var(--accent-light);
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Modifiers Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #15181e; /* Solid background for modal to overlap */
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(30px);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.mod-group {
    margin-bottom: 1.5rem;
}

.mod-group h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.mod-required {
    font-size: 0.8rem;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.mod-option {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.mod-option:hover {
    border-color: rgba(255,255,255,0.1);
}

/* Spinner & Scroll trigger */
.scroll-trigger {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 2rem;
}
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Consumer Advisory */
.consumer-advisory {
    padding: 1rem 1rem 3rem;
}

.advisory-card {
    background: #f5f5f0;
    border: 2px dashed #8a9a8a;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.advisory-title {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 800;
    color: #1a2e1a;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.advisory-body {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.advisory-logo {
    flex-shrink: 0;
    width: 110px;
}

.advisory-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
}

.advisory-text {
    flex: 1;
}

.advisory-warning {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #2d2d2d;
    margin-bottom: 0.75rem;
}

.advisory-reference {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    color: #2d2d2d;
    text-align: right;
    font-style: italic;
}

.advisory-footer {
    border-top: 1px solid #c5cec5;
    padding-top: 1.25rem;
}

.advisory-footer p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.92rem;
    color: #3d3d3d;
    line-height: 1.55;
    margin-bottom: 0.35rem;
}

.advisory-footer a {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.92rem;
    color: #3d3d3d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.advisory-footer a:hover {
    color: #1a2e1a;
    text-decoration: underline;
}

@media (max-width: 768px) {
    :root { --header-height: 160px; }
    .brand-title { font-size: 1.5rem; }

    .advisory-card {
        padding: 1.5rem 1.25rem;
    }
    .advisory-title {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }
    .advisory-body {
        flex-direction: column;
        align-items: center;
    }
    .advisory-logo {
        width: 80px;
    }
    .advisory-warning {
        font-size: 0.92rem;
    }
    .advisory-reference {
        text-align: center;
        font-size: 0.85rem;
    }
    .advisory-footer p,
    .advisory-footer a {
        font-size: 0.82rem;
    }
}
