/**
 * FOMC Pro Analysis Visualization Styles
 * 
 * Designed for dark theme matching fomc_archive.html
 * Gold accent: #ffd700
 * High/validated: #00ff88
 * Medium/partial: #ffc107  
 * Low/wrong: #ff4757
 */

/* =============================================================================
   SHARED
   ============================================================================= */

.fomc-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Score colors */
.high { color: #00ff88; }
.medium { color: #ffc107; }
.low { color: #ff4757; }

.red { color: #ff4757; }
.yellow { color: #ffc107; }
.green { color: #00ff88; }

/* =============================================================================
   VERDICT BANNER
   ============================================================================= */

.fomc-verdict-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.verdict-score {
    text-align: center;
}

.verdict-score-value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.verdict-score-value.high { color: #00ff88; }
.verdict-score-value.medium { color: #ffc107; }
.verdict-score-value.low { color: #ff4757; }

.verdict-score-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    margin-top: 4px;
}

.verdict-text {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.verdict-headline {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.verdict-detail {
    font-size: 13px;
    color: #888;
}

.verdict-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 12px;
    color: #888;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.breakdown-dot.high { background: #00ff88; }
.breakdown-dot.medium { background: #ffc107; }
.breakdown-dot.low { background: #ff4757; }

@media (max-width: 700px) {
    .fomc-verdict-banner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    .verdict-text {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 1rem;
    }
    .verdict-breakdown {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =============================================================================
   PRESCIENCE LEADERBOARD
   ============================================================================= */

.fomc-leaderboard {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.leaderboard-header {
    background: rgba(255, 215, 0, 0.08);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.header-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
}

.header-count {
    font-size: 11px;
    color: #888;
}

.leaderboard-rows {
    padding: 0;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 70px 1fr 140px;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: center;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.leaderboard-row.active {
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid #ffd700;
    padding-left: calc(1.25rem - 3px);
}

/* Filter notice */
.leaderboard-filter-notice {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1.25rem;
    font-size: 12px;
    color: #ffd700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.clear-filter {
    cursor: pointer;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
}

.clear-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

.leaderboard-score {
    text-align: center;
}

.leaderboard-score .score-value {
    font-size: 22px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.leaderboard-score .score-label {
    font-size: 9px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.leaderboard-content {
    min-width: 0;
}

.leaderboard-prediction {
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.leaderboard-outcome {
    font-size: 12px;
    color: #888;
}

.leaderboard-meta {
    text-align: right;
}

.meta-speaker {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
}

.meta-date {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .leaderboard-row {
        grid-template-columns: 60px 1fr;
    }
    .leaderboard-meta {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
}

/* =============================================================================
   STANCE EVOLUTION
   ============================================================================= */

.fomc-stance {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.stance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.stance-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
}

.stance-period {
    font-size: 11px;
    color: #666;
}

.stance-phases {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.stance-phase {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    min-width: 0;
}

.stance-phase.hawkish {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.25);
}

.stance-phase.dovish {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.stance-phase.neutral {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.stance-phase.hawkish .phase-dot { background: #ff4757; box-shadow: 0 0 8px rgba(255,71,87,0.5); }
.stance-phase.dovish .phase-dot { background: #00ff88; box-shadow: 0 0 8px rgba(0,255,136,0.5); }
.stance-phase.neutral .phase-dot { background: #ffc107; box-shadow: 0 0 8px rgba(255,193,7,0.5); }

.phase-period {
    font-size: 10px;
    color: #888;
    margin-bottom: 0.25rem;
}

.phase-label {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.phase-keywords {
    font-size: 10px;
    color: #666;
    line-height: 1.3;
}

.stance-arrow {
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
    color: #ffd700;
    font-size: 18px;
    margin-top: 1rem;
}

.stance-inflections {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inflection-marker {
    text-align: center;
    font-size: 11px;
}

.inflection-date {
    color: #ffd700;
    font-weight: 600;
    display: block;
}

.inflection-event {
    color: #888;
    margin-top: 2px;
    display: block;
}

@media (max-width: 600px) {
    .stance-phases {
        flex-direction: column;
        gap: 0.5rem;
    }
    .stance-arrow {
        transform: rotate(90deg);
        margin: 0.25rem auto;
    }
    .stance-inflections {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =============================================================================
   INFORMATION FUNNELS
   ============================================================================= */

.fomc-funnels {
    margin: 1rem 0;
}

.funnels-summary {
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-title {
    font-size: 12px;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 0.5rem;
}

.summary-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 12px;
    color: #888;
}

.summary-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.summary-stats .stat-value {
    font-weight: 700;
    font-size: 16px;
}

.fomc-funnel {
    margin-bottom: 2rem;
}

.funnel-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.funnel-badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.funnel-badge.omitted { background: rgba(255, 71, 87, 0.2); color: #ff4757; }
.funnel-badge.reframed { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.funnel-badge.softened { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.funnel-badge.filtered { background: rgba(136, 136, 136, 0.2); color: #888; }

.funnel-stages {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.funnel-stage {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    text-align: center;
}

.funnel-stage.staff {
    width: 100%;
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.35);
}

.funnel-stage.committee {
    width: 75%;
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.35);
}

.funnel-stage.public {
    width: 50%;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.funnel-stage.omitted {
    width: 50%;
    background: rgba(255, 71, 87, 0.06);
    border: 2px dashed rgba(255, 71, 87, 0.35);
    padding: 1.25rem;
}

.funnel-stage .stage-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    opacity: 0.7;
}

.funnel-stage.staff .stage-label { color: #3498db; }
.funnel-stage.committee .stage-label { color: #f39c12; }
.funnel-stage.public .stage-label { color: #2ecc71; }
.funnel-stage.omitted .stage-label { color: #ff4757; }

.funnel-stage .stage-quote {
    font-size: 12px;
    color: #ccc;
    line-height: 1.5;
    font-style: italic;
}

.funnel-stage .stage-source {
    font-size: 9px;
    color: #666;
    margin-top: 0.4rem;
}

.funnel-stage .omitted-icon {
    font-size: 20px;
    color: #ff4757;
    margin-bottom: 0.25rem;
}

.funnel-connector {
    width: 2px;
    height: 16px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}

@media (max-width: 600px) {
    .funnel-stage.staff,
    .funnel-stage.committee,
    .funnel-stage.public,
    .funnel-stage.omitted {
        width: 100%;
    }
}

/* =============================================================================
   SPEAKER CARDS
   ============================================================================= */

.fomc-speaker-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.fomc-speaker-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.fomc-speaker-card.expanded {
    border-color: rgba(255, 215, 0, 0.25);
}

.card-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    align-items: center;
}

.card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.card-speaker {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.card-stats {
    display: flex;
    gap: 1rem;
    font-size: 11px;
}

.card-avg {
    font-weight: 700;
}

.card-avg.high { color: #00ff88; }
.card-avg.medium { color: #ffc107; }
.card-avg.low { color: #ff4757; }

.card-count {
    color: #666;
}

.card-toggle {
    color: #666;
    font-size: 10px;
    transition: transform 0.2s;
}

.fomc-speaker-card.expanded .card-toggle {
    transform: rotate(90deg);
}

.card-body {
    display: none;
    padding: 0 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fomc-speaker-card.expanded .card-body {
    display: block;
}

.card-prediction {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: start;
}

.card-prediction:last-child {
    border-bottom: none;
}

.card-prediction.highlighted {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid #ffd700;
    margin-left: -0.5rem;
    padding-left: calc(0.75rem + 0.5rem - 3px);
    border-radius: 4px;
}

.prediction-score {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.prediction-text {
    min-width: 0;
}

.prediction-claim {
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.prediction-outcome {
    font-size: 11px;
    color: #888;
}
