/**
 * QB Profile Page Styles - Team-Colored Hero Edition
 *
 * Dynamic team-colored hero with clean white content cards below
 * Typography: Space Grotesk (display) + JetBrains Mono (data)
 *
 * @package NFL_Rankings_Importer
 * @since 2.0.0
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    /* Typography */
    --qb-font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --qb-font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    --qb-font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Light Theme Base */
    --qb-bg: #f8f9fc;
    --qb-surface: #ffffff;
    --qb-card: #ffffff;
    --qb-border: #e2e4e9;
    --qb-border-light: #eef0f4;

    /* Text Colors */
    --qb-text: #1a1d26;
    --qb-text-secondary: #4a4f5c;
    --qb-text-muted: #525866; /* Darkened for WCAG AA contrast */
    --qb-text-light: rgba(255, 255, 255, 0.95);
    --qb-text-light-secondary: rgba(255, 255, 255, 0.75);

    /* Rating Tier Colors - WCAG AA compliant (4.5:1 minimum) */
    --qb-tier-elite: #6d28d9; /* Darkened from #7c3aed */
    --qb-tier-great: #1d4ed8; /* Darkened from #2563eb */
    --qb-tier-good: #047857;  /* Darkened for WCAG AA on tinted bg */
    --qb-tier-average: #92400e; /* Darkened for WCAG AA on tinted bg */
    --qb-tier-poor: #dc2626;  /* Darkened from #ef4444 */

    /* Shadows */
    --qb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --qb-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --qb-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    --qb-shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16), 0 8px 20px rgba(0, 0, 0, 0.08);

    /* Layout */
    --qb-container: 1200px;
    --qb-radius: 12px;
    --qb-radius-lg: 16px;
    --qb-radius-xl: 24px;

    /* Transitions */
    --qb-transition: 0.2s ease;
    --qb-transition-slow: 0.3s ease;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
.qb-profile-wrap {
    font-family: var(--qb-font-body);
    font-size: 16px;
    background: var(--qb-bg);
    color: var(--qb-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.qb-profile-wrap *,
.qb-profile-wrap *::before,
.qb-profile-wrap *::after {
    box-sizing: border-box;
}

.qb-container {
    max-width: var(--qb-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.qb-breadcrumbs {
    display: none; /* Hidden visually - SEO benefit comes from JSON-LD structured data */
    background: var(--qb-surface);
    border-bottom: 1px solid var(--qb-border);
    padding: 7px 0;
    font-size: 14px;
    font-weight: 500;
}

.qb-breadcrumbs a {
    color: var(--qb-text-secondary);
    text-decoration: none;
    transition: color var(--qb-transition);
}

.qb-breadcrumbs a:hover {
    color: var(--team-primary);
}

.qb-breadcrumbs .separator {
    margin: 0 10px;
    color: var(--qb-text-muted);
}

.qb-breadcrumbs .current {
    color: var(--qb-text);
    font-weight: 600;
}

/* ==========================================================================
   Hero Section - Team Colored
   ========================================================================== */
.qb-hero {
    position: relative;
    background: linear-gradient(135deg, var(--team-primary) 0%, color-mix(in srgb, var(--team-primary) 85%, black) 100%);
    padding: 24px 0 26px;
    overflow: hidden;
}

/* Diagonal stripe pattern */
.qb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.03) 40px,
        rgba(255, 255, 255, 0.03) 80px
    );
    pointer-events: none;
}

/* Secondary color accent bar */
.qb-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--team-secondary);
}

.qb-hero-content {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    z-index: 2;
}

