/* 기본 스타일 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

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

/* 헤더 스타일 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    text-align: center;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav {
    margin-top: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    display: inline-block;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 폼 스타일 */
.search-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

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

.btn:disabled, .recommend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 로딩 스타일 */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading.show {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 메뉴 목록 스타일 */
.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.menu-info {
    padding: 20px;
}

.menu-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
}

.menu-info p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.menu-info strong {
    color: #333;
}

/* 에러 메시지 */
.error, .error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}

.no-results {
    text-align: center;
    color: #666;
    font-size: 18px;
    padding: 40px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .menu-list {
        grid-template-columns: 1fr;
    }
    
    .nav-link {
        display: block;
        margin: 10px 0;
    }
}

/* 메뉴 추천 페이지 전용 스타일 */
.recommendation-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.recommend-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

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

.menu-card {
    display: none;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.menu-card.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.menu-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.menu-name {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.menu-details {
    color: #666;
    margin-bottom: 15px;
}

.menu-rating {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1em;
}

.place-info {
    background: #e9ecef;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.location-info {
    background: rgba(255,255,255,0.1);
    color: black;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.location-selector {
    margin-bottom: 30px;
    text-align: center;
}

.location-selector h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.location-dropdown {
    margin-bottom: 15px;
}

.location-select {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

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

.selected-location {
    color: #666;
    font-size: 1.1em;
    margin-top: 10px;
}

.selected-location strong {
    color: #333;
}

.food-selector {
    margin-bottom: 20px;
    text-align: center;
}

.food-selector h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.food-dropdown {
    margin-bottom: 10px;
}

.food-select {
    width: 100%;
    max-width: 250px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

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

.selected-food {
    color: #666;
    font-size: 0.9em;
    margin-top: 8px;
}

.selected-food strong {
    color: #333;
} 