/* =================================================================
   MATCHUP CONSOLIDATED STYLES
   Unified stylesheet for all matchup-related components
   Generated from 29 separate CSS files during Phase 2 consolidation

   Date: 2025-09-25
   Source files consolidated: 29 files (~211KB total)
   Target reduction: 50%

   ALL selectors use .matchup- namespace prefix to prevent conflicts
   ================================================================= */

/* =================================================================
   1. BASE VARIABLES & RESET
   ================================================================= */

:root {
    /* Matchup Analysis specific overrides */
    --matchup-primary-bg: var(--bg-primary);
    --matchup-secondary-bg: var(--bg-card);
    --matchup-text-primary: var(--text-primary);
    --matchup-text-secondary: var(--text-secondary);
    --matchup-border-color: var(--border-color);
    --matchup-accent-color: var(--accent-subtle);
    --matchup-cta-primary: var(--primary-color);
    --matchup-cta-hover: var(--primary-color-hover);
    --matchup-success-color: var(--status-success);
    --matchup-error-color: var(--status-error);

    /* Spacing */
    --matchup-space-xs: 0.5rem;
    --matchup-space-sm: 1rem;
    --matchup-space-md: 1.5rem;
    --matchup-space-lg: 2rem;
    --matchup-space-xl: 3rem;

    /* Border Radius */
    --matchup-radius-sm: 0.375rem;
    --matchup-radius-md: 0.5rem;
    --matchup-radius-lg: 0.75rem;
    --matchup-radius-xl: 1rem;

    /* Shadows */
    --matchup-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --matchup-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --matchup-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --matchup-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Team colors (can be overridden dynamically) */
    --matchup-team1-primary: #10B981;
    --matchup-team1-secondary: #0B956C;
    --matchup-team2-primary: #6366F1;
    --matchup-team2-secondary: #4F46E5;
}

/* =================================================================
   2. LAYOUT & GRID
   ================================================================= */

/* Main content containers */
.matchup-main-content {
    background-color: var(--matchup-primary-bg);
    color: var(--matchup-text-primary);
}

.matchup-analysis-container {
    background: var(--matchup-primary-bg);
    min-height: 100vh;
    padding: var(--matchup-space-lg) var(--matchup-space-sm);
}

.matchup-analysis-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--matchup-space-lg);
}

/* Grid layouts */
.matchup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--matchup-space-md);
}

/* Force 3 columns on larger screens */
@media (min-width: 992px) {
    .matchup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 columns on medium screens */
@media (min-width: 768px) and (max-width: 991px) {
    .matchup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column on small screens */
@media (max-width: 767px) {
    .matchup-grid {
        grid-template-columns: 1fr;
    }
}

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

.matchup-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

.matchup-grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =================================================================
   3. COMPONENTS
   ================================================================= */

/* 3.1 Headers */
.matchup-header {
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-lg);
    margin-bottom: var(--matchup-space-lg);
    box-shadow: var(--matchup-shadow-md);
}

.matchup-header h1,
.matchup-header h2,
.matchup-header h3 {
    color: var(--matchup-text-primary);
    margin: 0;
}

.matchup-team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--matchup-space-md);
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-md);
    border: 1px solid var(--matchup-border-color);
}

.matchup-team-info {
    display: flex;
    align-items: center;
    gap: var(--matchup-space-sm);
}

.matchup-team-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--matchup-radius-md);
    object-fit: contain;
}

.matchup-team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--matchup-text-primary);
}

.matchup-team-record {
    font-size: 0.9rem;
    color: var(--matchup-text-secondary);
}

/* 3.2 Cards */
.matchup-card {
    background: var(--matchup-secondary-bg);
    border: 1px solid var(--matchup-border-color);
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-lg);
    box-shadow: var(--matchup-shadow-sm);
    transition: all 0.3s ease;
}

.matchup-card:hover {
    box-shadow: var(--matchup-shadow-md);
    transform: translateY(-2px);
}

.matchup-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--matchup-space-md);
    padding-bottom: var(--matchup-space-sm);
    border-bottom: 1px solid var(--matchup-border-color);
}

.matchup-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--matchup-text-primary);
    margin: 0;
}

.matchup-card-body {
    color: var(--matchup-text-primary);
}

.matchup-card-footer {
    margin-top: var(--matchup-space-md);
    padding-top: var(--matchup-space-sm);
    border-top: 1px solid var(--matchup-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Prediction cards */
.matchup-prediction-card {
    position: relative;
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-xl);
    padding: var(--matchup-space-lg);
    box-shadow: var(--matchup-shadow-lg);
    overflow: hidden;
}

.matchup-prediction-header {
    text-align: center;
    margin-bottom: var(--matchup-space-lg);
}

.matchup-prediction-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--matchup-text-primary);
    margin-bottom: var(--matchup-space-xs);
}