/* Player Photo */
.qb-player-photo {
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qb-player-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.qb-player-photo img,
.qb-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qb-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.qb-silhouette {
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px 40px 20px 20px;
}

/* Team logo as placeholder */
.qb-team-logo-placeholder {
    padding: 20px;
}

.qb-team-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Similar QBs team logo */
.qb-similar-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Player Info */
.qb-player-info {
    min-width: 0;
}

.qb-player-name {
    font-family: var(--qb-font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--qb-text-light);
    margin: 0 0 8px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.qb-player-meta {
    margin-bottom: 16px;
}

.qb-team-link {
    font-family: var(--qb-font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--qb-text-light-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--qb-transition);
}

.qb-team-link:hover {
    color: var(--qb-text-light);
}

/* Badges - Unified style matching .qb-scouting-badge */
.qb-player-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.qb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--qb-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.qb-badge-starter {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.qb-badge-retired {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.qb-badge-injured {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.qb-badge-experience {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

/* Hero Highlight Badge (Historical QBs) - aligned under other badges */
.qb-highlight-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.qb-badge-highlight {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.qb-badge-highlight .qb-highlight-icon {
    font-size: 14px;
    margin-right: 2px;
}

/* Quick Stats Row */
.qb-quick-stats {
    display: flex;
    gap: 32px;
}

.qb-quick-stat {
    display: flex;
    flex-direction: column;
}

.qb-quick-stat-value {
    font-family: var(--qb-font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--qb-text-light);
    line-height: 1;
    letter-spacing: -0.02em;
}

.qb-quick-stat-label {
    font-family: var(--qb-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--qb-text-light-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

/* Overall Rating Badge */
.qb-overall-rating {
    display: block;
    background: var(--qb-surface);
    border-radius: var(--qb-radius-lg);
    padding: 18px 32px;
    text-align: center;
    box-shadow: var(--qb-shadow-xl);
    min-width: 160px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Clickable rating card for active QBs */
a.qb-rating-clickable {
    cursor: pointer;
}

a.qb-rating-clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.qb-rating-possessive {
    font-family: var(--qb-font-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--qb-text-muted);
    margin-bottom: 2px;
}

.qb-rating-title {
    font-family: var(--qb-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--team-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.qb-rating-subtitle {
    font-family: var(--qb-font-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--qb-text-muted);
    margin-top: 6px;
    margin-bottom: 0;
}

.qb-rating-subtitle strong {
    font-weight: 700;
    color: var(--qb-text);
}

.qb-rating-score {
    font-family: var(--qb-font-mono);
    font-size: 39px;
    font-weight: 700;
    color: var(--qb-text);
    line-height: 1;
    letter-spacing: -0.03em;
}

.qb-rating-label {
    font-family: var(--qb-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--team-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 8px;
}

.qb-rating-rank {
    font-family: var(--qb-font-mono);
    font-size: 14px;
    color: var(--qb-text-secondary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--qb-border);
    letter-spacing: 0.02em;
}

.qb-rank-link {
    color: var(--team-primary);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.qb-rank-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.qb-main-content {
    padding: 20px 0 36px;
}

.qb-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* ==========================================================================
   Cards - Clean White Style
   ========================================================================== */
.qb-card {
    background: var(--qb-card);
    border-radius: var(--qb-radius-lg);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--qb-shadow);
    border: 1px solid var(--qb-border-light);
    transition: box-shadow var(--qb-transition), transform var(--qb-transition);
}

.qb-card:hover {
    box-shadow: var(--qb-shadow-lg);
}

.qb-card-title {
    font-family: var(--qb-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--qb-text);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--qb-border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

/* Section icons in card titles */
.qb-section-icon {
    flex-shrink: 0;
    color: var(--team-primary);
    opacity: 0.9;
}

/* ==========================================================================
   AI Scouting Report Card
   ========================================================================== */
.qb-ai-card {
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent */
.qb-ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--team-primary), var(--team-secondary), var(--team-primary));
    background-size: 200% 100%;
}

/* Card header with title and badge */
.qb-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.qb-card-header .qb-card-title {
    margin-bottom: 0;
}

/* Scouting report badge - matches Ask AI style */
.qb-scouting-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-family: var(--qb-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--team-primary) 75%, black); /* Darkened for contrast */
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    border-radius: 20px;
    white-space: nowrap;
}

/* Legacy AI badge - now matches unified style */
.qb-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--qb-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 20px;
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    color: var(--team-primary);
    white-space: nowrap;
}

.qb-ai-updated {
    font-family: var(--qb-font-mono);
    font-size: 14px;
    color: var(--qb-text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.qb-ai-blurb {
    font-size: 16px;
    line-height: 1.75;
    color: var(--qb-text-secondary);
}

.qb-ai-blurb p {
    margin: 0 0 16px;
}

.qb-ai-blurb p:last-child {
    margin-bottom: 0;
}

.qb-ai-blurb strong {
    color: var(--qb-text);
    font-weight: 600;
}

.qb-ai-placeholder {
    font-size: 16px;
    font-style: italic;
    color: var(--qb-text-muted);
    padding: 24px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    text-align: center;
}

/* ==========================================================================
   QB Today - Dynamic Content Section (2.2.0)
   ========================================================================== */
.qb-today-card {
    position: relative;
    overflow: hidden;
}

.qb-today-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--team-primary), var(--team-secondary), var(--team-primary));
    background-size: 200% 100%;
}

/* Scenario-specific accent colors */
.qb-today-card.qb-today--playoffs::before {
    background: linear-gradient(90deg, #10b981, #059669, #10b981);
}

.qb-today-card.qb-today--eliminated::before {
    background: linear-gradient(90deg, #6b7280, #4b5563, #6b7280);
}

.qb-today-card.qb-today--injured::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
}

.qb-today-card.qb-today--free-agent::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed, #8b5cf6);
}

/* QB Today Badge */
.qb-today-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-family: var(--qb-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--team-primary);
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    border-radius: 20px;
    white-space: nowrap;
}

/* HeyTC AI badge - uses team colors to match .qb-scouting-badge */
.qb-today-badge--heytc {
    color: var(--team-primary);
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
}

/* Scenario-specific badge colors (kept for potential future use) */
.qb-today-badge--playoff_game {
    color: #059669;
    background: color-mix(in srgb, #10b981 15%, transparent);
}

.qb-today-badge--bye_week {
    color: #0891b2;
    background: color-mix(in srgb, #06b6d4 15%, transparent);
}

.qb-today-badge--eliminated,
.qb-today-badge--season_over,
.qb-today-badge--offseason {
    color: #4b5563;
    background: color-mix(in srgb, #6b7280 15%, transparent);
}

.qb-today-badge--injured_reserve {
    color: #dc2626;
    background: color-mix(in srgb, #ef4444 15%, transparent);
}

.qb-today-badge--free_agent {
    color: #7c3aed;
    background: color-mix(in srgb, #8b5cf6 15%, transparent);
}

.qb-today-badge--rookie {
    color: #d97706;
    background: color-mix(in srgb, #f59e0b 15%, transparent);
}

/* Playoff Game Matchup Header */
.qb-today-matchup {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: color-mix(in srgb, #10b981 8%, var(--qb-bg));
    border-radius: var(--qb-radius);
    font-family: var(--qb-font-body);
}

.qb-today-matchup-vs {
    font-size: 13px;
    font-weight: 500;
    color: var(--qb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qb-today-matchup-opponent {
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text);
}

.qb-today-matchup-time {
    margin-left: auto;
    font-size: 14px;
    color: var(--qb-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.qb-today-matchup-channel {
    padding: 2px 8px;
    background: var(--qb-card-bg);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--team-primary);
}

/* Game Result Header (just played) */
.qb-today-result {
    background: var(--qb-bg);
}

.qb-today-result--win {
    background: color-mix(in srgb, #10b981 12%, var(--qb-bg));
}

.qb-today-result--loss {
    background: color-mix(in srgb, #ef4444 8%, var(--qb-bg));
}

.qb-today-result-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.qb-today-result-badge--win {
    background: #10b981;
    color: white;
}

.qb-today-result-badge--loss {
    background: #ef4444;
    color: white;
}

.qb-today-result-score {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--qb-font-display);
    color: var(--qb-text);
}

/* Content Styles */
.qb-today-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--qb-text-secondary);
}

.qb-today-content strong,
.qb-today-content b {
    color: var(--qb-text);
    font-weight: 600;
}

.qb-today-content em,
.qb-today-content i {
    font-style: italic;
}

.qb-today-placeholder {
    font-size: 16px;
    font-style: italic;
    color: var(--qb-text-muted);
    padding: 24px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .qb-today-matchup {
        flex-wrap: wrap;
        gap: 8px;
    }

    .qb-today-matchup-time {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Rating Breakdown - Grid Layout (matches actual HTML)
   ========================================================================== */
.qb-rating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.qb-rating-grid .qb-rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    transition: background var(--qb-transition);
}

.qb-rating-grid .qb-rating-item:hover {
    background: var(--qb-border-light);
}

.qb-rating-grid .qb-rating-item-label {
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text);
}

.qb-rating-grid .qb-rating-item-value {
    font-family: var(--qb-font-mono);
    font-size: 16px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: capitalize;
}

/* Rating Tier Colors */
.qb-rating-elite,
.qb-rating-aura {
    background: rgba(124, 58, 237, 0.12);
    color: var(--qb-tier-elite);
}

.qb-rating-great,
.qb-rating-sigma {
    background: rgba(37, 99, 235, 0.12);
    color: var(--qb-tier-great);
}

.qb-rating-good,
.qb-rating-slaps {
    background: rgba(16, 185, 129, 0.12);
    color: var(--qb-tier-good);
}

.qb-rating-average,
.qb-rating-mid {
    background: rgba(245, 158, 11, 0.12);
    color: var(--qb-tier-average);
}

.qb-rating-poor,
.qb-rating-cooked {
    background: rgba(239, 68, 68, 0.12);
    color: var(--qb-tier-poor);
}

/* Years with team text */
.qb-years-with-team {
    font-family: var(--qb-font-mono);
    font-size: 14px;
    color: var(--qb-text-muted);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--qb-border-light);
    text-align: center;
}

/* ==========================================================================
   Stats Grid (matches actual HTML structure)
   ========================================================================== */
.qb-stats-card .qb-stats-updated {
    font-family: var(--qb-font-mono);
    font-size: 14px;
    color: var(--qb-text-muted);
    margin-bottom: 20px;
}

.qb-stats-source {
    font-family: var(--qb-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--qb-text-muted);
    background: var(--qb-bg);
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: auto;
    white-space: nowrap;
}

.qb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.qb-stats-grid:last-child {
    margin-bottom: 0;
}

.qb-stat-item {
    background: var(--qb-bg);
    padding: 20px;
    border-radius: var(--qb-radius);
    text-align: center;
    transition: background var(--qb-transition), transform var(--qb-transition);
}

.qb-stat-item:hover {
    background: var(--qb-border-light);
    transform: translateY(-2px);
}

.qb-stat-value {
    display: block;
    font-family: var(--qb-font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--qb-text);
    line-height: 1;
    margin-bottom: 8px;
}

.qb-stat-label {
    display: block;
    font-family: var(--qb-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--qb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* AIQB Rating highlight */
.qb-stat-aiqb {
    background: color-mix(in srgb, var(--team-primary) 8%, white);
    border: 1px solid color-mix(in srgb, var(--team-primary) 20%, transparent);
}

.qb-stat-aiqb .qb-stat-value {
    color: var(--team-primary);
}

/* Stats section label */
.qb-stats-section-label {
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--qb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--qb-border-light);
}

/* Stats loading placeholder */
.qb-stats-loading {
    font-size: 16px;
    color: var(--qb-text-muted);
    text-align: center;
    padding: 32px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
}

/* ==========================================================================
   Career History
   ========================================================================== */
.qb-career-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qb-career-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    transition: background var(--qb-transition), transform var(--qb-transition);
}

.qb-career-item:hover {
    background: var(--qb-border-light);
    transform: translateX(4px);
}

.qb-career-item.current {
    background: color-mix(in srgb, var(--team-primary) 8%, white);
    border: 1px solid color-mix(in srgb, var(--team-primary) 20%, transparent);
}

.qb-career-team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--qb-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--qb-shadow-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.qb-career-team-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.qb-career-info {
    flex: 1;
    min-width: 0;
}

.qb-career-team-name {
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text);
    margin-bottom: 2px;
}

.qb-career-years {
    font-family: var(--qb-font-mono);
    font-size: 14px;
    color: var(--qb-text-secondary);
}

.qb-career-current-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--qb-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 20px;
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    color: var(--team-primary);
    white-space: nowrap;
}

/* ==========================================================================
   Timeline Accordion (WordPress 6.9 Style)
   ========================================================================== */
.qb-timeline-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Year group (details/summary) */
.qb-timeline-year-group {
    border: 1px solid var(--qb-border-light);
    border-radius: var(--qb-radius);
    background: var(--qb-surface);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.qb-timeline-year-group:hover {
    border-color: var(--qb-border);
}

.qb-timeline-year-group[open] {
    border-color: var(--team-primary);
    background: var(--qb-card);
}

/* Year header (summary) */
.qb-timeline-year-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.15s ease;
}

.qb-timeline-year-header::-webkit-details-marker {
    display: none;
}

.qb-timeline-year-header:hover {
    background: var(--qb-bg);
}

.qb-timeline-year-label {
    font-family: var(--qb-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--qb-text);
    flex: 1;
}

.qb-timeline-year-group[open] .qb-timeline-year-label {
    color: color-mix(in srgb, var(--team-primary) 80%, black); /* Darkened for contrast */
}

.qb-timeline-event-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-family: var(--qb-font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--qb-text-muted);
    background: var(--qb-bg);
    border-radius: 12px;
}

.qb-timeline-year-group[open] .qb-timeline-event-count {
    background: color-mix(in srgb, var(--team-primary) 15%, transparent);
    color: var(--team-primary);
}

/* Chevron icon */
.qb-timeline-chevron {
    flex-shrink: 0;
    color: var(--qb-text-muted);
    transition: transform 0.25s ease;
}

.qb-timeline-year-group[open] .qb-timeline-chevron {
    transform: rotate(180deg);
    color: var(--team-primary);
}

/* Events container */
.qb-timeline-year-events {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual event */
.qb-timeline-event {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--qb-bg);
    border-radius: calc(var(--qb-radius) - 2px);
    border-left: 3px solid var(--qb-border);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.qb-timeline-event:hover {
    background: var(--qb-surface);
}

.qb-timeline-event.is-current {
    border-left-color: var(--team-primary);
    background: color-mix(in srgb, var(--team-primary) 5%, var(--qb-bg));
}

/* Event type colors */
.qb-timeline-event.timeline-award,
.qb-timeline-event.timeline-superbowl {
    border-left-color: #f59e0b;
}

.qb-timeline-event.timeline-playoffs {
    border-left-color: #10b981;
}

.qb-timeline-event.timeline-injury {
    border-left-color: #ef4444;
}

.qb-timeline-event.timeline-record,
.qb-timeline-event.timeline-milestone {
    border-left-color: #8b5cf6;
}

.qb-timeline-event.timeline-draft {
    border-left-color: #3b82f6;
}

/* Event icon */
.qb-timeline-event-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--qb-surface);
    border-radius: 8px;
    color: var(--team-primary);
}

.qb-timeline-event.is-current .qb-timeline-event-icon {
    background: var(--team-primary);
    color: white;
}

.qb-timeline-event-icon svg {
    width: 16px;
    height: 16px;
}

/* Event content */
.qb-timeline-event-content {
    flex: 1;
    min-width: 0;
}

.qb-timeline-event-title {
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.qb-timeline-event-desc {
    font-size: 16px;
    color: var(--qb-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Timeline summary */
.qb-timeline-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 600;
    color: color-mix(in srgb, var(--team-primary) 75%, black); /* Darkened for contrast */
    background: color-mix(in srgb, var(--team-primary) 8%, transparent);
    border-radius: var(--qb-radius);
}

.qb-timeline-summary svg {
    opacity: 0.7;
}

/* ==========================================================================
   Contract Section
   ========================================================================== */
.qb-contract-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.qb-contract-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    transition: background var(--qb-transition);
}

.qb-contract-item:hover {
    background: var(--qb-border-light);
}

.qb-contract-label {
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text-secondary);
}

.qb-contract-value {
    font-family: var(--qb-font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--qb-text);
}

/* Money values with accent color */
.qb-contract-money {
    color: var(--qb-tier-good); /* Uses WCAG compliant color */
}

.qb-contract-guaranteed {
    color: color-mix(in srgb, var(--team-primary) 80%, black); /* Darkened for contrast */
}

/* Status badges */
.qb-contract-signed {
    background: color-mix(in srgb, #10b981 12%, transparent);
    color: #10b981;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 14px;
}

.qb-contract-rookie {
    background: color-mix(in srgb, #3b82f6 12%, transparent);
    color: #3b82f6;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 14px;
}

.qb-contract-tag {
    background: color-mix(in srgb, #f59e0b 12%, transparent);
    color: #f59e0b;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 14px;
}

.qb-contract-free {
    background: color-mix(in srgb, #ef4444 12%, transparent);
    color: #ef4444;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 14px;
}

.qb-contract-placeholder {
    color: var(--qb-text-muted);
    font-size: 16px;
    text-align: center;
    padding: 32px 24px;
    margin: 0;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
}

/* ==========================================================================
   Ask AI Section - Refined Editorial (Apple/Stripe aesthetic)
   ========================================================================== */
.qb-ask-ai-card {
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 14px 24px;
    margin: 0;
}

.qb-ask-ai-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.qb-ask-ai-prompt {
    font-family: var(--qb-font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #1d1d1f;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.qb-ask-ai-prompt strong {
    font-weight: 600;
    color: #000;
}

/* Input row - Premium pill */
.qb-ai-input-row {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border: none;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qb-ai-input-row:hover {
    background: #ededf0;
}

.qb-ai-input-row:focus-within {
    background: #fff;
    box-shadow:
        0 0 0 2px var(--team-primary),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

.qb-ai-input {
    flex: 1;
    font-family: var(--qb-font-body) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    padding: 20px 28px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    letter-spacing: -0.01em;
    -webkit-appearance: none;
    appearance: none;
}

.qb-ai-input,
.qb-ai-input:focus,
.qb-ai-input:active,
.qb-ai-input::placeholder {
    font-family: var(--qb-font-body) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
}

.qb-ai-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.qb-ai-input::placeholder {
    color: #6e6e73;
    font-weight: 500;
    font-size: 20px;
}

/* Override browser autofill background */
.qb-ai-input:-webkit-autofill,
.qb-ai-input:-webkit-autofill:hover,
.qb-ai-input:-webkit-autofill:focus,
.qb-ai-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #1d1d1f !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

.qb-ai-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 6px;
    padding: 0;
    background: var(--team-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.qb-ai-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--team-primary) 40%, transparent);
}

.qb-ai-submit:active {
    transform: scale(0.96);
}

.qb-ai-submit svg {
    width: 22px;
    height: 22px;
}

/* Badge - Proper styled badge */
.qb-ask-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 14px;
    font-family: var(--qb-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--team-primary);
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    border-radius: 20px;
}

/* AI Response - Match container width like content below */
.qb-ai-response {
    position: relative;
    max-width: var(--qb-container);
    margin: 24px auto 0;
    padding: 28px 32px;
    background: #f8f8fa;
    border-radius: 16px;
    text-align: left;
    border-left: 4px solid var(--team-primary);
}

/* Copy button */
.qb-ai-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.qb-ai-copy-btn:hover {
    opacity: 1;
    color: #1d1d1f;
    border-color: #c5c5c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qb-ai-copy-btn.copied {
    color: #34c759;
    border-color: #34c759;
    opacity: 1;
}

.qb-ai-response-content {
    font-family: var(--qb-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: #1d1d1f;
}

.qb-ai-response-content p {
    margin: 0 0 16px 0;
}

.qb-ai-response-content p:last-child {
    margin-bottom: 0;
}

/* Hide raw URLs in response */
.qb-ai-response-content a {
    color: var(--team-primary);
    text-decoration: none;
    font-weight: 500;
}

.qb-ai-response-content a:hover {
    text-decoration: underline;
}

.qb-ai-disclaimer {
    margin: 16px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid #e5e5e7;
    font-family: var(--qb-font-body);
    font-size: 14px;
    color: #86868b;
    font-style: italic;
}

/* Loading state */
.qb-ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: var(--qb-container);
    margin: 24px auto 0;
    padding: 24px;
    background: #f8f8fa;
    border-radius: 16px;
    font-family: var(--qb-font-body);
    font-size: 16px;
    font-weight: 500;
    color: #6e6e73;
}

.qb-ai-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e5e5e7;
    border-top-color: var(--team-primary);
    border-radius: 50%;
    animation: qb-spin 0.8s linear infinite;
}

/* Error state */
.qb-ai-error {
    max-width: var(--qb-container);
    margin: 24px auto 0;
    padding: 20px 24px;
    background: #fef2f2;
    border-radius: 12px;
    font-family: var(--qb-font-body);
    font-size: 16px;
    color: #dc2626;
    text-align: center;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.qb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qb-sidebar .qb-card,
.qb-sidebar-card {
    margin-bottom: 0;
}

.qb-sidebar .qb-card-title {
    font-size: 18px;
}

/* ==========================================================================
   QB Vitals Widget
   ========================================================================== */
.qb-vitals-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qb-vitals-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--qb-border);
}

.qb-vitals-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.qb-vitals-item:first-child {
    padding-top: 0;
}

.qb-vitals-item dt {
    font-family: var(--qb-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--qb-text-muted);
    margin: 0;
}

.qb-vitals-item dd {
    font-family: var(--qb-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text);
    margin: 0;
    text-align: right;
}

.qb-vitals-note {
    font-size: 12px;
    font-weight: 400;
    color: var(--qb-text-muted);
}

.qb-vitals-deceased dd {
    color: var(--qb-text-muted);
}

.qb-wife-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: color-mix(in srgb, var(--team-primary) 80%, black); /* Darkened for contrast */
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.qb-wife-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.qb-wife-link svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* ==========================================================================
   Similar QBs Widget (matches actual HTML)
   ========================================================================== */
.qb-division-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--team-primary);
    margin: -8px 0 12px;
    padding: 4px 10px;
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    border-radius: var(--qb-radius);
    display: inline-block;
}

.qb-similar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qb-similar-qb {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    text-decoration: none;
    transition: all var(--qb-transition);
}

.qb-similar-qb:hover {
    background: var(--qb-border-light);
    transform: translateX(4px);
}

.qb-similar-qb-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--qb-bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-similar-qb-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qb-mini-silhouette {
    width: 24px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px 12px 6px 6px;
}

.qb-similar-qb-info {
    flex: 1;
    min-width: 0;
}

.qb-similar-qb-name {
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qb-similar-qb-team {
    font-family: var(--qb-font-mono);
    font-size: 14px;
    color: var(--qb-text-muted);
}

.qb-similar-qb-rating {
    font-family: var(--qb-font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--qb-text);
    padding: 4px 12px;
    background: var(--qb-surface);
    border-radius: 100px;
    box-shadow: var(--qb-shadow-sm);
}

/* Rating tier badges for similar QBs */
.qb-similar-qb-rating.tier-elite,
.qb-similar-qb-rating.tier-aura {
    color: var(--qb-tier-elite);
}

.qb-similar-qb-rating.tier-great,
.qb-similar-qb-rating.tier-sigma {
    color: var(--qb-tier-great);
}

.qb-similar-qb-rating.tier-good,
.qb-similar-qb-rating.tier-slaps {
    color: var(--qb-tier-good);
}

.qb-similar-qb-rating.tier-average,
.qb-similar-qb-rating.tier-mid {
    color: var(--qb-tier-average);
}

.qb-similar-qb-rating.tier-poor,
.qb-similar-qb-rating.tier-cooked {
    color: var(--qb-tier-poor);
}

/* ==========================================================================
   Teams Played For Widget (matches actual HTML)
   ========================================================================== */
.qb-teams-played {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qb-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: color-mix(in srgb, var(--qb-text) 5%, transparent);
    border-radius: 20px;
    text-decoration: none;
    color: var(--qb-text-secondary);
    font-family: var(--qb-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--qb-transition);
    white-space: nowrap;
}

.qb-team-badge:hover {
    background: color-mix(in srgb, var(--qb-text) 10%, transparent);
    color: var(--qb-text);
}

.qb-team-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.qb-team-badge.qb-team-current {
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    color: color-mix(in srgb, var(--team-primary) 75%, black); /* Darkened for contrast */
}

/* ==========================================================================
   Quick Links Widget (matches actual HTML)
   ========================================================================== */
.qb-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qb-quick-links li {
    margin: 0;
}

.qb-quick-links a {
    display: block;
    padding: 12px 16px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    text-decoration: none;
    color: color-mix(in srgb, var(--team-primary) 80%, black); /* Darkened for contrast */
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 500;
    transition: all var(--qb-transition);
}

.qb-quick-links a:hover {
    background: color-mix(in srgb, var(--team-primary) 10%, white);
    transform: translateX(4px);
}

/* ==========================================================================
   FAQ Section (SEO/GAEO Optimized)
   ========================================================================== */
.qb-faq-card {
    margin-top: 8px;
}

.qb-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qb-faq-item {
    border: 1px solid var(--qb-border-light);
    border-radius: var(--qb-radius);
    background: var(--qb-surface);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.qb-faq-item:hover {
    border-color: var(--qb-border);
}

.qb-faq-item[open] {
    border-color: var(--team-primary);
    background: var(--qb-card);
}

.qb-faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.15s ease;
}

.qb-faq-question::-webkit-details-marker {
    display: none;
}

.qb-faq-question:hover {
    background: var(--qb-bg);
}

.qb-faq-question-text {
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text);
    flex: 1;
    line-height: 1.4;
}

.qb-faq-item[open] .qb-faq-question-text {
    color: color-mix(in srgb, var(--team-primary) 80%, black); /* Darkened for contrast */
}

.qb-faq-chevron {
    flex-shrink: 0;
    color: var(--qb-text-muted);
    transition: transform 0.25s ease;
}

.qb-faq-item[open] .qb-faq-chevron {
    transform: rotate(180deg);
    color: var(--team-primary);
}

.qb-faq-answer {
    padding: 0 18px 18px;
}

.qb-faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--qb-text-secondary);
    margin: 0;
    padding: 14px 16px;
    background: var(--qb-bg);
    border-radius: calc(var(--qb-radius) - 2px);
    border-left: 3px solid var(--team-primary);
}

/* ==========================================================================
   Loading & Empty States
   ========================================================================== */
.qb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: var(--qb-text-muted);
}

.qb-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--qb-border);
    border-top-color: var(--team-primary);
    border-radius: 50%;
    animation: qb-spin 0.8s linear infinite;
}

@keyframes qb-spin {
    to { transform: rotate(360deg); }
}

.qb-empty {
    text-align: center;
    padding: 40px 24px;
    color: var(--qb-text-muted);
    font-size: 16px;
}

.qb-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .qb-content-grid {
        grid-template-columns: 1fr;
    }

    .qb-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Hide QB name from section titles on mobile to save space */
    .qb-title-name {
        display: none;
    }

    .qb-hero {
        padding: 24px 0 28px;
    }

    .qb-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .qb-player-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .qb-player-name {
        font-size: 32px;
    }

    .qb-player-badges {
        justify-content: center;
    }

    .qb-quick-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }

    .qb-overall-rating {
        margin: 0 auto;
    }

    .qb-rating-grid {
        grid-template-columns: 1fr;
    }

    .qb-contract-grid {
        grid-template-columns: 1fr;
    }

    .qb-sidebar {
        grid-template-columns: 1fr;
    }

    .qb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ask AI responsive */
    .qb-ask-ai-card {
        padding: 24px 16px;
    }

    .qb-ask-ai-prompt {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .qb-ai-input,
    .qb-ai-input::placeholder {
        font-size: 18px !important;
        padding: 16px 20px;
    }

    .qb-ai-submit {
        width: 46px;
        height: 46px;
    }

    .qb-ai-response {
        padding: 20px 24px;
    }

    .qb-ai-response-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .qb-container {
        padding: 0 16px;
    }

    .qb-card {
        padding: 20px;
        border-radius: var(--qb-radius);
    }

    .qb-quick-stats {
        gap: 16px;
    }

    .qb-quick-stat-value {
        font-size: 22px;
    }

    .qb-suggested-questions {
        flex-direction: column;
    }

    .qb-suggested-btn {
        width: 100%;
        text-align: center;
    }

    .qb-stat-value {
        font-size: 22px;
    }
}

/* ==========================================================================
   Fantasy Outlook Section - Sports Analytics Design
   ========================================================================== */
.qb-fantasy-card {
    position: relative;
    overflow: hidden;
}

/* Team color accent strip at top */
.qb-fantasy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--team-primary), var(--team-secondary), var(--team-primary));
    background-size: 200% 100%;
}

.qb-fantasy-placeholder .qb-fantasy-loading {
    color: var(--qb-text-muted);
    font-size: 16px;
    padding: 32px;
    text-align: center;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
}

/* Hero Recommendation Badge - START/SIT */
.qb-fantasy-recommendation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: var(--qb-radius-lg);
    margin-bottom: 24px;
}

