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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.selection-section {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.weather-section,
.mood-section,
.meal-section {
    margin-bottom: 30px;
}

.weather-section h2,
.mood-section h2,
.meal-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #475569;
    font-size: 1.5rem;
}

.weather-buttons,
.mood-buttons,
.meal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.weather-btn,
.mood-btn,
.meal-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    min-width: 120px;
}

.weather-btn:hover,
.mood-btn:hover,
.meal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.weather-btn.selected,
.mood-btn.selected,
.meal-btn.selected {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-color: #4facfe;
    transform: scale(1.05);
}

.recommendation-section {
    text-align: center;
}

.recommend-btn {
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.recommend-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.recommend-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease-out;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

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

.result.hidden {
    display: none;
}

.result-header {
    margin-bottom: 30px;
}

.result-header h2 {
    color: #475569;
    margin-bottom: 15px;
    font-size: 2rem;
}

.selected-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.selected-info span {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.food-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.4);
}

.food-image {
    margin-right: 30px;
}

.food-emoji {
    font-size: 5rem;
    display: block;
}

.food-info {
    flex: 1;
    text-align: left;
}

.food-info h3 {
    font-size: 2rem;
    color: #334155;
    margin-bottom: 15px;
}

.food-info p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
}

.food-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.food-tags span {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.another-btn,
.reset-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.another-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.reset-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.another-btn:hover,
.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .selection-section {
        padding: 20px;
    }
    
    .weather-buttons,
    .mood-buttons,
    .meal-buttons {
        gap: 10px;
    }
    
    .weather-btn,
    .mood-btn,
    .meal-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .food-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .food-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .food-info {
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
}
