/* 리뷰 작성 페이지 전용 스타일 */
.review-write-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    margin: 0;
}

.review-write-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 히어로 영역 */
.review-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 24px 40px;
    text-align: center;
    position: relative;
}

.review-hero-content {
    position: relative;
    z-index: 2;
}

.review-icon {
    margin-bottom: 16px;
}

.review-icon img {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.review-hero-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.review-hero-subtitle {
    font-size: 16px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 500;
}

.review-hero-description {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* 전문가 정보 */
.review-expert-info {
    padding: 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.review-expert-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-expert-image-container {
    flex-shrink: 0;
}

.review-expert-profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-expert-details {
    flex: 1;
}

.review-expert-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.review-expert-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.review-service-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 리뷰 작성 폼 */
.review-write-form {
    padding: 24px;
}

.review-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

/* 별점 평가 */
.review-rating-section {
    margin-bottom: 32px;
}

.review-rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-direction: row-reverse;
}

.review-rating-stars input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star-label:hover,
.review-rating-stars input[type="radio"]:checked ~ .star-label {
    color: #ffd700;
    transform: scale(1.1);
}

.review-rating-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 리뷰 텍스트 */
.review-text-section {
    margin-bottom: 32px;
}

#reviewText {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

#reviewText:focus {
    border-color: #667eea;
    outline: none;
}

.review-text-counter {
    text-align: right;
    color: #666;
    font-size: 12px;
    margin-top: 8px;
}

/* 사진 업로드 */
.review-photo-section {
    margin-bottom: 32px;
}

.review-photo-upload {
    position: relative;
}

#reviewPhotos {
    display: none;
}

.review-photo-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-photo-upload-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
}

.review-photo-upload-btn img {
    width: 20px;
    height: 20px;
}

.review-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.review-photo-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.review-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

/* 제출 버튼 */
.review-submit-section {
    margin-bottom: 32px;
}

.review-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.review-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.review-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.review-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.review-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

/* 안내 카드 */
.review-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 24px;
    margin-top: 0;
}

.review-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.review-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.review-info-item img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 반응형 */
@media (max-width: 768px) {
    .review-write-container {
        max-width: 100%;
    }
    
    .review-hero {
        padding: 40px 20px 32px;
    }
    
    .review-hero-title {
        font-size: 24px;
    }
    
    .review-expert-info,
    .review-write-form {
        padding: 20px;
    }
    
    .review-info-card {
        margin: 20px;
        margin-top: 0;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-write-container > * {
    animation: fadeInUp 0.6s ease-out;
}

.review-expert-info {
    animation-delay: 0.1s;
}

.review-write-form {
    animation-delay: 0.2s;
}

.review-info-card {
    animation-delay: 0.3s;
}

/* 터치 피드백 */
.review-submit-btn:active {
    transform: translateY(1px);
}

.star-label:active {
    transform: scale(0.95);
}

/* 접근성 향상 */
.review-rating-stars:focus-within .star-label {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

#reviewText:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 로딩 상태 */
.review-submit-btn.loading {
    background: #ccc;
    cursor: not-allowed;
}

.review-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
} 