.qb-fantasy-rec-label {
    font-family: var(--qb-font-display);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.qb-fantasy-confidence {
    font-family: var(--qb-font-mono);
    font-size: 15px;
    font-weight: 600;
}

/* START - Green */
.qb-fantasy-recommendation.rec-start {
    background: #16a34a;
    color: white;
}
.qb-fantasy-recommendation.rec-start .qb-fantasy-rec-label,
.qb-fantasy-recommendation.rec-start .qb-fantasy-confidence {
    color: white;
}

/* SIT - Red */
.qb-fantasy-recommendation.rec-sit {
    background: #dc2626;
    color: white;
}
.qb-fantasy-recommendation.rec-sit .qb-fantasy-rec-label,
.qb-fantasy-recommendation.rec-sit .qb-fantasy-confidence {
    color: white;
}

/* Summary Text - matches .qb-ai-blurb */
.qb-fantasy-summary {
    font-size: 16px;
    line-height: 1.75;
    color: var(--qb-text-secondary);
    margin-bottom: 20px;
}

/* Accordion Details/Summary */
.qb-fantasy-details {
    border: 1px solid var(--qb-border-light);
    border-radius: var(--qb-radius);
    margin-top: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.qb-fantasy-details:hover {
    border-color: var(--qb-border);
}

.qb-fantasy-details[open] {
    border-color: color-mix(in srgb, var(--team-primary) 30%, var(--qb-border));
}

.qb-fantasy-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    background: var(--qb-bg);
    transition: background-color 0.15s ease;
}

.qb-fantasy-details-summary::-webkit-details-marker {
    display: none;
}

.qb-fantasy-details-summary:hover {
    background: var(--qb-border-light);
}

.qb-fantasy-details-text {
    font-family: var(--qb-font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--qb-text);
}

.qb-fantasy-chevron {
    flex-shrink: 0;
    color: var(--qb-text-muted);
    transition: transform 0.2s ease;
}

.qb-fantasy-details[open] .qb-fantasy-chevron {
    transform: rotate(180deg);
}

.qb-fantasy-details-content {
    padding: 20px;
    border-top: 1px solid var(--qb-border-light);
}

/* Matchup Section - Card Style */
.qb-fantasy-matchup {
    background: var(--qb-bg);
    padding: 20px 24px;
    border-radius: var(--qb-radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--qb-border-light);
}

.qb-fantasy-matchup-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.qb-fantasy-matchup-label {
    font-family: var(--qb-font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--qb-text-muted);
}

.qb-fantasy-matchup-opponent {
    font-family: var(--qb-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--qb-text);
}

.qb-fantasy-matchup-rank {
    font-family: var(--qb-font-mono);
    font-size: 15px;
    color: var(--qb-text-secondary);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--qb-surface);
    border-radius: var(--qb-radius);
    display: inline-block;
}

