/**
 * ReviewsViewModal.css - Styles for the reviews view modal
 */

/* Modal Header with Poster */
#reviewsViewModal .modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

#reviewsViewModal .modal-header .btn-close {
    filter: invert(1);
    align-self: flex-start;
    margin-top: 0;
}

#reviewsViewModal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Modal Body */
#reviewsViewModal .modal-body {
    padding: 0;
    background: #f8fafc;
}

/* Summary Section */
.rvm-summary {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.rvm-summary-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.rvm-summary-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rvm-summary-poster {
    width: 50px;
    height: 75px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    background: #f1f5f9;
}

.rvm-summary-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.rvm-stat {
    text-align: center;
    min-width: 70px;
}

.rvm-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.rvm-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reviews List */
.rvm-reviews-list {
    padding: 0;
}

/* Individual Review Card */
.rvm-review-card {
    background: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.rvm-review-card:last-child {
    border-bottom: none;
}

.rvm-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.rvm-reviewer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rvm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.rvm-reviewer-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.rvm-review-date {
    font-size: 0.8rem;
    color: #64748b;
}

.rvm-rating {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rvm-rating i {
    font-size: 0.8rem;
}

/* Review Headline (title) */
.rvm-review-headline {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Badges */
.rvm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rvm-badges .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rvm-badges .badge i {
    font-size: 0.7rem;
}

.badge.bg-purple {
    background-color: #8b5cf6 !important;
}

/* Review Text */
.rvm-review-text {
    color: #334155;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
}

/* Spoiler Warning */
.rvm-spoiler-warning {
    background: #fef2f2;
    border: 1px dashed #fca5a5;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.rvm-spoiler-warning:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.rvm-spoiler-warning i {
    margin-right: 0.5rem;
}

/* Review Meta Info */
.rvm-review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #64748b;
}

.rvm-emotional,
.rvm-timing,
.rvm-age-groups {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rvm-emotional i,
.rvm-timing i,
.rvm-age-groups i {
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

/* Modal Footer */
#reviewsViewModal .modal-footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
}

/* No Reviews State */
#rvmNoReviews {
    padding: 3rem 1.5rem;
    background: white;
}

#rvmNoReviews i {
    color: #cbd5e1;
}

/* Loading State */
#rvmLoading {
    padding: 3rem 1.5rem;
    background: white;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .rvm-summary-poster {
        width: 40px;
        height: 60px;
    }

    .rvm-summary-title {
        font-size: 1.05rem;
    }

    #reviewsViewModal .modal-title {
        font-size: 1rem;
    }

    .rvm-summary-stats {
        gap: 1rem;
    }

    .rvm-stat-value {
        font-size: 1.1rem;
    }

    .rvm-review-card {
        padding: 1rem;
    }

    .rvm-review-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .rvm-rating {
        align-self: flex-start;
    }

    .rvm-badges .badge {
        font-size: 0.7rem;
    }

    .rvm-review-text {
        font-size: 0.9rem;
    }
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

[data-bs-theme="dark"] #reviewsViewModal .modal-body {
    background: var(--mv-bg-body);
}
[data-bs-theme="dark"] .rvm-summary {
    background: var(--mv-bg-card);
    border-bottom-color: var(--mv-border-color);
}
[data-bs-theme="dark"] .rvm-summary-title {
    color: var(--mv-text-primary);
}
[data-bs-theme="dark"] .rvm-summary-poster {
    background: var(--mv-bg-surface);
}
[data-bs-theme="dark"] .rvm-stat-value {
    color: var(--mv-text-primary);
}
[data-bs-theme="dark"] .rvm-stat-label {
    color: var(--mv-text-muted);
}
[data-bs-theme="dark"] .rvm-review-card {
    background: var(--mv-bg-card);
    border-bottom-color: var(--mv-border-color);
}
[data-bs-theme="dark"] .rvm-reviewer-name {
    color: var(--mv-text-primary);
}
[data-bs-theme="dark"] .rvm-review-date {
    color: var(--mv-text-muted);
}
[data-bs-theme="dark"] .rvm-review-text {
    color: var(--mv-text-secondary);
}
[data-bs-theme="dark"] .rvm-review-headline {
    color: var(--mv-text-primary);
}
[data-bs-theme="dark"] .rvm-spoiler-warning {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #ea868f;
}
[data-bs-theme="dark"] .rvm-spoiler-warning:hover {
    background: rgba(220, 53, 69, 0.15);
}
[data-bs-theme="dark"] .rvm-review-meta {
    color: var(--mv-text-muted);
}
[data-bs-theme="dark"] #reviewsViewModal .modal-footer {
    background: var(--mv-bg-card);
    border-top-color: var(--mv-border-color);
}
[data-bs-theme="dark"] #rvmNoReviews,
[data-bs-theme="dark"] #rvmLoading {
    background: var(--mv-bg-card);
}
