:root {
    --primary-color: #ff6b6b;
    --primary-hover: #fa5252;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #343a40;
    --text-muted: #868e96;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    text-align: center;
}

header {
    margin-bottom: 2.5rem;
    position: relative;
}

.lang-switcher {
    position: absolute;
    top: -1rem;
    right: 0;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

header p {
    color: var(--text-muted);
    font-weight: 300;
}

.category-section {
    margin-bottom: 2rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: #e9ecef;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.display-section {
    margin-bottom: 2.5rem;
    perspective: 1000px;
}

.result-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.result-card.animate {
    animation: flipIn 0.6s ease-out;
}

@keyframes flipIn {
    0% { transform: rotateX(-30deg) scale(0.9); opacity: 0; }
    100% { transform: rotateX(0) scale(1); opacity: 1; }
}

.placeholder-content .icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.menu-result h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.menu-image-container {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.result-card:hover .menu-image {
    transform: scale(1.05);
}

.menu-result .category-tag {
    display: inline-block;
    font-size: 0.8rem;
    background: #fff0f0;
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.menu-result .description {
    color: var(--text-muted);
    font-size: 1rem;
}

.recommend-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: var(--transition);
}

.recommend-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.recommend-btn:active {
    transform: translateY(0);
}

footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
}