.qb-fantasy-matchup-analysis {
    font-size: 16px;
    line-height: 1.7;
    color: var(--qb-text-secondary);
    margin: 0;
}

/* Chart Section Containers */
.qb-fantasy-chart {
    margin-bottom: 28px;
}

.qb-fantasy-chart-title {
    font-family: var(--qb-font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--qb-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--qb-border-light);
}

.qb-fantasy-projected-range {
    font-family: var(--qb-font-mono);
    font-size: 18px;
    color: var(--team-primary);
    font-weight: 700;
}

/* Boom/Bust Probability Bars */
.qb-fantasy-boom-bust-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qb-fantasy-bar-group {
    display: grid;
    grid-template-columns: 60px 1fr 55px;
    align-items: center;
    gap: 16px;
}

.qb-fantasy-bar-label {
    font-family: var(--qb-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--qb-text);
}

.qb-fantasy-bar-track {
    height: 32px;
    background: var(--qb-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.qb-fantasy-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.qb-fantasy-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: 8px;
}

.qb-fantasy-bar-boom {
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.qb-fantasy-bar-bust {
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
}

.qb-fantasy-bar-value {
    font-family: var(--qb-font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--qb-text);
    text-align: right;
}

/* Projected Points Range Chart */
.qb-fantasy-range-chart {
    position: relative;
    padding: 40px 0 28px;
}

.qb-fantasy-range-track {
    position: relative;
    height: 16px;
    background: var(--qb-bg);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.qb-fantasy-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--team-primary), var(--team-secondary));
    border-radius: 8px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--team-primary) 40%, transparent);
}

