/* ============================================
   REPORT CARD — Purple Gradient Theme
   ============================================ */

/* ---- HERO (index page) ---- */
.rc-hero {
    text-align: center;
    padding: 0 20px 32px;
}

.rc-hero-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
}

.rc-hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin: 0;
}

/* ---- LEGEND ---- */
.rc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 20px;
}

.rc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.rc-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rc-legend-avg .rc-legend-line {
    display: inline-block;
    width: 16px;
    height: 0;
    border-top: 2px dashed rgba(255,255,255,0.4);
}

/* ---- SORT BAR ---- */
.rc-sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rc-sort-label {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rc-sort-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rc-sort-pill {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-sort-pill:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.rc-sort-pill.active {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.6);
    color: #fff;
}

/* ---- INDEX LIST ---- */
.rc-index-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.rc-index-card {
    display: grid;
    grid-template-columns: 48px 1fr 200px 60px auto 120px;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.rc-index-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.rc-index-rank-num {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.rc-index-firm-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.rc-index-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255,255,255,0.9);
    padding: 3px;
    flex-shrink: 0;
}

.rc-index-firm-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    display: block;
}

.rc-index-firm-meta {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* Vertical bar chart for scores */
.rc-index-scores {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 48px;
}

.rc-index-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 28px;
}

.rc-index-bar-wrap {
    width: 12px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    position: relative;
    overflow: visible;
}

.rc-index-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 6px;
    transition: height 0.3s ease;
    min-height: 2px;
}

.rc-index-bar-avg {
    position: absolute;
    left: -3px;
    right: -3px;
    height: 0;
    border-top: 2px dashed rgba(255,255,255,0.25);
}

.rc-index-bar-val {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

/* Overall circle */
.rc-index-overall {
    text-align: center;
}

.rc-index-overall-num {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.rc-index-overall-label {
    display: block;
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tags */
.rc-index-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.rc-index-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-tag-green {
    background: rgba(0, 182, 122, 0.15);
    color: #34d399;
}

.rc-tag-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Action button */
.rc-index-action {
    text-align: right;
}

.rc-index-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.2);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rc-index-view-btn:hover {
    background: rgba(168, 85, 247, 0.4);
    color: #fff;
}

/* ---- METHODOLOGY ---- */
.rc-methodology {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.08);
}

.rc-methodology h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
}

.rc-methodology > p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0 0 24px;
}

.rc-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.rc-method-item {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.rc-method-item i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.rc-method-item h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
}

.rc-method-item p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.rc-method-note {
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px !important;
    font-style: italic;
    margin: 0 !important;
}

/* ---- BOTTOM CTA ---- */
.rc-bottom-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.rc-bottom-cta-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
}

.rc-bottom-cta-btn:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
}

.rc-bottom-cta-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.rc-bottom-cta-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* ================================================
   FIRM SHOW PAGE — Report Card Tab
   ================================================ */

/* Top row: overall + radar */
.rc-top-row {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.rc-overall {
    text-align: center;
    flex-shrink: 0;
}

.rc-overall-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(168, 85, 247, 0.8) var(--score-pct),
        rgba(255,255,255,0.08) var(--score-pct)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
}

.rc-overall-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #1a1a2e;
    background: linear-gradient(135deg, rgba(26,26,46,0.95), rgba(30,20,50,0.95));
}

.rc-overall-value {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.rc-overall-label {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rc-overall-grade {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.rc-radar-wrap {
    flex: 1;
    max-width: 320px;
    min-width: 240px;
}

/* Dimension cards */
.rc-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.rc-dim-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.rc-dim-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rc-dim-header i {
    font-size: 20px;
}

.rc-dim-name {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
}

.rc-dim-score-row {
    margin-bottom: 8px;
}

.rc-dim-score {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.rc-dim-max {
    color: rgba(255,255,255,0.3);
    font-size: 14px;
}

.rc-dim-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    position: relative;
    margin-bottom: 8px;
}

.rc-dim-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.rc-dim-bar-avg {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 14px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
}

.rc-dim-compare {
    font-size: 12px;
}

.rc-dim-delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rc-delta-up {
    color: #34d399;
}

.rc-delta-down {
    color: #f87171;
}

.rc-delta-same {
    color: rgba(255,255,255,0.5);
}

/* Strengths & Weaknesses */
.rc-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.rc-list-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.rc-list-card h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-strengths h4 i { color: #34d399; }
.rc-weaknesses h4 i { color: #fbbf24; }

.rc-list-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rc-list-card ul li {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    line-height: 1.4;
}

.rc-list-card ul li:last-child {
    border-bottom: none;
}

.rc-strengths ul li::before {
    content: '\2713';
    color: #34d399;
    margin-right: 8px;
    font-weight: 700;
}

.rc-weaknesses ul li::before {
    content: '\26A0';
    margin-right: 8px;
}

/* Red flags */
.rc-red-flags {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.rc-red-flags h4 {
    color: #f87171;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-flag-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 0;
}

.rc-flag-item i {
    color: #f87171;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Recommended for */
.rc-recommended {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.rc-recommended h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-recommended h4 i {
    color: #3b82f6;
}

.rc-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rc-tag {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.15);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
}

/* CTA link on firm page */
.rc-cta {
    text-align: center;
    padding: 16px 0;
}

.rc-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(168, 85, 247, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rc-cta-link:hover {
    color: #a855f7;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .rc-index-card {
        grid-template-columns: 40px 1fr 160px 50px;
        grid-template-rows: auto auto;
    }

    .rc-index-tags {
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .rc-index-action {
        grid-column: -2 / -1;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .rc-hero-title { font-size: 26px; }
    .rc-hero-subtitle { font-size: 14px; }

    .rc-index-card {
        grid-template-columns: 36px 1fr auto;
        gap: 10px;
        padding: 14px 16px;
    }

    .rc-index-scores {
        display: none;
    }

    .rc-index-tags {
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .rc-index-action {
        display: none;
    }

    .rc-index-overall-num { font-size: 16px; }

    .rc-analysis {
        grid-template-columns: 1fr;
    }

    .rc-top-row {
        flex-direction: column;
        gap: 20px;
    }

    .rc-radar-wrap {
        width: 100%;
        max-width: 280px;
    }

    .rc-dimensions {
        grid-template-columns: repeat(2, 1fr);
    }

    .rc-methodology {
        padding: 20px;
    }

    .rc-method-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rc-hero-title { font-size: 22px; }
    .rc-sort-pills { gap: 4px; }
    .rc-sort-pill { padding: 5px 10px; font-size: 12px; }

    .rc-dimensions {
        grid-template-columns: 1fr;
    }

    .rc-dim-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }

    .rc-dim-header { margin-bottom: 0; }
    .rc-dim-score-row { margin-bottom: 0; }
    .rc-dim-score { font-size: 22px; }
    .rc-dim-bar { display: none; }
    .rc-dim-compare { display: none; }

    .rc-legend {
        gap: 10px;
        padding: 12px 16px;
    }
}
