/* 현대적인 레스토랑 추천 페이지 스타일 */
:root {
    --primary-color: #ff4757;
    --secondary-color: #2f3542;
    --bg-color: #f1f2f6;
    --card-bg: #ffffff;
}

body {
    background-color: var(--bg-color);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #edeff2;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.1);
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #ff6b81;
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

#recommendations {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.restaurant-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.comment-section {
    padding: 20px;
    background: #fcfcfc;
    border-top: 1px dashed #eee;
    display: none; /* 기본적으로는 숨김 */
}

.btn-comment {
    background: #f1f2f6;
    color: #57606f;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-comment:hover {
    background: #dfe4ea;
}

.btn-comment.active {
    background: #ff4757;
    color: white;
}

.restaurant-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f1f2f6;
}

.restaurant-info {
    padding: 20px;
    flex-grow: 1;
}

.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    color: #f1c40f;
    font-size: 0.9rem;
}

.rating-count {
    color: #747d8c;
    font-size: 0.8rem;
    margin-left: 5px;
}

.restaurant-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.restaurant-meta {
    font-size: 0.85rem;
    color: #747d8c;
    margin-bottom: 15px;
}

.btn-detail {
    display: inline-block;
    padding: 8px 15px;
    background: #f1f2f6;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-detail:hover {
    background: #dfe4ea;
}

.loading-spinner {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