.qb-fantasy-range-marker {
    position: absolute;
    top: -32px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qb-fantasy-marker-value {
    font-family: var(--qb-font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--qb-text);
}

.qb-fantasy-marker-label {
    font-family: var(--qb-font-display);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--qb-text-muted);
    margin-top: 4px;
}

.qb-fantasy-range-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: var(--qb-font-mono);
    font-size: 13px;
    color: var(--qb-text-muted);
}

/* Recent Performance Trend Chart */
.qb-fantasy-trend-bars {
    display: flex;
    gap: 12px;
    height: 140px;
    align-items: flex-end;
    padding-bottom: 32px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    padding: 20px 20px 40px;
}

.qb-fantasy-trend-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.qb-fantasy-trend-fill {
    width: 100%;
    max-width: 80px;
    border-radius: 6px 6px 0 0;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.qb-fantasy-trend-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 40%);
    border-radius: 6px 6px 0 0;
}

.qb-fantasy-trend-bar.score-excellent .qb-fantasy-trend-fill {
    background: linear-gradient(180deg, #059669, #10b981);
    box-shadow: 0 -4px 12px rgba(16, 185, 129, 0.3);
}

.qb-fantasy-trend-bar.score-good .qb-fantasy-trend-fill {
    background: linear-gradient(180deg, #1d4ed8, #3b82f6);
    box-shadow: 0 -4px 12px rgba(37, 99, 235, 0.3);
}

.qb-fantasy-trend-bar.score-average .qb-fantasy-trend-fill {
    background: linear-gradient(180deg, #d97706, #f59e0b);
    box-shadow: 0 -4px 12px rgba(245, 158, 11, 0.3);
}

.qb-fantasy-trend-bar.score-poor .qb-fantasy-trend-fill {
    background: linear-gradient(180deg, #dc2626, #ef4444);
    box-shadow: 0 -4px 12px rgba(239, 68, 68, 0.3);
}

.qb-fantasy-trend-value {
    font-family: var(--qb-font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--qb-text);
    margin-top: 10px;
}

.qb-fantasy-trend-label {
    position: absolute;
    bottom: -28px;
    font-family: var(--qb-font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--qb-text-muted);
}

/* League Size Recommendations Grid */
.qb-fantasy-leagues {
    margin-bottom: 24px;
}

.qb-fantasy-league-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qb-fantasy-league-item {
    text-align: center;
    padding: 18px 12px;
    border-radius: var(--qb-radius-lg);
    background: var(--qb-bg);
    transition: transform var(--qb-transition), box-shadow var(--qb-transition);
}

.qb-fantasy-league-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--qb-shadow);
}

.qb-fantasy-league-size {
    display: block;
    font-family: var(--qb-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--qb-text-muted);
    margin-bottom: 8px;
}

.qb-fantasy-league-verdict {
    display: block;
    font-family: var(--qb-font-display);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qb-fantasy-league-item.league-start {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}
.qb-fantasy-league-item.league-start .qb-fantasy-league-verdict {
    color: #059669;
}

.qb-fantasy-league-item.league-sit {
    border: 2px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
}
.qb-fantasy-league-item.league-sit .qb-fantasy-league-verdict {
    color: #dc2626;
}

/* Injury Alert Banner */
.qb-fantasy-injury {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.06));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: 0 var(--qb-radius) var(--qb-radius) 0;
    color: #dc2626;
    font-family: var(--qb-font-display);
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

.qb-fantasy-injury-icon {
    flex-shrink: 0;
    color: #ef4444;
    width: 20px;
    height: 20px;
}

/* Draft Phase Metrics Grid */
.qb-fantasy-draft-metrics,
.qb-fantasy-dynasty-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.qb-fantasy-draft-metric,
.qb-fantasy-dynasty-metric {
    text-align: center;
    padding: 20px 16px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius-lg);
    border: 1px solid var(--qb-border-light);
    transition: border-color var(--qb-transition), box-shadow var(--qb-transition);
}

.qb-fantasy-draft-metric:hover,
.qb-fantasy-dynasty-metric:hover {
    border-color: var(--team-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--team-primary) 15%, transparent);
}

