/* Career Stats Section
 * Modern/minimal design for player profile career statistics
 * Uses theme variables for dark mode support
 */

/* ============================================
   SECTION CONTAINER
   ============================================ */
.career-stats-section {
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Stats Mode section (throw-by-throw career stats) */
.stats-mode-section {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--surface-1);
    border: 1px solid var(--surface-border);
}

.stats-mode-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stats-mode-section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.stats-mode-section__rounds {
    font-size: 0.85rem;
    color: var(--theme-muted);
}

.stats-mode-section__headlines {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.stats-mode-stat {
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--surface-0);
    border: 1px solid var(--surface-border);
}

.stats-mode-stat__label {
    font-size: 0.8rem;
    color: var(--theme-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-mode-stat__value {
    margin-top: 0.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--theme-text);
}

.stats-mode-stat__sub {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--theme-muted);
}

.stats-mode-section__details {
    margin-top: 0.75rem;
}

.stats-mode-section__summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--theme-text);
}

.stats-mode-windows {
    margin-top: 0.75rem;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    overflow: hidden;
}

.stats-mode-windows__header,
.stats-mode-windows__row {
    display: grid;
    grid-template-columns: 120px repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stats-mode-windows__header {
    background: var(--surface-0);
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    color: var(--theme-muted);
    font-weight: 700;
}

.stats-mode-windows__row {
    padding: 0.65rem 0.75rem;
    border-top: 1px solid var(--surface-border);
    font-size: 0.9rem;
}

.stats-mode-windows__window {
    font-weight: 700;
}

.stats-mode-windows__metric {
    color: var(--theme-text);
}

.stats-mode-section__caveat {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--theme-muted);
}

@media (max-width: 900px) {
    .stats-mode-section__headlines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-mode-windows__header,
    .stats-mode-windows__row {
        grid-template-columns: 100px repeat(4, minmax(0, 1fr));
    }
}

.career-stats-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--theme-border-color);
}

.career-stats-section__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0;
}

.career-stats-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--theme-success);
    background: rgba(34, 197, 94, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.career-stats-section__badge--flipt {
    color: var(--theme-info);
    background: rgba(59, 130, 246, 0.1);
}

.career-stats-section__badge--leagues {
    color: var(--theme-warning);
    background: rgba(251, 146, 60, 0.1);
}

/* ============================================
   DATA SOURCE TOGGLE
   ============================================ */
.career-stats-section__toggle {
    display: flex;
    background: var(--theme-surface-2);
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
}

.career-stats-toggle {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.career-stats-toggle:hover {
    color: var(--theme-text-primary);
    background: var(--theme-surface-3);
}

.career-stats-toggle--active {
    color: var(--theme-text-primary);
    background: var(--theme-surface-1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.career-stats-toggle--active:hover {
    background: var(--theme-surface-1);
}

/* ============================================
   SCORING DISTRIBUTION
   ============================================ */
.career-stats-distribution {
    margin-bottom: 1.5rem;
}

.career-stats-distribution__title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin: 0 0 0.75rem 0;
}

.career-stats-distribution__chart {
    display: flex;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--theme-surface-2);
    gap: 1px;
}

.distribution-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.distribution-bar:hover {
    filter: brightness(1.1);
}

.distribution-bar__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

/* Distribution bar colors */
.distribution-bar--ace {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.distribution-bar--eagle {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.distribution-bar--birdie {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.distribution-bar--par {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.distribution-bar--bogey {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.distribution-bar--double {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.career-stats-distribution__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--theme-text-secondary);
}

.legend-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-item--eagle::before {
    background: #a855f7;
}

.legend-item--birdie::before {
    background: #22c55e;
}

.legend-item--par::before {
    background: #3b82f6;
}

.legend-item--bogey::before {
    background: #f97316;
}

.legend-item--double::before {
    background: #ef4444;
}

.career-stats-distribution__avg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--theme-border-color);
}

.avg-score-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
}

.avg-score-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.avg-score-value--under {
    color: var(--theme-success);
}

.avg-score-value--over {
    color: #ef4444;
}

/* ============================================
   METRICS GRID
   ============================================ */
.career-stats-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.career-stat-metric {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--theme-surface-2);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.career-stat-metric:hover {
    transform: translateY(-2px);
}

.career-stat-metric__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    line-height: 1.2;
}

.career-stat-metric__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.career-stat-metric--highlight .career-stat-metric__value {
    color: var(--theme-success);
}

.career-stat-metric--accent .career-stat-metric__value {
    color: var(--theme-info);
}

.career-stat-metric--gold .career-stat-metric__value {
    color: #fbbf24;
}

/* ============================================
   WIN/PODIUM RATES
   ============================================ */
.career-stats-rates {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--theme-surface-2);
    border-radius: 8px;
}

.career-rate {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.career-rate__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-success);
}

