/**
 * Single Review Modal Styles
 */

/* Header layout */
.srm-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.srm-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.srm-header-info {
    flex: 1;
    min-width: 0;
}

.srm-title-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.srm-subtitle {
    font-size: 0.85rem;
    color: #0d6efd;
    margin-top: 0.25rem;
}

/* Review card */
.srm-review-card {
    padding: 1rem 0;
}

/* Rating section */
.srm-rating-section {
    margin-bottom: 1rem;
}

.srm-rating {
    font-size: 1.5rem;
    font-weight: 600;
}

.srm-rating i {
    margin-right: 0.25rem;
}

/* Badges */
.srm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.srm-badges .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4em 0.8em;
}

.srm-badges .bg-purple {
    background-color: #6f42c1 !important;
}

/* Positive badge - light green */
.srm-badge-positive {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}

/* Negative badge - light red */
.srm-badge-negative {
    background-color: #f8d7da !important;
    color: #842029 !important;
}

/* Emoji badge with label */
.srm-badge-emoji {
    font-size: 0.8rem;
    border: 1px solid var(--mv-border-color);
}

/* Review headline */
.srm-review-headline {
    font-size: 1.1rem;
    color: #212529;
    margin-bottom: 0.75rem;
}

/* Review text */
.srm-review-text {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.srm-no-text {
    padding: 1rem;
    text-align: center;
}

/* Spoiler warning */
.srm-spoiler-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease;
}

.srm-spoiler-warning:hover {
    background: #ffe69c;
}

.srm-spoiler-warning i {
    margin-right: 0.5rem;
}

/* Meta items */
.srm-meta {
    margin-bottom: 1rem;
}

.srm-meta-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.srm-meta-item:last-child {
    border-bottom: none;
}

.srm-meta-item i {
    width: 1.5rem;
    color: #6c757d;
}

/* Emoji display */
.srm-emoji {
    font-size: 1.2rem;
    margin-left: 0.25rem;
}

/* Title Attributes section */
.srm-attributes {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.srm-attributes h6 {
    margin-bottom: 1rem;
    color: #495057;
}

.srm-attribute-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.srm-attribute-row:last-child {
    margin-bottom: 0;
}

.srm-attribute-label {
    width: 120px;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.srm-attribute-bar-container {
    flex: 1;
}

.srm-attribute-bar {
    height: 8px;
    background: var(--mv-border-color);
    border-radius: 4px;
    position: relative;
}

.srm-attribute-fill {
    height: 100%;
    background: #0dcaf0;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.srm-attribute-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #0d6efd;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.srm-attribute-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.srm-attribute-value {
    font-size: 0.75rem;
    min-width: 24px;
    text-align: center;
}

/* Date */
.srm-date {
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 576px) {
    .srm-poster {
        width: 50px;
        height: 75px;
    }

    .srm-rating {
        font-size: 1.25rem;
    }

    .srm-badges .badge {
        font-size: 0.75rem;
    }

    .srm-review-text {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

[data-bs-theme="dark"] .srm-title-meta {
    color: var(--mv-text-muted);
}
[data-bs-theme="dark"] .srm-review-headline {
    color: var(--mv-text-primary);
}
[data-bs-theme="dark"] .srm-review-text {
    background: var(--mv-bg-surface);
    color: var(--mv-text-primary);
}
[data-bs-theme="dark"] .srm-spoiler-warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}
[data-bs-theme="dark"] .srm-spoiler-warning:hover {
    background: rgba(255, 193, 7, 0.25);
}
[data-bs-theme="dark"] .srm-meta-item {
    border-bottom-color: var(--mv-border-color);
}
[data-bs-theme="dark"] .srm-meta-item i {
    color: var(--mv-text-muted);
}
[data-bs-theme="dark"] .srm-attributes {
    background: var(--mv-bg-surface);
}
[data-bs-theme="dark"] .srm-attributes h6 {
    color: var(--mv-text-secondary);
}
[data-bs-theme="dark"] .srm-attribute-bar {
    background: var(--mv-bg-hover);
}
[data-bs-theme="dark"] .srm-attribute-dot {
    border-color: var(--mv-bg-card);
}
[data-bs-theme="dark"] .srm-attribute-labels {
    color: var(--mv-text-muted);
}
[data-bs-theme="dark"] .srm-date {
    border-top-color: var(--mv-border-color);
}
[data-bs-theme="dark"] .srm-badge-positive {
    background-color: rgba(25, 135, 84, 0.15) !important;
    color: #75b798 !important;
}
[data-bs-theme="dark"] .srm-badge-negative {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #ea868f !important;
}
[data-bs-theme="dark"] .srm-badge-emoji {
    border-color: var(--mv-border-color);
}