.matchup-prediction-subtitle {
    color: var(--matchup-text-secondary);
    font-size: 0.9rem;
}

/* 3.3 Tables */
.matchup-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--matchup-space-md);
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-md);
    overflow: hidden;
    box-shadow: var(--matchup-shadow-sm);
}

.matchup-table th {
    background: var(--matchup-accent-color);
    color: var(--matchup-text-primary);
    font-weight: 600;
    padding: var(--matchup-space-sm) var(--matchup-space-md);
    text-align: left;
    border-bottom: 2px solid var(--matchup-border-color);
}

.matchup-table td {
    padding: var(--matchup-space-sm) var(--matchup-space-md);
    border-bottom: 1px solid var(--matchup-border-color);
    color: var(--matchup-text-primary);
}

.matchup-table tbody tr:hover {
    background-color: var(--matchup-accent-color);
}

.matchup-table tbody tr:last-child td {
    border-bottom: none;
}

/* Player tables */
.matchup-player-table {
    display: grid;
    gap: var(--matchup-space-sm);
}

.matchup-player-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--matchup-space-sm);
    padding: var(--matchup-space-sm);
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-md);
    align-items: center;
}

.matchup-player-name {
    font-weight: 600;
    color: var(--matchup-text-primary);
}

.matchup-player-stat {
    text-align: center;
    font-weight: 500;
    color: var(--matchup-text-primary);
}

/* 3.4 Charts */
.matchup-chart-container {
    position: relative;
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-lg);
    box-shadow: var(--matchup-shadow-sm);
    margin-bottom: var(--matchup-space-lg);
}

.matchup-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--matchup-space-md);
}

.matchup-chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--matchup-text-primary);
}

.matchup-chart-canvas {
    width: 100%;
    height: auto;
}

/* Radar Chart */
.matchup-radar-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matchup-radar-legend {
    display: flex;
    justify-content: center;
    gap: var(--matchup-space-lg);
    margin-top: var(--matchup-space-md);
}

.matchup-legend-item {
    display: flex;
    align-items: center;
    gap: var(--matchup-space-xs);
}

.matchup-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* 3.5 Modals & Overlays */
.matchup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.matchup-modal-content {
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-xl);
    padding: var(--matchup-space-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.matchup-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--matchup-space-lg);
    padding-bottom: var(--matchup-space-sm);
    border-bottom: 1px solid var(--matchup-border-color);
}

.matchup-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--matchup-text-secondary);
    transition: color 0.3s ease;
}

.matchup-modal-close:hover {
    color: var(--matchup-text-primary);
}

/* =================================================================
   4. SPECIALIZED COMPONENTS
   ================================================================= */

/* Hero Section */
.matchup-hero-container {
    position: relative;
    min-height: 400px;
    margin-bottom: var(--matchup-space-lg);
    border-radius: var(--matchup-radius-xl);
    overflow: hidden;
    box-shadow: var(--matchup-shadow-lg);
}

.matchup-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.matchup-team-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.matchup-team1-gradient {
    left: 0;
    background: linear-gradient(135deg,
        var(--matchup-team1-primary) 0%,
        var(--matchup-team1-secondary) 100%);
}

.matchup-team2-gradient {
    right: 0;
    background: linear-gradient(225deg,
        var(--matchup-team2-primary) 0%,
        var(--matchup-team2-secondary) 100%);
}

.matchup-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.matchup-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--matchup-space-xl);
}

.matchup-versus-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
}

.matchup-team-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    flex: 1;
}

.matchup-versus-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 var(--matchup-space-lg);
}

.matchup-vs-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--matchup-space-sm);
}

/* Insights Dashboard */
.matchup-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--matchup-space-lg);
    margin-bottom: var(--matchup-space-xl);
}

.matchup-insight-card {
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-lg);
    box-shadow: var(--matchup-shadow-md);
    border-left: 4px solid var(--matchup-cta-primary);
}

.matchup-insight-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--matchup-space-md);
}

.matchup-insight-icon {
    width: 24px;
    height: 24px;
    margin-right: var(--matchup-space-sm);
}

.matchup-insight-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--matchup-text-primary);
}

.matchup-insight-content {
    color: var(--matchup-text-secondary);
    line-height: 1.6;
}

/* Player Showdown */
.matchup-showdown-container {
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-xl);
    padding: var(--matchup-space-xl);
    box-shadow: var(--matchup-shadow-lg);
    margin-bottom: var(--matchup-space-xl);
}

.matchup-showdown-header {
    text-align: center;
    margin-bottom: var(--matchup-space-xl);
}