.qb-fantasy-metric-value {
    display: block;
    font-family: var(--qb-font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--qb-text);
    margin-bottom: 6px;
}

.qb-fantasy-metric-label {
    font-family: var(--qb-font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--qb-text-muted);
}

/* Draft Range Visual - Ceiling to Floor */
.qb-fantasy-draft-range-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius-lg);
    margin-bottom: 24px;
}

.qb-fantasy-draft-endpoint {
    text-align: center;
    padding: 20px 28px;
}

.qb-fantasy-draft-ceiling {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-radius: var(--qb-radius-lg) 0 0 var(--qb-radius-lg);
}

.qb-fantasy-draft-floor {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border-radius: 0 var(--qb-radius-lg) var(--qb-radius-lg) 0;
}

.qb-fantasy-endpoint-label {
    display: block;
    font-family: var(--qb-font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--qb-text-muted);
    margin-bottom: 8px;
}

.qb-fantasy-endpoint-value {
    font-family: var(--qb-font-mono);
    font-size: 26px;
    font-weight: 700;
}

.qb-fantasy-draft-ceiling .qb-fantasy-endpoint-value {
    color: #059669;
}

.qb-fantasy-draft-floor .qb-fantasy-endpoint-value {
    color: #d97706;
}

.qb-fantasy-draft-connector {
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, #10b981, #fbbf24, #f59e0b);
    border-radius: 3px;
}

