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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

main {
    display: grid;
    gap: 30px;
}

.recommend-section,
.filter-section,
.history-section,
.location-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.recommend-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(238, 90, 36, 0.3);
}

.recommend-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
}

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

.menu-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.3);
}

.menu-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.menu-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.menu-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
}

.location-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#locationInput {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#locationInput:focus {
    outline: none;
    border-color: #667eea;
}

.location-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.recommendation-mode {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.radio-group:hover {
    background: #e9ecef;
}

.radio-group input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: bold;
}

.restaurant-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.restaurant-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.restaurant-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.restaurant-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.rating {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.distance {
    font-size: 0.9rem;
    opacity: 0.8;
}

.status {
    font-size: 0.9rem;
    font-weight: bold;
}

.restaurant-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.api-setup-notice {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

.api-setup-notice p {
    margin-bottom: 10px;
    color: #2d3436;
}

.api-setup-notice a {
    color: #0984e3;
    text-decoration: underline;
    font-weight: bold;
}

.api-setup-notice a:hover {
    color: #74b9ff;
}

.api-info {
    background: linear-gradient(135deg, #dcedc8, #a5d6a7);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

.api-info p {
    margin-bottom: 8px;
    color: #2e7d32;
    font-size: 0.9rem;
}

.api-info a {
    color: #1565c0;
    text-decoration: underline;
    font-weight: bold;
}

.api-info a:hover {
    color: #42a5f5;
}

.filter-section h3,
.history-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: bold;
    color: #555;
}

.filter-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    margin-bottom: 0;
}

.no-history {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .recommend-btn {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
    
    .menu-info,
    .restaurant-info {
        justify-content: center;
        text-align: center;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .location-input-group {
        flex-direction: column;
    }
    
    #locationInput {
        min-width: unset;
    }
    
    .recommendation-mode {
        flex-direction: column;
        align-items: center;
    }
    
    .restaurant-actions {
        flex-direction: column;
    }
}