/* Wok Central - Modern Chinese Theme */
:root {
    --primary-color: #dc2626; /* Chinese red */
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --accent-gold: #eab308; /* Gold accent */
    --bg-color: #ffffff;
    --bg-secondary: #fef3c7;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-bottom: 3px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 0.875rem;
    color: var(--accent-gold);
    margin-top: -0.25rem;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 0.25rem;
}

.main-nav a:hover {
    color: var(--accent-gold);
}

.main-nav a.active {
    color: var(--accent-gold);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-gold);
}

.header-info {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: #ffffff;
}

.header-info .icon {
    margin-right: 0.5rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 100px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
    border: 2px solid var(--accent-gold);
}

.sidebar h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.category-link:hover {
    background-color: #fef3c7;
    color: var(--primary-color);
    transform: translateX(4px);
}

.category-link.active {
    background-color: #dc2626;
    color: #ffffff;
    font-weight: 600;
}

/* Allergen Legend */
.allergen-legend {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.allergen-legend h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    flex: 1;
}

.menu-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
}

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

.menu-item {
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-content {
    padding: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.item-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    flex: 1;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sku {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.allergens {
    display: flex;
    gap: 0.5rem;
}

/* Allergen Badges */
.allergen-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.allergen-badge.gluten {
    background-color: #f59e0b;
}

.allergen-badge.nuts {
    background-color: #8b5cf6;
}

.allergen-badge.nuts.possible {
    background-color: #c4b5fd;
}

.allergen-badge.soya {
    background-color: #10b981;
}

.allergen-badge.dairy {
    background-color: #3b82f6;
}

.allergen-badge.eggs {
    background-color: #eab308;
}

.allergen-badge.shellfish {
    background-color: #dc2626;
}

/* Dietary Labels */
.dietary-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.dietary-label {
    font-size: 0.6rem;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.dietary-label.vegetarian {
    background-color: #dcfce7;
    color: #15803d;
}

.dietary-label.vegan {
    background-color: #ecfdf5;
    color: #047857;
}

.dietary-label.gluten-free {
    background-color: #fef3c7;
    color: #92400e;
}

.dietary-label.dairy-free {
    background-color: #e0f2fe;
    color: #0277bd;
}

.dietary-label.contains-gluten {
    background-color: #fef2f2;
    color: #dc2626;
}

.dietary-label.contains-nuts {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.dietary-label.contains-dairy {
    background-color: #eff6ff;
    color: #2563eb;
}

.dietary-label.may-contain-nuts {
    background-color: #faf5ff;
    color: #8b5cf6;
}

.dietary-label.spicy {
    background-color: #fef2f2;
    color: #dc2626;
}

.dietary-label.contains-shellfish {
    background-color: #fef2f2;
    color: #dc2626;
}

.dietary-label.contains-eggs {
    background-color: #fef3c7;
    color: #92400e;
}

.dietary-label.contains-soya {
    background-color: #d1fae5;
    color: #047857;
}

/* Spice Level Indicator */
.spice-level {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.spice-level-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.spice-indicator {
    font-size: 1rem;
    line-height: 1;
}

.spice-indicator.inactive {
    opacity: 0.3;
    filter: grayscale(100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .category-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-link {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .header-info {
        display: none;
    }

    .container {
        padding: 1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Talk2Order Widget Override */
#talk2order-widget {
    z-index: 1000;
}