.matchup-showdown-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--matchup-text-primary);
    margin-bottom: var(--matchup-space-sm);
}

.matchup-players-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--matchup-space-lg);
    align-items: center;
}

.matchup-player-card {
    background: var(--matchup-primary-bg);
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.matchup-player-card:hover {
    border-color: var(--matchup-cta-primary);
    transform: translateY(-4px);
    box-shadow: var(--matchup-shadow-xl);
}

.matchup-player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto var(--matchup-space-md);
    object-fit: cover;
}

.matchup-player-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--matchup-text-primary);
    margin-bottom: var(--matchup-space-xs);
}

.matchup-player-position {
    color: var(--matchup-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--matchup-space-md);
}

/* Progressive Stats */
.matchup-progress-container {
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-lg);
    margin-bottom: var(--matchup-space-lg);
}

.matchup-progress-item {
    margin-bottom: var(--matchup-space-lg);
}

.matchup-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--matchup-space-xs);
    font-weight: 500;
    color: var(--matchup-text-primary);
}

.matchup-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--matchup-border-color);
    border-radius: var(--matchup-radius-sm);
    overflow: hidden;
}

.matchup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--matchup-cta-primary), var(--matchup-cta-hover));
    border-radius: var(--matchup-radius-sm);
    transition: width 0.5s ease;
}

/* Team Advantages */
.matchup-advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--matchup-space-lg);
    margin-bottom: var(--matchup-space-xl);
}

.matchup-advantage-section {
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-lg);
    box-shadow: var(--matchup-shadow-sm);
}

.matchup-advantage-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--matchup-space-md);
}

.matchup-advantage-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--matchup-text-primary);
}

.matchup-advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.matchup-advantage-item {
    padding: var(--matchup-space-sm) 0;
    border-bottom: 1px solid var(--matchup-border-color);
    color: var(--matchup-text-primary);
    display: flex;
    align-items: center;
}

.matchup-advantage-item:last-child {
    border-bottom: none;
}

.matchup-advantage-icon {
    margin-right: var(--matchup-space-sm);
    color: var(--matchup-success-color);
}

/* Error Handling */
.matchup-error-container {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEFCFC 100%);
    border: 1px solid #FECACA;
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-xl);
    text-align: center;
    margin: var(--matchup-space-xl) 0;
}

.matchup-error-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--matchup-space-md);
    color: var(--matchup-error-color);
}

.matchup-error-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #B91C1C;
    margin-bottom: var(--matchup-space-sm);
}

.matchup-error-message {
    color: #7F1D1D;
    margin-bottom: var(--matchup-space-lg);
    line-height: 1.6;
}