.career-rate__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   CONSISTENCY METRICS
   ============================================ */
.career-stats-consistency {
    background: var(--theme-surface-2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.career-stats-consistency__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0 0 0.75rem 0;
}

.career-stats-consistency__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

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

.consistency-stat__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.consistency-stat__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.consistency-stat__value--positive {
    color: var(--theme-success);
}

.consistency-stat__value--negative {
    color: #ef4444;
}

/* ============================================
   PERFORMANCE TREND
   ============================================ */
.career-stats-trend {
    background: var(--theme-surface-2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.career-stats-trend__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.career-stats-trend__title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
}

.career-stats-trend__indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.career-stats-trend__indicator--improving {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.career-stats-trend__indicator--declining {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.career-stats-trend__indicator--stable {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.career-stats-trend__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--theme-border-color);
}

.career-stats-trend__label {
    font-size: 0.8rem;
    color: var(--theme-text-secondary);
}

.career-stats-trend__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.career-stats-trend__value--positive {
    color: #22c55e;
}

.career-stats-trend__value--negative {
    color: #ef4444;
}

.career-stats-trend__value--neutral {
    color: var(--theme-text-secondary);
}

/* ============================================
   BEST PERFORMANCES
   ============================================ */
.career-stats-bests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.career-best {
    background: var(--theme-surface-2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.career-best__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.career-best__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    line-height: 1.2;
}

.career-best__context {
    display: block;
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
    margin-top: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   CURRENT SEASON
   ============================================ */
.career-stats-season {
    background: linear-gradient(135deg, var(--theme-surface-2), var(--theme-surface-1));
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.career-stats-season__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0 0 0.75rem 0;
}

.career-stats-season__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

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

.season-stat__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.season-stat__label {
    display: block;
    font-size: 0.65rem;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   FOOTER
   ============================================ */
.career-stats-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--theme-border-color);
    font-size: 0.7rem;
    color: var(--theme-text-tertiary);
}

.career-stats-footer__holes {
    font-weight: 500;
}

.career-stats-footer__updated {
    opacity: 0.7;
}

/* ============================================
   SKELETON LOADING STATE
   ============================================ */
.career-stats-skeleton {
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.career-stats-skeleton__bar {
    height: 32px;
    background: var(--theme-surface-2);
    border-radius: 6px;
    margin-bottom: 1rem;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.career-stats-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.career-stats-skeleton__item {
    height: 60px;
    background: var(--theme-surface-2);
    border-radius: 8px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

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

/* ============================================
   LEAGUE ROUND PERFORMANCE
   ============================================ */
.career-stats-league-performance {
    background: var(--theme-surface-2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.career-stats-league-performance__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0 0 1rem 0;
}

.career-stats-league-performance__title i {
    color: #fbbf24;
}

/* Placement Stats Grid */
.league-placement-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.placement-stat {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--theme-surface-1);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.placement-stat:hover {
    transform: translateY(-2px);
}

.placement-stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    line-height: 1.2;
}

.placement-stat--wins .placement-stat__value {
    color: #fbbf24;
}

.placement-stat--podiums .placement-stat__value {
    color: #22c55e;
}

.placement-stat__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.placement-stat__label i {
    font-size: 0.65rem;
    opacity: 0.8;
}

.placement-stat--wins .placement-stat__label i {
    color: #fbbf24;
}

.placement-stat--podiums .placement-stat__label i {
    color: #22c55e;
}

.placement-stat__rate {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--theme-text-tertiary);
    margin-top: 0.25rem;
}

/* League Streaks */
.league-streaks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    background: var(--theme-surface-1);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.streak-badge i {
    font-size: 0.7rem;
    color: var(--theme-text-tertiary);
}

.streak-badge--hot {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
}

.streak-badge--hot i {
    color: #f97316;
}

/* Performance Chart */
.performance-chart {
    background: var(--theme-surface-1);
    border-radius: 8px;
    padding: 1rem;
}

.performance-chart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.performance-chart__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.performance-chart__title i {
    color: #3b82f6;
}

.performance-chart__period {
    font-size: 0.7rem;
    color: var(--theme-text-tertiary);
}

/* SVG Chart Container (legacy) */
.performance-chart__svg-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.performance-chart__svg {
    width: 100%;
    height: auto;
    min-height: 100px;
}

/* Chart.js Canvas Container */
.performance-chart__canvas-container {
    width: 100%;
    height: 120px;
    margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
    .performance-chart__canvas-container {
        height: 80px;
    }
}

/* Chart axis labels */
.chart-axis-label {
    font-size: 8px;
    fill: var(--theme-text-secondary);
    font-family: var(--theme-font-family, system-ui, sans-serif);
    font-weight: 500;
}

/* Chart grid lines */
.chart-grid-line {
    stroke: var(--theme-border-color);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
    opacity: 0.5;
}

/* Chart data points */
.chart-data-point {
    cursor: pointer;
    transition: r 0.15s ease, stroke-width 0.15s ease;
}

.chart-data-point:hover {
    r: 4;
    stroke-width: 1.5;
}

/* Custom chart tooltip */
.chart-tooltip {
    position: absolute;
    background: var(--theme-surface-2);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    white-space: nowrap;
}

.chart-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--theme-surface-2);
}

.chart-tooltip__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3b82f6;
    text-align: center;
}

.chart-tooltip__date {
    display: block;
    font-size: 0.7rem;
    color: var(--theme-text-secondary);
    text-align: center;
    margin-top: 0.15rem;
}

/* Performance chart callout */
.performance-chart__callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--theme-surface-2);
    border-radius: 6px;
}

.callout-label {
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
}

.callout-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.callout-value--good {
    color: #22c55e;
}

.callout-value--bad {
    color: #ef4444;
}

.callout-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.callout-trend--up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.callout-trend--down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.callout-trend i {
    font-size: 0.65rem;
}

/* Legacy legend dots (kept for compatibility) */
.legend-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.legend-dot--wins::before {
    background: #fbbf24;
}

.legend-dot--podiums::before {
    background: #22c55e;
}

/* ============================================
   STATS MODE BANNER
   Promotional and status banner for PDGA throw tracking
   ============================================ */
.stats-mode-banner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stats-mode-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 1rem;
}

