/* Rating Highlight Section Plugin – ITSWEBER CMS */

.rating-highlight-section {
    padding: 4rem 0;
}

.rating-highlight-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.rating-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rating-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.rating-section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-primary, #C62828);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.rating-section-subtitle::before,
.rating-section-subtitle::after {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--theme-primary, #C62828);
    border-radius: 1px;
}

/* ── Rating Card ───────────────────────────────────────────────────────────── */

.rating-card {
    display: flex;
    gap: 3rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Score Side (Left) ─────────────────────────────────────────────────────── */

.rating-score-side {
    text-align: center;
    flex-shrink: 0;
}

.rating-score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-heading, #1a1a2e);
    margin: 0;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: #F59E0B;
    margin: 0.5rem 0;
}

.rating-star {
    font-size: 1.25rem;
    line-height: 1;
}

.rating-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 500;
}

.rating-source {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* ── Body Side (Right) ─────────────────────────────────────────────────────── */

.rating-body-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-summary {
    padding: 1rem 1.25rem;
    background: #faf9f7;
    border-radius: 8px;
    border-left: 3px solid var(--theme-primary, #333);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

.rating-summary-source {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.375rem;
}

.rating-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.rating-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary, #333);
    text-decoration: none;
    transition: opacity 0.2s ease;
    align-self: flex-start;
}

.rating-link:hover {
    opacity: 0.75;
}

/* ── Color Schemes ─────────────────────────────────────────────────────────── */

.rating-highlight-section.section--scheme-alt {
    background: #f8fafc;
}

.rating-highlight-section.section--scheme-primary {
    background: var(--theme-primary, #333);
}

.rating-highlight-section.section--scheme-primary .rating-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.rating-highlight-section.section--scheme-primary .rating-section-title {
    color: #fff;
}

.rating-highlight-section.section--scheme-primary .rating-section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.rating-highlight-section.section--scheme-primary .rating-score-number {
    color: #fff;
}

.rating-highlight-section.section--scheme-primary .rating-count,
.rating-highlight-section.section--scheme-primary .rating-source {
    color: rgba(255, 255, 255, 0.8);
}

.rating-highlight-section.section--scheme-primary .rating-summary {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.rating-highlight-section.section--scheme-primary .rating-summary-source {
    color: rgba(255, 255, 255, 0.7);
}

.rating-highlight-section.section--scheme-primary .rating-date {
    color: rgba(255, 255, 255, 0.7);
}

.rating-highlight-section.section--scheme-primary .rating-link {
    color: #fff;
    text-decoration: underline;
}

.rating-highlight-section.section--scheme-dark {
    background: #1e293b;
}

.rating-highlight-section.section--scheme-dark .rating-card {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

.rating-highlight-section.section--scheme-dark .rating-section-title {
    color: #f1f5f9;
}

.rating-highlight-section.section--scheme-dark .rating-section-subtitle {
    color: #94a3b8;
}

.rating-highlight-section.section--scheme-dark .rating-score-number {
    color: #f1f5f9;
}

.rating-highlight-section.section--scheme-dark .rating-count,
.rating-highlight-section.section--scheme-dark .rating-source {
    color: #94a3b8;
}

.rating-highlight-section.section--scheme-dark .rating-summary {
    background: #1e293b;
    border-left-color: #60a5fa;
    color: #cbd5e1;
}

.rating-highlight-section.section--scheme-dark .rating-summary-source {
    color: #94a3b8;
}

.rating-highlight-section.section--scheme-dark .rating-date {
    color: #94a3b8;
}

.rating-highlight-section.section--scheme-dark .rating-link {
    color: #60a5fa;
}

/* ── Section Text Color Overrides ──────────────────────────────────────────── */

.rating-highlight-section.section--text-black .rating-score-number,
.rating-highlight-section.section--text-black .rating-summary {
    color: #000;
}

.rating-highlight-section.section--text-black .rating-count,
.rating-highlight-section.section--text-black .rating-source,
.rating-highlight-section.section--text-black .rating-date {
    color: #333;
}

.rating-highlight-section.section--text-black .rating-summary-source {
    color: #666;
}

.rating-highlight-section.section--text-black .rating-link {
    color: #000;
}

.rating-highlight-section.section--text-white .rating-score-number,
.rating-highlight-section.section--text-white .rating-summary {
    color: #fff;
}

.rating-highlight-section.section--text-white .rating-count,
.rating-highlight-section.section--text-white .rating-source,
.rating-highlight-section.section--text-white .rating-date {
    color: rgba(255, 255, 255, 0.8);
}

.rating-highlight-section.section--text-white .rating-summary-source {
    color: rgba(255, 255, 255, 0.7);
}

.rating-highlight-section.section--text-white .rating-link {
    color: #fff;
    text-decoration: underline;
}

.rating-highlight-section.section--text-theme .rating-score-number,
.rating-highlight-section.section--text-theme .rating-summary {
    color: var(--theme-primary, #333);
}

.rating-highlight-section.section--text-theme .rating-count,
.rating-highlight-section.section--text-theme .rating-source,
.rating-highlight-section.section--text-theme .rating-date {
    color: var(--theme-primary, #333);
}

.rating-highlight-section.section--text-theme .rating-summary-source {
    color: var(--theme-primary, #333);
}

.rating-highlight-section.section--text-theme .rating-link {
    color: var(--theme-primary, #333);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .rating-highlight-section {
        padding: 2.5rem 0;
    }

    .rating-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .rating-score-side {
        order: -1;
    }

    .rating-section-title {
        font-size: 1.5rem;
    }

    .rating-section-subtitle {
        font-size: 1rem;
    }

    .rating-score-number {
        font-size: 2.5rem;
    }

    .rating-stars {
        margin: 0.75rem 0;
    }
}