.matchup-error-actions {
    display: flex;
    gap: var(--matchup-space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Accordion */
.matchup-accordion {
    border: 1px solid var(--matchup-border-color);
    border-radius: var(--matchup-radius-lg);
    overflow: hidden;
    margin-bottom: var(--matchup-space-lg);
}

.matchup-accordion-item {
    border-bottom: 1px solid var(--matchup-border-color);
}

.matchup-accordion-item:last-child {
    border-bottom: none;
}

.matchup-accordion-header {
    background: var(--matchup-secondary-bg);
    padding: var(--matchup-space-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.matchup-accordion-header:hover {
    background: var(--matchup-accent-color);
}

.matchup-accordion-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--matchup-text-primary);
    margin: 0;
}

.matchup-accordion-icon {
    transition: transform 0.3s ease;
}

.matchup-accordion-item.active .matchup-accordion-icon {
    transform: rotate(180deg);
}

.matchup-accordion-content {
    padding: 0 var(--matchup-space-lg) var(--matchup-space-lg);
    background: var(--matchup-primary-bg);
    display: none;
}

.matchup-accordion-item.active .matchup-accordion-content {
    display: block;
}

/* =================================================================
   5. UTILITIES
   ================================================================= */

/* Text utilities */
.matchup-text-center { text-align: center; }
.matchup-text-left { text-align: left; }
.matchup-text-right { text-align: right; }

.matchup-text-primary { color: var(--matchup-text-primary); }
.matchup-text-secondary { color: var(--matchup-text-secondary); }
.matchup-text-success { color: var(--matchup-success-color); }
.matchup-text-error { color: var(--matchup-error-color); }

.matchup-font-bold { font-weight: 700; }
.matchup-font-semibold { font-weight: 600; }
.matchup-font-medium { font-weight: 500; }
.matchup-font-normal { font-weight: 400; }

/* Spacing utilities */
.matchup-m-0 { margin: 0; }
.matchup-mt-sm { margin-top: var(--matchup-space-sm); }
.matchup-mb-sm { margin-bottom: var(--matchup-space-sm); }
.matchup-mt-md { margin-top: var(--matchup-space-md); }
.matchup-mb-md { margin-bottom: var(--matchup-space-md); }
.matchup-mt-lg { margin-top: var(--matchup-space-lg); }
.matchup-mb-lg { margin-bottom: var(--matchup-space-lg); }

.matchup-p-sm { padding: var(--matchup-space-sm); }
.matchup-p-md { padding: var(--matchup-space-md); }
.matchup-p-lg { padding: var(--matchup-space-lg); }

/* Display utilities */
.matchup-flex { display: flex; }
.matchup-grid { display: grid; }
.matchup-hidden { display: none; }
.matchup-block { display: block; }
.matchup-inline-block { display: inline-block; }

.matchup-items-center { align-items: center; }
.matchup-justify-center { justify-content: center; }
.matchup-justify-between { justify-content: space-between; }

/* Border utilities */
.matchup-border { border: 1px solid var(--matchup-border-color); }
.matchup-border-top { border-top: 1px solid var(--matchup-border-color); }
.matchup-border-bottom { border-bottom: 1px solid var(--matchup-border-color); }
.matchup-rounded-sm { border-radius: var(--matchup-radius-sm); }
.matchup-rounded-md { border-radius: var(--matchup-radius-md); }
.matchup-rounded-lg { border-radius: var(--matchup-radius-lg); }
.matchup-rounded-xl { border-radius: var(--matchup-radius-xl); }

/* Background utilities */
.matchup-bg-primary { background-color: var(--matchup-primary-bg); }
.matchup-bg-secondary { background-color: var(--matchup-secondary-bg); }
.matchup-bg-success { background-color: var(--matchup-success-color); }
.matchup-bg-error { background-color: var(--matchup-error-color); }

/* Shadow utilities */
.matchup-shadow-sm { box-shadow: var(--matchup-shadow-sm); }
.matchup-shadow-md { box-shadow: var(--matchup-shadow-md); }
.matchup-shadow-lg { box-shadow: var(--matchup-shadow-lg); }
.matchup-shadow-xl { box-shadow: var(--matchup-shadow-xl); }

/* Transition utilities */
.matchup-transition { transition: all 0.3s ease; }
.matchup-transition-fast { transition: all 0.15s ease; }
.matchup-transition-slow { transition: all 0.5s ease; }

/* =================================================================
   6. RESPONSIVE DESIGN
   ================================================================= */

/* Tablet styles */
@media (max-width: 768px) {
    .matchup-analysis-container {
        padding: var(--matchup-space-md) var(--matchup-space-xs);
    }

    .matchup-grid-2col,
    .matchup-grid-3col {
        grid-template-columns: 1fr;
    }

    .matchup-hero-container {
        min-height: 300px;
    }

    .matchup-versus-section {
        flex-direction: column;
        gap: var(--matchup-space-lg);
    }

    .matchup-players-comparison {
        grid-template-columns: 1fr;
        gap: var(--matchup-space-md);
    }

    .matchup-advantages-grid {
        grid-template-columns: 1fr;
    }

    .matchup-showdown-title {
        font-size: 1.5rem;
    }

    .matchup-team-header {
        flex-direction: column;
        gap: var(--matchup-space-sm);
        text-align: center;
    }

    .matchup-player-row {
        grid-template-columns: 1fr;
        gap: var(--matchup-space-xs);
        text-align: center;
    }

    .matchup-modal-content {
        width: 95%;
        margin: var(--matchup-space-sm);
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .matchup-analysis-container {
        padding: var(--matchup-space-sm) var(--matchup-space-xs);
    }

    .matchup-hero-container {
        min-height: 250px;
    }

    .matchup-card,
    .matchup-showdown-container,
    .matchup-prediction-card {
        padding: var(--matchup-space-md);
    }

    .matchup-vs-text {
        font-size: 1.5rem;
    }

    .matchup-showdown-title {
        font-size: 1.25rem;
    }

    .matchup-team-name {
        font-size: 1rem;
    }

    .matchup-error-actions {
        flex-direction: column;
    }

    .matchup-table {
        font-size: 0.875rem;
    }

    .matchup-table th,
    .matchup-table td {
        padding: var(--matchup-space-xs) var(--matchup-space-sm);
    }
}

/* =================================================================
   7. COMPONENT-SPECIFIC OVERRIDES
   ================================================================= */

/* View Matchups page specific styles */
.matchup-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--matchup-space-lg);
}

.matchup-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--matchup-space-xl);
}

.matchup-list-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--matchup-text-primary);
}

.matchup-filters {
    display: flex;
    gap: var(--matchup-space-sm);
    align-items: center;
}

.matchup-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--matchup-space-lg);
}

