* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.recommendation-section {
    margin-bottom: 40px;
}

.menu-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.menu-card.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border: 3px solid #667eea;
}

.menu-card.selected .menu-info h2 {
    color: white;
}

.menu-card.selected .menu-info p {
    color: rgba(255, 255, 255, 0.9);
}

.menu-card.selected .menu-price {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.menu-card.selected .menu-image {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.menu-card {
    cursor: pointer;
}

.menu-image {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.menu-image .emoji {
    font-size: 2.5rem;
}

.menu-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-info h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.menu-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.menu-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

.selected-menu-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    text-align: center;
}

.selected-menu-section h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.selected-menu-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.selected-menu-display .selected-menu-name {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.selected-menu-display .selected-menu-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.selected-menu-display .selected-menu-price {
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

.filter-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.filter-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.filter-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

.filter-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.recent-section {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.recent-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.recent-menus {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.recent-menu-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-weight: 500;
    color: #555;
    transition: transform 0.2s ease;
}

.recent-menu-item:hover {
    transform: translateY(-2px);
}

.no-recent {
    color: #999;
    font-style: italic;
    text-align: center;
    width: 100%;
}

footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-card {
    animation: fadeIn 0.5s ease;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .menu-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-card {
        min-height: 250px;
        padding: 20px;
    }
    
    .menu-image {
        width: 70px;
        height: 70px;
    }
    
    .menu-image .emoji {
        font-size: 2rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 15px;
    }
}
