/* Стили для системы отзывов */

.reviews-section {
    max-width: 800px;
    margin: 0 auto;
}

.review-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.review-form h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.review-form__rating {
    margin-bottom: 1rem;
}

.review-form__rating label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

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

.rating-stars label {
    cursor: pointer;
    margin: 0;
}

.rating-stars label svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #d1d5db;
    transition: fill 0.2s ease;
}

.rating-stars input[type="radio"]:checked ~ label svg,
.rating-stars label:hover svg {
    fill: #fbbf24;
}

.review-form__field {
    margin-bottom: 1rem;
}

.review-form__field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.review-form__field input,
.review-form__field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.review-form__field input:focus,
.review-form__field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.review-form__field textarea {
    resize: vertical;
    min-height: 100px;
}

.reviews-list {
    margin-top: 2rem;
}

.reviews-list h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.review-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.review-rating {
    display: flex;
    gap: 0.125rem;
}

.review-rating svg {
    width: 1rem;
    height: 1rem;
    fill: #fbbf24;
}

.review-author {
    font-weight: 600;
    color: #374151;
}

.review-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.review-content {
    color: #374151;
    line-height: 1.6;
}

.review-form__login-message {
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    text-align: center;
}

.review-form__login-message a {
    color: #3b82f6;
    text-decoration: underline;
}

.review-form__message--error {
    color: #dc2626;
}



/* Адаптивность */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rating-stars label svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .review-rating svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}