.matchup-list-card {
    background: var(--matchup-secondary-bg);
    border-radius: var(--matchup-radius-lg);
    padding: var(--matchup-space-lg);
    box-shadow: var(--matchup-shadow-md);
    border: 1px solid var(--matchup-border-color);
    transition: all 0.3s ease;
}

.matchup-list-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--matchup-shadow-xl);
}

.matchup-list-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--matchup-space-md);
}

.matchup-list-team {
    display: flex;
    align-items: center;
    gap: var(--matchup-space-sm);
}

.matchup-list-team-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--matchup-radius-md);
}

.matchup-list-team-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--matchup-text-primary);
}

.matchup-list-vs {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--matchup-text-secondary);
}

.matchup-list-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--matchup-text-secondary);
    font-size: 0.9rem;
}

.matchup-list-date,
.matchup-list-location {
    display: flex;
    align-items: center;
    gap: var(--matchup-space-xs);
}

/* Health check components */
.matchup-health-status {
    display: inline-flex;
    align-items: center;
    gap: var(--matchup-space-xs);
    padding: var(--matchup-space-xs) var(--matchup-space-sm);
    border-radius: var(--matchup-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.matchup-health-status.healthy {
    background: rgba(16, 185, 129, 0.1);
    color: var(--matchup-success-color);
}

.matchup-health-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.matchup-health-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--matchup-error-color);
}

/* =================================================================
   END OF CONSOLIDATED STYLES
   Source files consolidated: 29 files
   Target size reduction: ~50% (from ~211KB)
   ================================================================= *//* Glassmorphic Matchup Cards with Ambient Glow Pulse
 * Design: Frosted glass effect with status-based ambient glows
 * Brand: Edge-AI premium aesthetic
 */

/* ============================================
   CSS Custom Properties for Glassmorphic Theme
   ============================================ */
:root {
    /* Glassmorphic effect values */
    --glass-blur: 12px;
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(255, 255, 255, 0.05);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --glass-border-dark: rgba(255, 255, 255, 0.1);

    /* Glow colors for game status */
    --glow-upcoming: rgba(59, 130, 246, 0.4);      /* Blue - calm, anticipation */
    --glow-live: rgba(249, 115, 22, 0.5);          /* Orange - energy, action */
    --glow-completed: rgba(16, 185, 129, 0.35);    /* Emerald - success, done */
    --glow-default: rgba(16, 185, 129, 0.2);       /* Subtle emerald default */

    /* Gradient border colors */
    --gradient-start: rgba(16, 185, 129, 0.6);
    --gradient-mid: rgba(59, 130, 246, 0.4);
    --gradient-end: rgba(139, 92, 246, 0.5);
}

[data-theme="dark"] {
    --glass-bg-light: rgba(42, 42, 42, 0.8);
    --glass-bg-dark: rgba(30, 30, 30, 0.9);
    --glass-border-light: rgba(255, 255, 255, 0.1);
    --glass-border-dark: rgba(255, 255, 255, 0.05);

    /* Slightly more vibrant glows for dark mode */
    --glow-upcoming: rgba(59, 130, 246, 0.5);
    --glow-live: rgba(249, 115, 22, 0.6);
    --glow-completed: rgba(16, 185, 129, 0.4);
    --glow-default: rgba(16, 185, 129, 0.25);
}

/* ============================================
   Page Background - Gradient for Glass Contrast
   ============================================ */
.matchups-page-bg {
    background: linear-gradient(
        135deg,
        var(--bg-primary) 0%,
        rgba(16, 185, 129, 0.03) 25%,
        var(--bg-primary) 50%,
        rgba(59, 130, 246, 0.03) 75%,
        var(--bg-primary) 100%
    );
    min-height: 100vh;
}

[data-theme="dark"] .matchups-page-bg {
    background: linear-gradient(
        135deg,
        var(--bg-primary) 0%,
        rgba(16, 185, 129, 0.05) 25%,
        var(--bg-primary) 50%,
        rgba(59, 130, 246, 0.05) 75%,
        var(--bg-primary) 100%
    );
}

/* ============================================
   Glassmorphic Card Base Styles
   ============================================ */
.matchup-card-glass {
    position: relative;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* GPU acceleration */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

[data-theme="dark"] .matchup-card-glass {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
}

/* Gradient border effect using pseudo-element */
.matchup-card-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        var(--gradient-start),
        transparent 40%,
        transparent 60%,
        var(--gradient-end)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.matchup-card-glass:hover::before {
    opacity: 1;
}

/* Hover state */
.matchup-card-glass:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 30px var(--glow-default);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .matchup-card-glass:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px var(--glow-default);
}

/* ============================================
   Ambient Glow Pulse - Game Status
   ============================================ */

