/**
 * Hot Streaks page styles
 * File: styles/hot-streaks.css
 * Used by: /hot-streaks/
 */

/* Same content-wrapper padding as player-props-dfs.css / +EV props: clears
   the fixed header + sticky .tmb-sport-bar (front.css margin-top:-20px). */
.content-wrapper {
    margin-left: 0;
    padding: 20px 25px;
    padding-top: 90px !important;
}

.sp-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 8px;
}

/* Explainer: X+ is an alt-line milestone, not today's posted line */
.sp-note {
    font-size: 0.8rem;
    color: #6c757d;
    background: #f6f7f9;
    border-left: 3px solid #c3c9d1;
    border-radius: 3px;
    padding: 7px 10px;
    margin: 0 0 14px;
}
.sp-note .fa-info-circle {
    color: #9aa3ad;
}

.sp-loading,
.sp-empty {
    padding: 30px 10px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* ---- Graceful empty state (off day / off-season / lines not posted) ---- */
.sp-empty-state {
    max-width: 420px;
    margin: 40px auto;
    padding: 32px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
}
.sp-empty-icon {
    font-size: 1.9rem;
    color: #c3c9d1;
    margin-bottom: 10px;
}
.sp-empty-headline {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}
.sp-empty-detail {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 14px;
}
.sp-empty-state .sp-empty-jump {
    font-size: 0.8rem;
}

/* ---- Anonymous teaser: locked matchup cards ----
   The card body is replaced by TMBPaywall.lockElement() with a skeleton
   shimmer + the site-wide dark overlay (Unlock + Sign In). Only the
   container sizing lives here. */
.sp-locked {
    position: relative;
    min-height: 170px;
    padding: 12px 16px;
    color: #888;
}
.sp-locked .tmb-paywall-skeleton { min-height: 140px; }
.sp-locked-count {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ---- Matchup card ---- */
.sp-matchup {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.sp-matchup-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    background: #f6f8fa;
    border-bottom: 1px solid #e3e6ea;
}

.sp-matchup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.sp-matchup-time {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}

/* ---- Two team columns ---- */
.sp-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sp-team-col {
    padding: 12px 14px;
    min-width: 0;
}

.sp-team-col + .sp-team-col {
    border-left: 1px solid #eef0f3;
}

.sp-team-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e9ecf0;
}

.sp-none {
    font-size: 0.8rem;
    color: #bbb;
    font-style: italic;
}

/* ---- Player blocks ---- */
.sp-player {
    margin-bottom: 10px;
}

.sp-player:last-child {
    margin-bottom: 0;
}

/* Player name lives in the grid's first header cell, on the row with the
   opponents/dates. */
.sp-grid-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333 !important;
    vertical-align: middle;
    /* Fixed 112px column: long names wrap rather than bleeding into game cols */
    white-space: normal;
    line-height: 1.2;
}

.sp-prop-label {
    color: #1d6f42;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- Per-player game grid ---- */
/* Wide windows (up to 10 games) scroll inside the player block rather than
   blowing out the team column. */
.sp-grid-wrap {
    overflow-x: auto;
    margin: 2px 0 0;
}

/* table-layout:fixed + pinned first/avg widths = the game columns split the
   remaining width equally, so every player's grid in a column lines up
   (content-sized auto layout gave each player different column widths).
   sp-core.js sets a min-width per table from the game count; wide windows
   scroll inside .sp-grid-wrap. */
.sp-grid {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    font-size: 0.76rem;
}

.sp-grid th,
.sp-grid td {
    padding: 2px 6px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid #f0f2f5;
}

.sp-grid thead th {
    border-bottom: 1px solid #e3e6ea;
    font-weight: 600;
    color: #888;
}

.sp-grid tbody tr:last-child th,
.sp-grid tbody tr:last-child td {
    border-bottom: none;
}

.sp-grid-prop {
    text-align: left !important;
    padding-left: 15px !important;
    width: 112px;
}

.sp-grid-game .sp-grid-opp {
    display: block;
    font-size: 0.68rem;
    line-height: 1.2;
}

.sp-grid-game .sp-grid-date {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    color: #b5bcc4;
    line-height: 1.2;
}

.sp-grid-val {
    color: #555;
}

/* Below-100% hit rate: a game that fell short of the rung */
.sp-grid-val.sp-miss {
    color: #c0392b;
    background: #fdf1ef;
}

/* Injury report: Questionable tag on the player name; Out list under the team */
.sp-inj-q {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 3px;
    background: #fff3cd;
    color: #856404;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: 1px;
}

.sp-out {
    margin: 6px 0 2px 15px;
    font-size: 0.7rem;
    color: #a94442;
}

/* "4/5" hit count next to the prop label when the prop carries misses */
.sp-hits {
    color: #999;
    font-size: 0.68rem;
    font-weight: 400;
    margin-left: 3px;
}

.sp-grid-avg-h {
    color: #b5bcc4 !important;
    font-weight: 400 !important;
    font-size: 0.68rem;
    width: 42px;
}

/* Faded average for quick reference */
.sp-avg {
    color: #aaa;
    font-size: 0.72rem;
    white-space: nowrap;
    cursor: default;
}

/* ---- Mobile: stack the two team columns ---- */
@media (max-width: 575.98px) {
    .sp-cols {
        grid-template-columns: 1fr;
    }
    .sp-team-col + .sp-team-col {
        border-left: none;
        border-top: 1px solid #eef0f3;
    }
}
