/**
 * review.css
 * 이용후기 페이지 스타일
 * [디자인팀] 대표 양식 적용 - 2026-01-04
 */

/* 컨텐츠 영역만 스타일링 */

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.stats-bar {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-rating {
    text-align: center;
}

.stats-rating .big {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
}

.stats-rating .label {
    color: #666;
    font-size: 14px;
}

.stars {
    color: #fbbf24;
    font-size: 24px;
}

.stats-count {
    text-align: right;
}

.stats-count .big {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.stats-count .label {
    color: #666;
    font-size: 14px;
}

.write-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.write-btn:hover {
    background: #5568d3;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.review-item:hover {
    transform: translateY(-2px);
}

.review-item.best {
    border: 2px solid #667eea;
    position: relative;
}

.review-item.best::before {
    content: 'BEST';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #667eea;
    color: white;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-user {
    font-weight: bold;
    color: #333;
}

.review-stars {
    color: #fbbf24;
}

.review-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.review-content {
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-meta {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 15px;
}

.review-detail {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.detail-content {
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

.admin-reply {
    background: #e0f2fe;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0284c7;
    margin-top: 20px;
}

.admin-reply h4 {
    color: #0284c7;
    margin-bottom: 10px;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* 작성 폼 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.rating-select {
    display: flex;
    gap: 5px;
}

.rating-select label {
    cursor: pointer;
    font-size: 30px;
    color: #ddd;
    transition: color 0.2s;
}

.rating-select input {
    display: none;
}

.rating-select label:hover,
.rating-select label.active {
    color: #fbbf24;
}

.btn-primary {
    padding: 14px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 25px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
}

.pagination a:hover {
    background: #667eea;
    color: white;
}

.pagination .active {
    background: #667eea;
    color: white;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message.success {
    background: #d1fae5;
    color: #059669;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
}

.empty-message {
    text-align: center;
    padding: 50px;
    color: #999;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: white;
    font-size: 15px;
    color: #666;
}

.tab.active {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 반응형 */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
    }

    .stats-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stats-count {
        text-align: center;
    }

    .detail-meta {
        flex-wrap: wrap;
    }
}