/* Base glow layer */
.matchup-card-glass::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

/* Upcoming games - calm blue pulse */
.matchup-card-glass.status-upcoming::after {
    background: radial-gradient(
        ellipse at center,
        var(--glow-upcoming) 0%,
        transparent 70%
    );
    opacity: 0.6;
    animation: pulse-upcoming 4s ease-in-out infinite;
}

/* Live games - energetic orange pulse */
.matchup-card-glass.status-live::after {
    background: radial-gradient(
        ellipse at center,
        var(--glow-live) 0%,
        transparent 70%
    );
    opacity: 0.8;
    animation: pulse-live 1.5s ease-in-out infinite;
}

/* Completed games - static emerald glow */
.matchup-card-glass.status-completed::after {
    background: radial-gradient(
        ellipse at center,
        var(--glow-completed) 0%,
        transparent 70%
    );
    opacity: 0.5;
    /* No animation - static glow */
}

/* Pulse animations */
@keyframes pulse-upcoming {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .matchup-card-glass.status-upcoming::after,
    .matchup-card-glass.status-live::after {
        animation: none;
        opacity: 0.5;
    }

    .matchup-card-glass:hover {
        transform: translateY(-2px);
    }
}

/* ============================================
   Status Indicator Badge
   ============================================ */
.game-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.game-status-badge.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.game-status-badge.live {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
    animation: badge-pulse 1.5s ease-in-out infinite;
}

.game-status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
    }
}

