/* ===== Review Modal - Dark Theme Adaptation ===== */
/* Файл: review-modal.css */
/* Создан: 2026-01-28 */
/* Описание: Стили для модального окна отзывов с адаптацией под тёмную тему */

body #reviewModal .modal-content,
html[data-theme="dark"] #reviewModal .modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body #reviewModal .modal-header,
html[data-theme="dark"] #reviewModal .modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 25px;
}

body #reviewModal .modal-title,
html[data-theme="dark"] #reviewModal .modal-title {
    color: #fff !important;
    font-weight: 600;
}

body #reviewModal .close,
html[data-theme="dark"] #reviewModal .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
    font-size: 28px;
}

body #reviewModal .close:hover,
html[data-theme="dark"] #reviewModal .close:hover {
    opacity: 1;
    color: #ff6b35;
}

body #reviewModal .modal-body,
html[data-theme="dark"] #reviewModal .modal-body {
    padding: 25px;
}

body #reviewModal .modal-body label,
html[data-theme="dark"] #reviewModal .modal-body label {
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

body #reviewModal .form-control,
html[data-theme="dark"] #reviewModal .form-control {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

body #reviewModal .form-control::placeholder,
html[data-theme="dark"] #reviewModal .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

body #reviewModal .form-control:focus,
html[data-theme="dark"] #reviewModal .form-control:focus {
    background: rgba(255,255,255,0.15) !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.25) !important;
    outline: none;
}

body #reviewModal .btn-success,
html[data-theme="dark"] #reviewModal .btn-success {
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    border: none !important;
    border-radius: 25px;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

body #reviewModal .btn-success:hover,
html[data-theme="dark"] #reviewModal .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,53,0.4);
}

body #reviewModal .btn-success i,
html[data-theme="dark"] #reviewModal .btn-success i {
    margin-right: 8px;
}

/* ===== Validation Styles ===== */
body #reviewModal .form-group,
html[data-theme="dark"] #reviewModal .form-group {
    position: relative;
    margin-bottom: 20px;
}

body #reviewModal .form-control.is-valid,
html[data-theme="dark"] #reviewModal .form-control.is-valid {
    border-color: #28a745 !important;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px 20px !important;
}

body #reviewModal .form-control.is-invalid,
html[data-theme="dark"] #reviewModal .form-control.is-invalid {
    border-color: #dc3545 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

body #reviewModal .invalid-feedback,
html[data-theme="dark"] #reviewModal .invalid-feedback {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

body #reviewModal .form-control.is-invalid ~ .invalid-feedback,
html[data-theme="dark"] #reviewModal .form-control.is-invalid ~ .invalid-feedback {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Rating Stars with Emoji Feedback ===== */
body #reviewModal .rating-input,
html[data-theme="dark"] #reviewModal .rating-input {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

body #reviewModal .rating-input i,
html[data-theme="dark"] #reviewModal .rating-input i {
    font-size: 32px !important;
    color: rgba(255,255,255,0.3) !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

body #reviewModal .rating-input i:hover,
html[data-theme="dark"] #reviewModal .rating-input i:hover {
    color: #ffc107 !important;
    transform: scale(1.2);
}

body #reviewModal .rating-input i.active,
html[data-theme="dark"] #reviewModal .rating-input i.active {
    color: #ffc107 !important;
}

body #reviewModal .rating-feedback,
html[data-theme="dark"] #reviewModal .rating-feedback {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: none;
    color: #fff;
    font-size: 14px;
}

body #reviewModal .rating-feedback.show,
html[data-theme="dark"] #reviewModal .rating-feedback.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

body #reviewModal .rating-feedback.negative,
html[data-theme="dark"] #reviewModal .rating-feedback.negative {
    border-left: 3px solid #ff6b6b;
}

body #reviewModal .rating-feedback.neutral,
html[data-theme="dark"] #reviewModal .rating-feedback.neutral {
    border-left: 3px solid #ffc107;
}

body #reviewModal .rating-feedback.positive,
html[data-theme="dark"] #reviewModal .rating-feedback.positive {
    border-left: 3px solid #28a745;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Reviews Section Styles ===== */
.reviews-section {
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.reviews-section h3 {
    font-size: 28px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reviews-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

/* ===== Review Item Cards ===== */
.review-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.review-item h6 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}

.review-item .text-muted {
    color: #6c757d !important;
    font-size: 14px;
}

.review-rating i {
    color: #ffc107 !important;
    font-size: 18px;
    margin-right: 3px;
}

.review-item p {
    color: #495057;
    line-height: 1.6;
    margin-top: 15px;
    font-size: 15px;
}
