/* ITReviews Frontend Styles */

/* 기본 리뷰 컨테이너 스타일 */
.itreviews-wrapper {
    margin: 20px 0;
    font-family: inherit;
    line-height: 1.6;
}

/* 리뷰 폼 스타일 */
.itreviews-form-wrapper {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
}

.itreviews-form-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.itreviews-form-field {
    margin-bottom: 15px;
}

.itreviews-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.itreviews-form-field input,
.itreviews-form-field textarea,
.itreviews-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.itreviews-form-field input:focus,
.itreviews-form-field textarea:focus,
.itreviews-form-field select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* 별점 스타일 */
.itreviews-rating-stars {
    display: flex;
    gap: 2px;
    margin: 10px 0;
}

.itreviews-star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.itreviews-star:hover,
.itreviews-star.active {
    color: #ffc107;
}

.itreviews-star.filled {
    color: #ffc107;
}

/* 제출 버튼 스타일 */
.itreviews-submit-btn {
    background-color: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.itreviews-submit-btn:hover {
    background-color: #005a87;
}

.itreviews-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 메시지 스타일 */
.itreviews-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.itreviews-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.itreviews-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.itreviews-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 리뷰 목록 스타일 */
.itreviews-list-wrapper {
    margin: 30px 0;
}

.itreviews-list-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.itreviews-review-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.itreviews-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.itreviews-reviewer-name {
    font-weight: 600;
    color: #333;
}

.itreviews-review-date {
    color: #666;
    font-size: 0.9em;
}

.itreviews-review-rating {
    margin: 10px 0;
}

.itreviews-review-content {
    color: #444;
    line-height: 1.6;
    margin: 15px 0;
}

/* 요약 통계 스타일 */
.itreviews-summary-wrapper {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.itreviews-summary-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.itreviews-average-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.itreviews-rating-number {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.itreviews-total-reviews {
    color: #666;
    margin-left: 10px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .itreviews-form-wrapper {
        padding: 15px;
    }
    
    .itreviews-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .itreviews-rating-stars {
        justify-content: center;
    }
    
    .itreviews-star {
        font-size: 20px;
    }
}

/* 로딩 상태 */
.itreviews-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.itreviews-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: itreviews-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes itreviews-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 콤보 숏코드 스타일 */
.itreviews-combo-wrapper {
    margin: 30px 0;
}

.itreviews-combo-form {
    margin-bottom: 30px;
}

.itreviews-combo-stats {
    margin-bottom: 30px;
}

.itreviews-combo-list {
    margin-top: 20px;
}

/* 필터 및 정렬 */
.itreviews-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.itreviews-filter-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.itreviews-filter-group label {
    font-weight: 600;
    margin-right: 8px;
}

.itreviews-filter-group select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 페이지네이션 */
.itreviews-pagination {
    text-align: center;
    margin: 30px 0;
}

.itreviews-pagination a,
.itreviews-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #007cba;
}

.itreviews-pagination a:hover {
    background-color: #f5f5f5;
}

.itreviews-pagination .current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

/* 에러 상태 */
.itreviews-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 15px 0;
}

/* 빈 상태 */
.itreviews-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
} 