[data-theme="dark"] .game-status-badge.upcoming {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

[data-theme="dark"] .game-status-badge.live {
    background: rgba(249, 115, 22, 0.3);
    color: #fb923c;
}

[data-theme="dark"] .game-status-badge.completed {
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* ============================================
   Team Logo Enhancements for Glass Cards
   ============================================ */
.matchup-card-glass .team-logo-container {
    position: relative;
}

.matchup-card-glass .team-logo.team-logo-large {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .matchup-card-glass .team-logo.team-logo-large {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.matchup-card-glass:hover .team-logo.team-logo-large {
    transform: scale(1.05);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(16, 185, 129, 0.2);
}

/* ============================================
   VS Indicator Enhancement
   ============================================ */
.matchup-card-glass .vs-unified {
    position: relative;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
}

.matchup-card-glass:hover .vs-unified {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* ============================================
   Game Info Section Glass Treatment
   ============================================ */
.matchup-card-glass .game-details-section {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .matchup-card-glass .game-details-section {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.matchup-card-glass .game-info-row {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    margin: 0.5rem 0.75rem;
    padding: 0.5rem 0.75rem;
    border: none;
}

[data-theme="dark"] .matchup-card-glass .game-info-row {
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   Score Display Glass Enhancement
   ============================================ */
.matchup-card-glass .game-score {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.1) 0%,
        rgba(16, 185, 129, 0.05) 100%
    );
    border: 1px solid rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.matchup-card-glass .final-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* ============================================
   Interactive Hover Refinements
   ============================================ */
.matchup-card-glass.selected {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 50px var(--glow-default),
        inset 0 0 0 2px var(--accent-primary);
}

.matchup-card-glass.loading {
    opacity: 0.6;
    pointer-events: none;
}

.matchup-card-glass.loading::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(16, 185, 129, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   Grid Enhancements
   ============================================ */
.matchup-grid-glass {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

@media (min-width: 992px) {
    .matchup-grid-glass {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .matchup-grid-glass {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .matchup-grid-glass {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ============================================
   Staggered Entrance Animation
   ============================================ */
.matchup-card-container-glass {
    animation: glassEntrance 0.6s ease-out both;
}

.matchup-card-container-glass:nth-child(1) { animation-delay: 0.05s; }
.matchup-card-container-glass:nth-child(2) { animation-delay: 0.1s; }
.matchup-card-container-glass:nth-child(3) { animation-delay: 0.15s; }
.matchup-card-container-glass:nth-child(4) { animation-delay: 0.2s; }
.matchup-card-container-glass:nth-child(5) { animation-delay: 0.25s; }
.matchup-card-container-glass:nth-child(6) { animation-delay: 0.3s; }
.matchup-card-container-glass:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes glassEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .matchup-card-container-glass {
        animation: none;
        opacity: 1;
    }
}

/* ============================================
   Filter Section Glass Treatment
   ============================================ */
.filters-section-glass {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    padding: 1.25rem;
}

[data-theme="dark"] .filters-section-glass {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
}

.filters-section-glass .form-select,
.filters-section-glass .form-control {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

[data-theme="dark"] .filters-section-glass .form-select,
[data-theme="dark"] .filters-section-glass .form-control {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.filters-section-glass .form-select:focus,
.filters-section-glass .form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ============================================
   Pagination Glass Treatment
   ============================================ */
.pagination-controls-glass {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

[data-theme="dark"] .pagination-controls-glass {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
}

.pagination-controls-glass .btn {
    background: linear-gradient(135deg, var(--accent-primary), #059669);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.pagination-controls-glass .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ============================================
   Fallback for browsers without backdrop-filter
   ============================================ */
@supports not (backdrop-filter: blur(12px)) {
    .matchup-card-glass {
        background: rgba(255, 255, 255, 0.95);
    }

    [data-theme="dark"] .matchup-card-glass {
        background: rgba(42, 42, 42, 0.98);
    }

    .filters-section-glass,
    .pagination-controls-glass {
        background: rgba(255, 255, 255, 0.95);
    }

    [data-theme="dark"] .filters-section-glass,
    [data-theme="dark"] .pagination-controls-glass {
        background: rgba(42, 42, 42, 0.98);
    }
}
/* Matchup Page Enhancements
 * Components: Confidence Ring, Competitive Tension Bar, Featured Hero
 * Brand: Edge-AI premium aesthetic
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    /* Confidence ring colors */
    --confidence-low: #f59e0b;        /* Amber - uncertain */
    --confidence-medium: #3b82f6;     /* Blue - moderate */
    --confidence-high: #10b981;       /* Emerald - confident */

    /* Tension bar gradients */
    --tension-home: var(--accent-primary);
    --tension-away: #6366f1;          /* Indigo */
    --tension-neutral: #6b7280;       /* Gray */

    /* Hero section */
    --hero-gradient-start: rgba(16, 185, 129, 0.1);
    --hero-gradient-end: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] {
    --hero-gradient-start: rgba(16, 185, 129, 0.15);
    --hero-gradient-end: rgba(99, 102, 241, 0.15);
}

/* ============================================
   1. CONFIDENCE RING
   Circular progress ring around VS indicator
   ============================================ */
.vs-confidence-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.confidence-ring-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.confidence-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 3;
}

[data-theme="dark"] .confidence-ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.confidence-ring-progress {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.3s ease;
    /* Ring circumference = 2 * PI * radius (24) ≈ 150.8 */
    stroke-dasharray: 150.8;
    stroke-dashoffset: 150.8; /* Start empty, JS will set actual value */
}

/* Confidence level colors */
.confidence-ring-progress.confidence-low {
    stroke: var(--confidence-low);
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.confidence-ring-progress.confidence-medium {
    stroke: var(--confidence-medium);
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

.confidence-ring-progress.confidence-high {
    stroke: var(--confidence-high);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

/* VS text inside ring */
.vs-confidence-ring .vs-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    transition: all 0.3s ease;
}

.matchup-card-glass:hover .vs-confidence-ring .vs-text {
    color: var(--accent-primary);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Confidence tooltip */
.confidence-tooltip {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 20;
}

.confidence-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.85);
}

.vs-confidence-ring:hover .confidence-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Pulse animation on high confidence */
.confidence-ring-progress.confidence-high {
    animation: confidence-pulse 2s ease-in-out infinite;
}

@keyframes confidence-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8));
    }
}

/* ============================================
   2. COMPETITIVE TENSION BAR
   Shows matchup balance/spread
   ============================================ */
.tension-bar-container {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.tension-bar-wrapper {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .tension-bar-wrapper {
    background: rgba(0, 0, 0, 0.3);
}

/* The tension fill - positioned from center */
.tension-bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Away team favored (fills from center to left) */
.tension-bar-fill.away-favored {
    right: 50%;
    background: linear-gradient(90deg, var(--tension-away), rgba(99, 102, 241, 0.6));
    border-radius: 4px 0 0 4px;
}

/* Home team favored (fills from center to right) */
.tension-bar-fill.home-favored {
    left: 50%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.6), var(--tension-home));
    border-radius: 0 4px 4px 0;
}

/* Even matchup indicator */
.tension-bar-fill.even-matchup {
    left: 45%;
    width: 10% !important;
    background: var(--tension-neutral);
    border-radius: 4px;
}

/* Center line */
.tension-bar-center {
    position: absolute;
    left: 50%;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
    z-index: 2;
}

[data-theme="dark"] .tension-bar-center {
    background: rgba(255, 255, 255, 0.3);
}

/* Team indicators */
.tension-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tension-label {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.tension-label.favored {
    color: var(--accent-primary);
}

.tension-label.away.favored {
    color: var(--tension-away);
}

/* Spread value indicator */
.tension-spread {
    position: absolute;
    top: -20px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tension-bar-container:hover .tension-spread {
    opacity: 1;
}

/* Animated shine effect on hover */
.tension-bar-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.tension-bar-container:hover .tension-bar-wrapper::after {
    left: 100%;
}

/* ============================================
   3. FEATURED MATCHUP HERO
   Premium treatment for top matchup
   ============================================ */
.featured-matchup-hero {
    position: relative;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        var(--hero-gradient-start) 0%,
        transparent 50%,
        var(--hero-gradient-end) 100%
    );
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

[data-theme="dark"] .featured-matchup-hero {
    background: linear-gradient(
        135deg,
        var(--hero-gradient-start) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        var(--hero-gradient-end) 100%
    );
    border-color: rgba(255, 255, 255, 0.05);
}

/* Animated background pattern */
.featured-matchup-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: hero-bg-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-bg-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Hero badge */
.hero-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-primary), #059669);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.hero-badge i {
    font-size: 0.65rem;
}

/* Hero content layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero team display */
.hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-team.away {
    align-items: flex-end;
    text-align: right;
}

.hero-team.home {
    align-items: flex-start;
    text-align: left;
}

.hero-team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 20px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

[data-theme="dark"] .hero-team-logo {
    background: rgba(50, 50, 50, 0.9);
}

.featured-matchup-hero:hover .hero-team-logo {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(16, 185, 129, 0.3);
}

.hero-team-name {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-team-record {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero center section */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-vs-ring {
    width: 80px;
    height: 80px;
}

.hero-vs-ring .confidence-ring-svg {
    width: 80px;
    height: 80px;
}

.hero-vs-ring .confidence-ring-bg,
.hero-vs-ring .confidence-ring-progress {
    /* Larger ring: radius 36, circumference ≈ 226.2 */
    stroke-width: 4;
}

.hero-vs-ring .confidence-ring-progress {
    stroke-dasharray: 226.2;
    stroke-dashoffset: 226.2;
}

.hero-vs-ring .vs-text {
    font-size: 1.1rem;
}

.hero-game-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-venue {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero stats preview */
.hero-stats-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-stats-preview {
    border-color: rgba(255, 255, 255, 0.05);
}

.hero-stat {
    text-align: center;
}

.hero-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hero-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.hero-stat-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-stat-comparison .away-val {
    color: var(--tension-away);
}

.hero-stat-comparison .home-val {
    color: var(--accent-primary);
}

/* Hero tension bar */
.hero-tension-bar {
    margin-top: 1.5rem;
}

.hero-tension-bar .tension-bar-wrapper {
    height: 12px;
}

.hero-tension-bar .tension-labels {
    font-size: 0.75rem;
}

/* Hero CTA button */
.hero-cta {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-primary), #059669);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.hero-cta i {
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(3px);
}

/* Responsive hero */
@media (max-width: 768px) {
    .featured-matchup-hero {
        padding: 1.5rem 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-team {
        flex-direction: row;
        gap: 1rem;
    }

    .hero-team.away,
    .hero-team.home {
        align-items: center;
        text-align: left;
    }

    .hero-team-logo {
        width: 60px;
        height: 60px;
        padding: 12px;
    }

    .hero-team-name {
        margin-top: 0;
        font-size: 1.2rem;
    }

    .hero-center {
        order: -1;
    }

    .hero-stats-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-cta {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ============================================
   4. CARD INTEGRATION
   Updates to existing matchup cards
   ============================================ */

/* Replace the basic VS indicator with confidence ring */
.matchup-card-glass .vs-indicator {
    /* Keep for backwards compatibility but hide default */
}

.matchup-card-glass .vs-unified {
    display: none; /* Hide when using confidence ring */
}

.matchup-card-glass .vs-confidence-ring .vs-unified,
.matchup-card-glass .vs-confidence-ring .vs-text {
    display: block;
}

/* Add tension bar to card */
.matchup-card-glass .tension-bar-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

[data-theme="dark"] .matchup-card-glass .tension-bar-container {
    border-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   5. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .confidence-ring-progress {
        transition: none;
        animation: none;
    }

    .tension-bar-fill {
        transition: none;
    }

    .featured-matchup-hero::before {
        animation: none;
    }

    .tension-bar-wrapper::after {
        display: none;
    }
}

/* ============================================
   6. LOADING STATES
   ============================================ */
.confidence-ring-progress.loading {
    animation: ring-loading 1.5s ease-in-out infinite;
}

@keyframes ring-loading {
    0% {
        stroke-dashoffset: 150.8;
    }
    50% {
        stroke-dashoffset: 75;
    }
    100% {
        stroke-dashoffset: 150.8;
    }
}

.tension-bar-fill.loading {
    width: 50% !important;
    animation: bar-loading 1.5s ease-in-out infinite;
}

@keyframes bar-loading {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}
