/* Today's Cafeteria Menu Styles */
@import url('https://fonts.googleapis.com/css2?family=Fugaz+One&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Jockey+One&display=swap');

:root {
    --primary: #3A3A3A;
    --primary-dark: #2a2a2a;
    --secondary: #828282;
    --accent: #D18200;
    --success: #D18200;
    --danger: #ef4444;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #3A3A3A;
    --text-secondary: #828282;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white !important;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.cafeteria-today-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Header */
.cafeteria-today-header {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: none;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    max-width: 250px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.header-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    position: relative;
    padding-left: 0;
    width: 100%;
}

.header-content h1 {
    font-family: 'Fugaz One', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.btn-view-week {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-view-week i {
    font-size: 1rem;
}

.date-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.day-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.date {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Menu Content */
.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--border);
}

.section-header i {
    font-size: 2rem;
    color: var(--primary);
}

.section-header h2 {
    font-family: 'Jockey One', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

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

/* Main dishes specific grid layouts */
.main-dishes-section .dishes-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.main-dishes-section .dishes-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.dish-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.dish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    z-index: 2;
}



.dish-card.featured .dish-content {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Dish Image */
.dish-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-main);
    flex-shrink: 0;
}

.dish-image-container.placeholder {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.dish-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border: 8px solid white;
    box-sizing: border-box;
}

.dish-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    box-shadow: var(--shadow);
}

.dish-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dish-titles {
    flex: 1;
    margin-bottom: 1rem;
}

.dish-separator {
    width: 100px;
    border: none;
    border-top: 4px solid var(--secondary);
    margin: 0.75rem 0;
}

.dish-name {
    font-family: 'Jockey One', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.dish-name-alt {
    font-family: 'Jockey One', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 1rem;
}

.dish-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dish-kcal {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.dish-allergens-icons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.allergen-icon {
    width: 1.75rem;
    height: 1.75rem;
    -o-object-fit: contain;
       object-fit: contain;
}

.dish-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Empty State */
.empty-state {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.empty-state i {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-view-week {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-view-week:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Footer */
.cafeteria-footer {
    margin-top: 2rem;
    text-align: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.footer-link i {
    font-size: 1.25rem;
}

/* Allergen Footer */
.cafeteria-allergen-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid var(--border);
}

.cafeteria-allergen-footer .footer-content {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cafeteria-allergen-footer .allergen-info-section {
    flex: 3;
}

.cafeteria-allergen-footer .business-hours-section {
    flex: 1;
    border-left: 2px solid var(--border);
    padding-left: 2rem;
}

.cafeteria-allergen-footer h3 {
    font-family: 'Fugaz One', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.business-hours-section h3 {
    text-align: left;
}

.hours-content {
    font-family: 'Jockey One', sans-serif;
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hours-content p {
    margin-bottom: 1rem;
}

.hours-content strong {
    color: var(--primary);
}

.allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.allergen-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.allergen-item img {
    width: 3rem;
    height: 3rem;
    -o-object-fit: contain;
       object-fit: contain;
}

.allergen-item span {
    font-family: 'Jockey One', sans-serif;
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Combined items grid for soups and desserts */
.dishes-grid.combined-items {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive Design */

@media (max-width: 768px) {
    .cafeteria-today-container {
        padding: 1rem 0.75rem;
    }
    
    .cafeteria-allergen-footer .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cafeteria-allergen-footer .business-hours-section {
        border-left: none;
        border-top: 2px solid var(--border);
        padding-left: 0;
        padding-top: 2rem;
    }
    
    .business-hours-section h3 {
        text-align: center;
    }
    
    .dishes-grid.combined-items {
        grid-template-columns: 1fr;
    }

    .cafeteria-today-header {
        padding: 0;
        margin-bottom: 1.5rem;
        border-radius: 0;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-logo {
        max-width: 150px;
        margin-bottom: 0;
    }

    .header-main {
        width: 100%;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: static;
        padding-left: 0;
    }

    .btn-view-week {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        position: static;
    }

    .day-name {
        font-size: 1.25rem;
    }

    .date {
        font-size: 1rem;
    }

    .menu-section {
        padding: 0;
        border-radius: 0;
    }

    .section-header {
        margin-bottom: 1.25rem;
    }

    .section-header i {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .dishes-grid,
    .main-dishes-section .dishes-grid-3,
    .main-dishes-section .dishes-grid-4 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .dish-card {
        max-width: 100%;
    }

    .dish-content {
        padding: 1.25rem;
    }

    .dish-name,
    .dish-name-alt {
        font-size: 1.1rem;
    }

    .dish-separator {
        width: 80px;
        border-top: 3px solid var(--secondary);
        margin: 0.5rem 0;
    }

    .dish-kcal {
        font-size: 0.9rem;
    }

    .allergen-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .dish-price {
        font-size: 1.3rem;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state i {
        font-size: 3.5rem;
    }

    .empty-state h2 {
        font-size: 1.5rem;
    }

    .cafeteria-allergen-footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .cafeteria-allergen-footer h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .allergen-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .allergen-item img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .allergen-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cafeteria-today-header {
        padding: 0;
    }

    .header-logo {
        max-width: 120px;
        margin-bottom: 0;
    }

    .header-content h1 {
        font-size: 1.75rem;
    }

    .btn-view-week {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-view-week i {
        font-size: 0.875rem;
    }

    .btn-view-week {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-view-week i {
        font-size: 0.875rem;
    }

    .day-name {
        font-size: 1.1rem;
    }

    .date {
        font-size: 0.9rem;
    }

    .date-info {
        flex-direction: column;
        gap: 0.25rem;
    }

    .menu-section {
        padding: 0;
    }

    .dish-content {
        padding: 1rem;
    }

    .dish-name,
    .dish-name-alt {
        font-size: 1rem;
    }

    .dish-image {
        border: 6px solid white;
    }

    .cafeteria-allergen-footer h3 {
        font-size: 1.25rem;
    }

    .allergen-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .allergen-item img {
        width: 2rem;
        height: 2rem;
    }

    .allergen-item span {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-dishes-section .dishes-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-dishes-section .dishes-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .cafeteria-today-container {
        padding: 0;
    }

    .dish-card {
        -moz-column-break-inside: avoid;
             break-inside: avoid;
        box-shadow: none;
    }

    .cafeteria-footer {
        display: none;
    }
}
