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

:root {
    --primary: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary: #FF9800;
    --accent: #FFEB3B;
    --background: #F1F8E9;
    --card-bg: #FFFFFF;
    --text-dark: #2E3A23;
    --text-light: #6B7B5C;
    --success: #8BC34A;
    --shadow: rgba(76, 175, 80, 0.2);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--background);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(76, 175, 80, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255, 152, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 235, 59, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.background-pattern::before {
    content: '🌿';
    position: absolute;
    font-size: 3rem;
    top: 10%;
    left: 5%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.background-pattern::after {
    content: '🍃';
    position: absolute;
    font-size: 2.5rem;
    bottom: 15%;
    right: 8%;
    opacity: 0.15;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.container {
    max-width: 420px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

header h1 {
    font-family: 'Gaegu', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(76, 175, 80, 0.1);
}

.school-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary), #FFB74D);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

.school-icon {
    font-size: 1.3rem;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
}

.meal-container {
    animation: slideUp 0.6s ease-out 0.4s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.meal-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.meal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.meal-type {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px dashed #E8F5E9;
}

.meal-icon {
    font-size: 2.2rem;
}

.meal-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.meal-content {
    min-height: 220px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    color: var(--text-light);
}

.rice-bowl {
    position: relative;
    width: 90px;
    height: 70px;
    margin-bottom: 25px;
}

.bowl {
    position: absolute;
    bottom: 0;
    width: 90px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 0 0 45px 45px;
}

.bowl::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -6px;
    right: -6px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 5px 12px rgba(0, 0, 0, 0.1);
}

.steam {
    position: absolute;
    width: 10px;
    height: 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    animation: steam 1.5s ease-in-out infinite;
}

.steam1 {
    left: 22px;
    top: -18px;
    animation-delay: 0s;
}

.steam2 {
    left: 40px;
    top: -24px;
    animation-delay: 0.3s;
}

.steam3 {
    left: 58px;
    top: -18px;
    animation-delay: 0.6s;
}

@keyframes steam {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-18px) scaleX(1.3);
    }
}

.loading p {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.menu-list {
    list-style: none;
}

.menu-list li {
    padding: 14px 0;
    border-bottom: 1px solid #F1F8E9;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    color: var(--text-dark);
    animation: menuSlide 0.4s ease-out both;
}

.menu-list li:last-child {
    border-bottom: none;
}

@keyframes menuSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-list li::before {
    content: '🥢';
    font-size: 1.3rem;
}

.menu-list li:nth-child(6n+1)::before { content: '🍚'; }
.menu-list li:nth-child(6n+2)::before { content: '🥘'; }
.menu-list li:nth-child(6n+3)::before { content: '🥗'; }
.menu-list li:nth-child(6n+4)::before { content: '🍲'; }
.menu-list li:nth-child(6n+5)::before { content: '🥬'; }
.menu-list li:nth-child(6n)::before { content: '🍜'; }

.calorie-info {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px dashed #E8F5E9;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    display: none;
}

.calorie-info.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.calorie-info span {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.15rem;
}

.no-meal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    color: var(--text-light);
    text-align: center;
}

.no-meal .emoji {
    font-size: 4.5rem;
    margin-bottom: 18px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.no-meal p {
    font-size: 1.15rem;
    line-height: 1.7;
}

footer {
    text-align: center;
    margin-top: 35px;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    animation: slideUp 0.6s ease-out 0.6s both;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 2.4rem;
    }
    
    .meal-card {
        padding: 22px;
        border-radius: 22px;
    }
    
    .school-name-badge {
        font-size: 1rem;
        padding: 8px 16px;
    }
}
