/* ==========================================
   COMMENTATOR PROFILE PAGE
   ========================================== */

/* ═══ Page Container ═══ */
.commentator-page-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 24px 15px;
}

/* ═══ Hero Card (Figma 40000639:10634 — dark banner, radius 14px,
      padding 20px 48px, min-height 194px; gradient fill_XTRFKE over
      the shared stadium backdrop used by the app banner / referee
      hero) ═══ */
.commentator-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 194px;
    padding: 20px 48px;
    margin-bottom: 24px;
    border-radius: var(--border-radius-card);
    background-color: var(--bg-topbar);
    background-image:
        var(--bg-app-banner-overlay),
        url('../images/app-banner-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Identity left, info bar right (Figma 10675 @ left / 10682 @ right) */
.commentator-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

/* Identity block: photo + name column (Figma row, gap 16px, padding 10px) */
.commentator-hero-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    min-width: 0;
}

/* Circular photo (Figma layout_TZC1P5 — 88×88, radius ≈ circle) */
.commentator-hero-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Name + subtitle column (Figma 40000639:10678 — column, gap 10px) */
.commentator-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

/* Montserrat/ExtraBold 18 */
.commentator-hero-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 800;
    line-height: 1.22;
    color: var(--text-white);
    overflow-wrap: anywhere;
}

/* Montserrat/SemiBold 11 — "Commentator · 45 years" */
.commentator-hero-subtitle {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.22;
    color: var(--text-white);
}

/* Info bar (Figma 40000639:10682 — row, gap 16px, padding 16px 12px,
   bg fill_DQHSHI, 1px fill_0QA7GE border, radius 8px) */
.commentator-hero-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Item columns (Figma layout_V3N8QR / layout_73IJ7M — column, gap 8px) */
.commentator-hero-info-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 70px;
    text-align: center;
}

/* style_9CRQYA label (8px in Figma → site minimum --font-size-xs,
   same mapping as .referee-hero-info-label) */
.commentator-hero-info-label {
    font-size: var(--font-size-xs);
    line-height: 1.2;
    color: var(--text-muted);
}

/* Body/Sm: Medium 12 value */
.commentator-hero-info-value {
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Hairline dividers (Figma Vector 3/4/5 — 1×20px, fill_L0OGJN) */
.commentator-hero-info-sep {
    width: 1px;
    height: 20px;
    background: var(--border-strong);
    flex-shrink: 0;
}

/* ═══ Listen to Commentary Promo Card (Figma 40000641:10903 —
      bg fill_DKPT20, radius 16px, row, gap 20px, padding 24px;
      static / non-clickable) ═══ */
.commentator-promo {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-card-header);
    border-radius: var(--border-radius-card);
}

/* Accent icon container (Figma 40000641:10904 — 48×48, radius 24px,
   fill_GO4V38 lime with dark glyph fill_1LE1ZL) */
.commentator-promo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-primary);
}

/* Dark mic glyph inside the lime circle (Figma 40000641:10904 —
   mic.svg is pre-colored #0D0D11, sits on the lime background) */
.commentator-promo-icon-glyph {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Text column (Figma layout_XG3FEX — column, gap 4px) */
.commentator-promo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Montserrat/Bold 18 (style_QUWTTW) */
.commentator-promo-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.22;
    color: var(--text-primary);
}

/* 400/14 description (style_HMJK0F — Figma #8E8E93 → --text-secondary) */
.commentator-promo-desc {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.2;
    color: var(--text-secondary);
}

/* Trailing YouTube glyph (Figma 40000641:10910 — 24×24,
   youtube.png is pre-colored lime on the dark card) */
.commentator-promo-glyph {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ═══ Section Labels (Figma div.events-filter pill visual — static,
      non-interactive heading; active pill fill_7AS3P8, radius 20px,
      padding 6px 16px, Montserrat 700/12) ═══ */
.commentator-matches-section {
    margin-bottom: 24px;
}

.commentator-section-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.22;
    white-space: nowrap;
    color: var(--text-white);
    background: var(--accent-purple-dark);
    border-radius: var(--border-radius-pill);
}

/* ═══ League Cards (Figma 40000641:10923 — bg fill_DQHSHI,
      1px fill_0QA7GE border, radius 14px; header band fill_DKPT20
      with bottom hairline, padding 12px 16px, gap 12px) ═══ */
.commentator-league-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.commentator-league-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    overflow: hidden;
}

.commentator-league-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card-header);
    border-bottom: 1px solid var(--border-color);
}

/* League logo (Figma layout_PQ27V5 — 26×26); omitted in markup when
   comp_logo is empty */
.commentator-league-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Text md/Bold 16 league name */
.commentator-league-name {
    margin: 0;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══ Fixture Rows (Figma Component 5 — padding 8px 16px, bottom
      hairline between rows; same visual language as
      .referee-fixture-item in referee.css) ═══ */
.commentator-fixture-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.commentator-fixture-item:last-child {
    border-bottom: none;
}

.commentator-fixture-item:hover {
    background: var(--bg-card-hover);
}

/* Team halves (Figma layout_QUWKNC / layout_VULHBQ — row, gap 10px) */
.commentator-fixture-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

.commentator-fixture-team.home {
    justify-content: flex-end;
}

.commentator-fixture-team.away {
    justify-content: flex-start;
}

/* Team crest (Figma layout_NOJCJS — 32×32) */
.commentator-fixture-team img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Body/Sm: Medium 12 team name */
.commentator-fixture-team-name {
    min-width: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center column (Figma layout_L6CTV9 — column, centered, gap 4px) */
.commentator-fixture-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 120px;
    padding: 2px 0;
}

/* Final score (style_H2P4FD — Montserrat 900/20, -2.5% tracking);
   the score string may already include "(x-y pen)" — rendered as-is */
.commentator-fixture-score {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.22;
    color: var(--text-primary);
}

/* ═══ Responsive ═══ */
@media (max-width: 991.98px) {
    .commentator-hero {
        padding: 20px 28px;
    }
}

@media (max-width: 767.98px) {
    .commentator-hero {
        min-height: 0;
        padding: 24px 20px;
    }

    /* Hero stacks: identity above info bar, both centered */
    .commentator-hero-inner {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }

    .commentator-hero-identity {
        flex-direction: column;
        text-align: center;
    }

    .commentator-hero-text {
        align-items: center;
        text-align: center;
    }

    .commentator-fixture-center {
        min-width: 96px;
    }
}

@media (max-width: 575.98px) {
    .commentator-hero-avatar {
        width: 76px;
        height: 76px;
    }

    /* Info strip: allow wrap, drop hairline (referee.css pattern) */
    .commentator-hero-info {
        gap: 12px 20px;
    }

    .commentator-hero-info-sep {
        display: none;
    }

    .commentator-promo {
        gap: 12px;
        padding: 16px;
    }

    .commentator-promo-icon {
        width: 40px;
        height: 40px;
    }

    .commentator-promo-icon-glyph {
        width: 20px;
        height: 20px;
    }

    .commentator-fixture-item {
        padding: 8px 12px;
    }

    .commentator-fixture-center {
        min-width: 84px;
    }

    .commentator-fixture-score {
        font-size: var(--font-size-md);
    }

    .commentator-league-card-header {
        padding: 10px 12px;
    }
}