.stats-mode-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.stats-mode-banner__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.stats-mode-banner__detail {
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0.85;
}

.stats-mode-banner__badge {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.stats-mode-banner__cta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.stats-mode-banner__cta i {
    font-size: 0.625rem;
}

/* Active variant - player has throw data */
.stats-mode-banner--active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.stats-mode-banner--active .stats-mode-banner__icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--theme-success, #10b981);
}

.stats-mode-banner--active .stats-mode-banner__title {
    color: var(--theme-success, #10b981);
}

.stats-mode-banner--active .stats-mode-banner__detail {
    color: var(--theme-text-secondary);
}

.stats-mode-banner--active .stats-mode-banner__badge {
    color: var(--theme-success, #10b981);
}

/* Promo variant - encourage enabling stats */
.stats-mode-banner--promo {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
}

.stats-mode-banner--promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stats-mode-banner--promo:hover::before {
    opacity: 1;
}

.stats-mode-banner--promo:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.stats-mode-banner--promo .stats-mode-banner__icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    color: var(--theme-info, #3b82f6);
}

.stats-mode-banner--promo .stats-mode-banner__title {
    color: var(--theme-info, #3b82f6);
}

.stats-mode-banner--promo .stats-mode-banner__detail {
    color: var(--theme-text-secondary);
}

.stats-mode-banner--promo .stats-mode-banner__cta {
    background: rgba(59, 130, 246, 0.12);
    color: var(--theme-info, #3b82f6);
}

.stats-mode-banner--promo:hover .stats-mode-banner__cta {
    background: rgba(59, 130, 246, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .career-stats-section {
        padding: 1rem;
    }

    .career-stats-section__header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .career-stats-section__toggle {
        width: 100%;
    }

    .career-stats-toggle {
        flex: 1;
        text-align: center;
    }

    .career-stats-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .career-stat-metric__value {
        font-size: 1.25rem;
    }

    .career-stats-rates {
        flex-direction: column;
        gap: 0.75rem;
    }

    .career-rate {
        justify-content: space-between;
    }

    .career-stats-consistency__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .consistency-stat__value {
        font-size: 1rem;
    }

    .career-stats-season__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .career-stats-bests {
        grid-template-columns: 1fr;
    }

    .career-stats-footer {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    /* League Performance Mobile */
    .league-placement-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .placement-stat__value {
        font-size: 1.25rem;
    }

    .performance-chart__bars {
        height: 80px;
    }

    .chart-bar__label {
        font-size: 0.55rem;
    }

    /* Stats Mode Banner Mobile */
    .stats-mode-banner {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .stats-mode-banner__icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .stats-mode-banner__title {
        font-size: 0.8rem;
    }

    .stats-mode-banner__detail {
        font-size: 0.7rem;
    }

    .stats-mode-banner__cta {
        padding: 0.3rem 0.625rem;
        font-size: 0.7rem;
    }
}
