/* 리뷰 시스템 스타일 */

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

.review-header {
    text-align: center;
    margin-bottom: 40px;
}

.review-header h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.review-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 서비스 정보 카드 */
.service-info-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.service-info-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* 리뷰 폼 */
.review-form {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-gray);
}

.form-section:last-of-type {
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.optional {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 별점 평가 */
.overall-rating {
    text-align: center;
}

.star-rating {
    display: inline-flex;
    gap: 5px;
    margin-bottom: 15px;
}

.star-rating.large .star {
    font-size: 3rem;
    cursor: pointer;
    filter: grayscale(1);
    transition: all 0.3s;
}

.star-rating.small .star {
    font-size: 1.5rem;
    cursor: pointer;
    filter: grayscale(1);
    transition: all 0.3s;
}

.star-rating .star:hover,
.star-rating .star.active {
    filter: grayscale(0);
    transform: scale(1.1);
}

.rating-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 세부 평가 */
.detail-ratings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.rating-label {
    font-weight: 500;
    color: var(--text-primary);
}

/* 텍스트 리뷰 */
.review-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.char-count {
    text-align: right;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 사진 업로드 */
.photo-upload-area {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.upload-box {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--border-gray);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
}

.upload-box:hover {
    border-color: var(--primary-blue);
    background: #EBF8FF;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.upload-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

.upload-hint {
    font-size: 0.75rem !important;
    margin-top: 5px !important;
}

.photo-preview {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 150px;
    height: 150px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.remove-photo:hover {
    background: #DC2626;
}

/* 라디오 & 체크박스 옵션 */
.recommend-options {
    display: grid;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.radio-option:hover {
    background: #EBF8FF;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s;
}

.radio-option input[type="radio"]:checked ~ .radio-box {
    border-color: var(--primary-blue);
}

.radio-option input[type="radio"]:checked ~ .radio-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
}

/* 개선사항 태그 */
.improvement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-option {
    position: relative;
}

.tag-option input[type="checkbox"] {
    display: none;
}

.tag-option span {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tag-option input[type="checkbox"]:checked ~ span {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* 작성자 정보 */
.author-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.author-name {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.author-name:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* 폼 액션 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.form-actions .btn {
    min-width: 150px;
}

/* 혜택 안내 */
.benefit-info {
    background: #FEF3C7;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

.benefit-info h4 {
    font-size: 1.25rem;
    color: #92400E;
    margin-bottom: 20px;
}

.benefit-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.benefit-info li {
    padding: 8px 0;
    color: #92400E;
}

.benefit-info strong {
    color: #DC2626;
    font-weight: 700;
}

.benefit-note {
    font-size: 0.85rem;
    color: #92400E;
    opacity: 0.8;
}

/* 리뷰 목록 페이지 스타일 */
.reviews-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 필터 */
.review-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* 리뷰 카드 */
.reviews-grid {
    display: grid;
    gap: 20px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
}

.review-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.reviewer-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.review-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-rating {
    display: flex;
    gap: 2px;
    font-size: 1.2rem;
}

.review-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-primary);
}

.review-photos {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.review-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.review-photo:hover img {
    transform: scale(1.1);
}

.review-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-tag.best {
    background: #FEF3C7;
    color: #92400E;
}

.admin-reply {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-blue);
}

.admin-reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* 반응형 */
@media (max-width: 768px) {
    .review-container {
        padding: 0 15px;
    }
    
    .review-form {
        padding: 25px 20px;
    }
    
    .star-rating.large .star {
        font-size: 2.5rem;
    }
    
    .detail-ratings {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .review-filters {
        justify-content: center;
    }
}