/* 리뷰 시스템 스타일 */
.product-reviews-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.reviews-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.reviews-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
}

.rating-stars {
    color: #f39c12;
    font-size: 1.2em;
}

.review-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.rating-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.rating-inputs label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    transition: color 0.3s ease;
}

.rating-inputs input[type="radio"]:checked + label {
    color: #f39c12;
}

.rating-inputs label:hover {
    color: #f39c12;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.reviews-list {
    margin-top: 30px;
}

.review-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 600;
    color: #2c3e50;
}

.review-time {
    color: #7f8c8d;
    font-size: 0.9em;
}

.review-rating {
    margin-bottom: 10px;
}

.review-content {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.review-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.review-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.edit-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.edit-form .form-group {
    margin-bottom: 15px;
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.save-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9em;
}

.cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9em;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9em;
}

.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.no-reviews {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
}

/* 모달 스타일 */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    margin-top: 50px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .product-reviews-container {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .reviews-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .rating-inputs {
        justify-content: center;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-actions {
        flex-wrap: wrap;
    }
}