/* Risk Meters - Sleeper & Bust */
.qb-fantasy-risk-meters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.qb-fantasy-risk-meter {
    /* Individual meter container */
}

.qb-fantasy-risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.qb-fantasy-risk-label {
    font-family: var(--qb-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--qb-text);
}

.qb-fantasy-risk-value {
    font-family: var(--qb-font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--qb-text);
}

.qb-fantasy-risk-track {
    height: 14px;
    background: var(--qb-bg);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.qb-fantasy-risk-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.qb-fantasy-risk-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: 7px;
}

.qb-fantasy-risk-sleeper {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6, #a78bfa);
}

.qb-fantasy-risk-bust {
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
}

/* Value Analysis Quote */
.qb-fantasy-value-analysis {
    font-size: 16px;
    line-height: 1.75;
    color: var(--qb-text-secondary);
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    border-left: 4px solid var(--team-primary);
    font-style: italic;
}

/* Key Factors List */
.qb-fantasy-factors {
    margin-bottom: 20px;
}

.qb-fantasy-factors-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qb-fantasy-factors-list li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    color: var(--qb-text-secondary);
    line-height: 1.6;
}

.qb-fantasy-factors-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--team-primary);
    font-weight: 700;
    font-size: 18px;
}

/* Career Trajectory Indicator */
.qb-fantasy-trajectory {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--qb-radius-lg);
    margin-bottom: 24px;
}

.qb-fantasy-trajectory-icon {
    font-size: 32px;
    line-height: 1;
}

.qb-fantasy-trajectory-label {
    font-family: var(--qb-font-display);
    font-size: 18px;
    font-weight: 600;
}

.qb-fantasy-trajectory.trajectory-rising {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 5px solid #10b981;
    color: #059669;
}

.qb-fantasy-trajectory.trajectory-peak {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-left: 5px solid #7c3aed;
    color: #6d28d9;
}

.qb-fantasy-trajectory.trajectory-stable {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-left: 5px solid #2563eb;
    color: #1d4ed8;
}

.qb-fantasy-trajectory.trajectory-declining {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 5px solid #ef4444;
    color: #dc2626;
}

/* Keeper Analysis Text */
.qb-fantasy-keeper-analysis {
    font-size: 16px;
    line-height: 1.75;
    color: var(--qb-text-secondary);
    margin-bottom: 20px;
}

/* Team Stability Section */
.qb-fantasy-team-stability {
    background: var(--qb-bg);
    padding: 20px;
    border-radius: var(--qb-radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--qb-border-light);
}

.qb-fantasy-team-stability p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--qb-text-secondary);
    margin: 0;
}

/* Updated Timestamp Footer */
.qb-fantasy-updated {
    font-family: var(--qb-font-mono);
    font-size: 13px;
    color: var(--qb-text-muted);
    text-align: right;
    padding-top: 16px;
    border-top: 1px solid var(--qb-border-light);
    margin-top: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .qb-fantasy-recommendation {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 20px;
    }

    .qb-fantasy-rec-label {
        font-size: 22px;
    }

    .qb-fantasy-league-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .qb-fantasy-league-item {
        padding: 14px 12px;
    }

    .qb-fantasy-league-verdict {
        font-size: 18px;
    }

    .qb-fantasy-draft-range-visual {
        flex-direction: column;
        gap: 0;
        padding: 16px;
    }

    .qb-fantasy-draft-ceiling {
        border-radius: var(--qb-radius-lg) var(--qb-radius-lg) 0 0;
        width: 100%;
    }

    .qb-fantasy-draft-floor {
        border-radius: 0 0 var(--qb-radius-lg) var(--qb-radius-lg);
        width: 100%;
    }

    .qb-fantasy-draft-connector {
        width: 6px;
        height: 40px;
    }

    .qb-fantasy-draft-metrics,
    .qb-fantasy-dynasty-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .qb-fantasy-metric-value {
        font-size: 20px;
    }

    .qb-fantasy-bar-group {
        grid-template-columns: 55px 1fr 50px;
        gap: 12px;
    }

    .qb-fantasy-bar-track {
        height: 28px;
    }

    .qb-fantasy-trend-bars {
        height: 120px;
        gap: 8px;
        padding: 16px 12px 36px;
    }

    .qb-fantasy-matchup-opponent {
        font-size: 20px;
    }

    .qb-fantasy-summary {
        font-size: 16px;
    }
}

