/* ===============================================
   낭만드라이브 - 연수후기 페이지 스타일 (style-review.css)
   =============================================== */

/* 게시판 헤더 */
.board-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--pink-light);
    border-radius: 25px;
    margin-bottom: 30px;
}
.board-header h1 {
    color: var(--accent-color);
    margin-bottom: 10px;
}
.board-header p {
    color: #666;
}

/* 후기 통계 */
.review-stats-inline {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    font-size: 1em;
    color: #666;
}
.review-stats-inline span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 글쓰기 버튼 영역 */
.write-btn-area {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.btn-write-review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-color, #fc74a6);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(252, 116, 166, 0.3);
}
.btn-write-review:hover {
    background: var(--accent-color, #e91e8c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 116, 166, 0.4);
}

/* 후기 그리드 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 후기 카드 */
.review-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(252, 116, 166, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(252, 116, 166, 0.2);
    border-color: var(--primary-color);
}
.review-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 12px;
    flex-shrink: 0;
}
.reviewer-info {
    flex: 1;
}
.reviewer-name {
    font-weight: bold;
    color: var(--text-dark);
}
.review-date {
    color: #999;
    font-size: 0.85em;
}
.review-rating {
    color: #ffc107;
}
.review-card-title {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.1em;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-card-content {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--pink-light);
    color: #999;
    font-size: 0.85em;
}

/* 후기 상세 */
.board-view {
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(252, 116, 166, 0.1);
    overflow: hidden;
    border: 2px solid var(--pink-light);
}
.view-header {
    background: var(--pink-light);
    padding: 40px;
    border-bottom: 1px solid var(--pink-light);
}
.view-title {
    font-size: 1.8em;
    margin: 0 0 15px 0;
    color: var(--accent-color);
}
.view-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
}
.view-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.view-meta i {
    color: var(--primary-color);
}
.view-meta .rating {
    color: #ffc107;
}
.view-content {
    padding: 40px;
    line-height: 1.8;
    color: var(--text-dark);
    min-height: 200px;
}
.view-footer {
    padding: 20px 40px 40px;
    text-align: center;
}
.btn-list {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 116, 166, 0.3);
    color: white;
}

/* 빈 메시지 */
.empty-message {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 25px;
    color: #666;
    border: 2px solid var(--pink-light);
}
.empty-message i {
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

/* 페이지네이션 */
.pg_wrap {
    display: flex;
    justify-content: center;
}
.pg {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}
.pg_page, .pg_current {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
}
.pg_page {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--pink-light);
}
.pg_page:hover {
    background: var(--pink-light);
    color: var(--primary-color);
}
.pg_current {
    background: var(--primary-color);
    color: white;
}

/* ===============================================
   글쓰기 모달 스타일
   =============================================== */

.review-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}
.review-modal-header {
    background: var(--pink-light, #fff0f5);
    border-bottom: 1px solid #f0e0e8;
    padding: 20px 24px;
}
.review-modal-header .modal-title {
    color: var(--accent-color, #e91e8c);
    font-weight: 700;
    font-size: 1.2em;
}
.review-modal-header .btn-close {
    opacity: 0.6;
}
.review-modal-footer {
    border-top: 1px solid #f0e0e8;
    padding: 16px 24px;
}
.review-modal-footer .btn-secondary {
    border-radius: 20px;
    padding: 10px 24px;
}
.btn-submit-review {
    background: var(--primary-color, #fc74a6);
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-weight: 600;
}
.btn-submit-review:hover {
    background: var(--accent-color, #e91e8c);
}

/* 폼 스타일 */
#reviewWriteForm .form-label {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 6px;
}
#reviewWriteForm .form-label i {
    color: var(--primary-color, #fc74a6);
    margin-right: 4px;
}
#reviewWriteForm .form-control {
    border-radius: 12px;
    border: 2px solid #f0e0e8;
    padding: 10px 16px;
    transition: border-color 0.3s;
}
#reviewWriteForm .form-control:focus {
    border-color: var(--primary-color, #fc74a6);
    box-shadow: 0 0 0 3px rgba(252, 116, 166, 0.15);
}
#reviewWriteForm textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* 별점 입력 */
.star-rating-input {
    display: inline-flex;
    gap: 6px;
    font-size: 1.6em;
    cursor: pointer;
}
.star-rating-input i {
    color: #ffc107;
    transition: transform 0.2s, color 0.2s;
}
.star-rating-input i.inactive {
    color: #e0e0e0;
}
.star-rating-input i.hover {
    transform: scale(1.2);
}
.star-rating-input i:hover {
    transform: scale(1.2);
}

/* reCAPTCHA 안내 문구 */
.recaptcha-notice {
    font-size: 0.8em;
    color: #999;
    margin-top: 12px;
    padding: 10px 14px;
    background: #f9f9f9;
    border-radius: 8px;
}
.recaptcha-notice i {
    color: #4CAF50;
    margin-right: 4px;
}
.recaptcha-notice a {
    color: var(--primary-color, #fc74a6);
    text-decoration: underline;
}

/* reCAPTCHA 뱃지 숨기기 (하단 안내 문구로 대체) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* 반응형 */
@media (max-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
    .write-btn-area {
        justify-content: center;
    }
    .btn-write-review {
        width: 100%;
        justify-content: center;
    }
    .review-modal-content {
        border-radius: 15px;
    }
    .star-rating-input {
        font-size: 1.4em;
    }
}
