:root {
    /* Colors using OKLCH for vibrancy */
    --primary-color: oklch(70% 0.2 45); /* Orange-ish */
    --secondary-color: oklch(85% 0.15 85); /* Gold-ish */
    --bg-color: oklch(98% 0.01 45);
    --text-color: oklch(25% 0.02 45);
    --card-bg: oklch(100% 0 0);
    
    --shadow-deep: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lifted: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

main {
    flex: 1;
}

footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Menu Recommender Styling */
menu-recommender {
    display: block;
    width: 100%;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-deep);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lifted);
}

button.active {
    background-color: var(--primary-color);
    color: white;
}

button.recommend-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 100%;
    margin-top: 1rem;
}

button.recommend-btn:active {
    transform: scale(0.98);
}

/* Result Area */
.result-area {
    margin-top: 2rem;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Card Styling inside the result area */
.menu-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lifted);
    text-align: center;
    animation: cardAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.menu-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.menu-card .category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--bg-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Empty State */
.empty-state {
    text-align: center;
    opacity: 0.5;
    font-style: italic;
}

/* Container Queries for responsive adjustments */
@container (max-width: 500px) {
    header h1 {
        font-size: 2rem;
    }
    .controls {
        gap: 0.5rem;
    }
}
