/* Dynamic Menu Page Styles */
:root {
    --primary-green: #4CAF50;
    --primary-orange: #ff9800;
    --dark-green: #2E7D32;
    --light-orange: #fff3e0;
    --gray-bg: #f8f9fa;
    --gray-text: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--gray-bg) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.menu-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.menu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.menu-hero-content {
    position: relative;
    z-index: 1;
}

.menu-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.menu-hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.menu-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--primary-orange);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Menu Sections */
.menu-sections {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
    max-width: 1400px;
    width: 100%;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(76,175,80,0.1);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.category-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
}

.category-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.category-content {
    padding: 30px;
}

/* Food Items */
.food-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    width: 100%;
}

.food-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 18px 12px 28px 12px;
    background: var(--gray-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 260px;
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

.food-item:hover {
    background: white;
    border-color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(76,175,80,0.1);
    transform: translateY(-4px) scale(1.03);
}

.food-image {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    flex-shrink: 0;
    margin-top: 0;
    background: #fff;
}

.food-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.food-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 6px;
    line-height: 1.3;
}

.food-description {
    font-size: 0.98rem;
    color: var(--gray-text);
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 95%;
}

.food-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
}

.food-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-orange);
    white-space: nowrap;
}

.food-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-featured {
    background: var(--primary-orange);
    color: white;
}

.badge-vegetarian {
    background: var(--primary-green);
    color: white;
}

@media (max-width: 1200px) {
    .food-items {
        grid-template-columns: repeat(3, 1fr);
    }
    .food-image {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 900px) {
    .food-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .food-image {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 600px) {
    .category-content {
        padding: 12px;
    }
    .food-items {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .food-image {
        width: 90px;
        height: 90px;
    }
    .food-details {
        margin-top: 6px;
    }
}

@media (max-width: 768px) {
    .menu-hero h1 {
        font-size: 2.5rem;
    }
    .menu-hero p {
        font-size: 1.1rem;
    }
    .menu-hero .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .category-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .food-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        min-height: auto;
        padding: 25px 20px;
    }
    .food-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    .food-details {
        height: auto;
        width: 100%;
    }
    .food-meta {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .menu-hero {
        padding: 60px 0 40px 0;
    }
    .menu-hero h1 {
        font-size: 2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .food-item {
        padding: 20px 15px;
    }
    .food-name {
        font-size: 1.1rem;
    }
    .food-description {
        font-size: 0.9rem;
    }
    .featured-content {
        padding: 20px;
    }
    .featured-title {
        font-size: 1.2rem;
    }
}

/* Food Image Popup Modal */
.food-image-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.food-image-popup-overlay.active {
    display: flex;
}
.food-image-popup {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    padding: 24px 24px 16px 24px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.food-image-popup img {
    max-width: 70vw;
    max-height: 70vh;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    background: #fff;
}
.food-image-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 2rem;
    color: #ff4d4f;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.food-image-popup .close-popup:hover {
    color: #d32f2f;
}
@media (max-width: 600px) {
    .food-image-popup img {
        max-width: 95vw;
        max-height: 60vh;
    }
    .food-image-popup {
        padding: 10px 4px 8px 4px;
    }
} 