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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #667eea;
}

.main {
    padding: 4rem 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    font-weight: 800;
    animation: fadeInDown 0.8s ease;
}

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

.subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.recommender-container {
    background: white;
    border-radius: 30px;
    padding: 3.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-section {
    margin-bottom: 3rem;
}

.filter-group {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e8eaf6 0%, #d1c4e9 100%);
    border: 3px dashed #7e57c2;
    border-radius: 20px;
    transition: all 0.3s;
}

.filter-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(126, 87, 194, 0.3);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #4527a0;
    display: block;
    font-weight: 700;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid rgba(255,255,255,0.8);
    background: white;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #4527a0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.result-section {
    text-align: center;
    margin-top: 2rem;
}

.result-card {
    background: linear-gradient(135deg, #e8eaf6 0%, #d1c4e9 100%);
    border-radius: 25px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    transition: all 0.5s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.result-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.8s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@keyframes bounceIn {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    50% { 
        transform: scale(1.2);
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.result-menu { font-size: 10rem;
    color: #4527a0;
    margin-bottom: 0.7rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.result-desc { font-size: 3rem;
    color: #7e57c2;
    font-weight: 600;
}

.recommend-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.4rem 3.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.recommend-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.recommend-btn:hover::before {
    left: 100%;
}

.recommend-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.recommend-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #666;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .recommender-container {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .filter-group {
        padding: 1.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .result-icon {
        font-size: 3.5rem;
    }
    
    .result-menu { font-size: 10rem;
    }
    
    .result-desc { font-size: 3rem;
    }
    
    .recommend-btn {
        padding: 1.1rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}

.menu-name {
    font-size: 10rem;
    color: #4527a0;
    margin-bottom: 0.7rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.menu-description {
    font-size: 3rem;
    color: #7e57c2;
    font-weight: 600;
}