/* ==========================================================================
   QB Legacy Styles (Historical QBs)
   ========================================================================== */

/* Legacy Card - Replaces QB Today for retired QBs */
.qb-legacy-card {
    background: var(--qb-card);
    border-radius: var(--qb-radius-lg);
    box-shadow: var(--qb-shadow);
    overflow: hidden;
}

.qb-legacy-card .qb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--qb-border-light);
    background: linear-gradient(135deg, #1a1d26 0%, #2d3142 100%);
}

.qb-legacy-card .qb-card-title {
    color: var(--qb-text-light);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.qb-legacy-card .qb-section-icon {
    color: var(--qb-tier-elite);
}

.qb-legacy-years {
    font-size: 14px;
    font-weight: 500;
    color: var(--qb-text-light-secondary);
    opacity: 0.8;
}

.qb-legacy-badge {
    background: linear-gradient(135deg, var(--team-primary, #7c3aed) 0%, var(--team-secondary, #9d5cff) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.qb-legacy-content {
    padding: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--qb-text);
}

/* Legacy Career Stats Grid */
.qb-legacy-stats {
    padding: 0 24px 24px;
}

.qb-legacy-stats-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--qb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--qb-border-light);
}

.qb-legacy-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
}

.qb-legacy-stat {
    text-align: center;
    padding: 16px 12px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    transition: transform var(--qb-transition);
}

.qb-legacy-stat:hover {
    transform: translateY(-2px);
}

.qb-legacy-stat-value {
    display: block;
    font-family: var(--qb-font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--qb-text);
    line-height: 1.2;
}

.qb-legacy-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--qb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Memorial Section (Deceased QBs) */
.qb-legacy-memorial {
    margin: 24px 24px 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-radius: var(--qb-radius);
    border-left: 4px solid #6b7280;
    font-size: 15px;
    color: #374151;
    font-style: italic;
}

.qb-legacy--deceased .qb-card-header {
    background: linear-gradient(135deg, #1a1d26 0%, #374151 100%);
}

/* ==========================================================================
   Legacy Achievements Section
   ========================================================================== */
.qb-legacy-achievements-card {
    background: var(--qb-card);
    border-radius: var(--qb-radius-lg);
    box-shadow: var(--qb-shadow);
    overflow: hidden;
}

.qb-legacy-achievements-card .qb-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--qb-border-light);
}

.qb-legacy-achievements-card .qb-card-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.qb-legacy-achievements-card .qb-section-icon {
    color: var(--qb-tier-elite);
}

.qb-legacy-achievements {
    padding: 24px;
}

/* Achievement Groups */
.qb-legacy-achievement-group {
    margin-bottom: 24px;
}

.qb-legacy-achievement-group:last-child {
    margin-bottom: 0;
}

.qb-legacy-achievement-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--qb-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--qb-border-light);
}

.qb-legacy-achievement-group-title svg {
    flex-shrink: 0;
}

.qb-legacy-achievement-group--championships .qb-legacy-achievement-group-title {
    color: var(--qb-tier-elite);
}

.qb-legacy-achievement-group--mvp .qb-legacy-achievement-group-title {
    color: var(--qb-tier-great);
}

.qb-legacy-achievement-group--all-pro .qb-legacy-achievement-group-title {
    color: var(--qb-tier-good);
}

.qb-legacy-achievement-group--pro-bowl .qb-legacy-achievement-group-title {
    color: var(--qb-tier-average);
}

/* Achievement List */
.qb-legacy-achievement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qb-legacy-achievement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: var(--qb-bg);
    border: 1px solid var(--qb-border-light);
    transition: all var(--qb-transition);
}

.qb-legacy-achievement:hover {
    transform: translateY(-1px);
    box-shadow: var(--qb-shadow-sm);
}

.qb-legacy-achievement-year {
    font-family: var(--qb-font-mono);
    font-weight: 600;
    color: var(--qb-text-muted);
    font-size: 13px;
}

.qb-legacy-achievement-title {
    color: var(--qb-text);
}

/* Championship styling */
.qb-legacy-achievement--championship {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.qb-legacy-achievement--championship .qb-legacy-achievement-year {
    color: #92400e;
}

.qb-legacy-achievement--championship .qb-legacy-achievement-title {
    color: #78350f;
}

/* MVP styling */
.qb-legacy-achievement--mvp {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.qb-legacy-achievement--mvp .qb-legacy-achievement-year {
    color: #1e40af;
}

.qb-legacy-achievement--mvp .qb-legacy-achievement-title {
    color: #1e3a8a;
}

/* Teams Section */
.qb-legacy-teams {
    padding: 0 24px 24px;
    border-top: 1px solid var(--qb-border-light);
    margin-top: 0;
    padding-top: 20px;
}

.qb-legacy-teams-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--qb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.qb-legacy-teams-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.qb-legacy-team {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    font-size: 14px;
}

.qb-legacy-team-name {
    font-weight: 600;
    color: var(--qb-text);
}

.qb-legacy-team-years {
    font-family: var(--qb-font-mono);
    font-size: 12px;
    color: var(--qb-text-muted);
}

/* ==========================================================================
   Legacy Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .qb-legacy-card .qb-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    .qb-legacy-card .qb-card-title {
        font-size: 16px;
    }

    .qb-legacy-years {
        display: block;
        margin-top: 4px;
    }

    .qb-legacy-content {
        padding: 20px;
        font-size: 15px;
    }

    .qb-legacy-stats {
        padding: 0 20px 20px;
    }

    .qb-legacy-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .qb-legacy-stat-value {
        font-size: 20px;
    }

    .qb-legacy-memorial {
        margin: 0 20px 20px;
    }

    .qb-legacy-achievements {
        padding: 20px;
    }

    .qb-legacy-achievement {
        padding: 6px 12px;
        font-size: 13px;
    }

    .qb-legacy-teams {
        padding: 16px 20px 20px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .qb-profile-wrap {
        background: white;
    }

    .qb-hero {
        background: var(--team-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .qb-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .qb-ask-ai-card,
    .qb-sidebar {
        display: none;
    }
}
