/* ═══════════════════════════════════════════════════
   Stats pages — today-first-basket-stats.php
                 2025-2026-first-basket-stats-data.php
                 player.php
                 players.php
                 today-first-basket-picks.php
════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Indie+Flower:wght@700&family=Hind:wght@400;600&display=swap');

/* ── Section labels ── */
.sl {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: rgba(232, 93, 4, 0.35);
    border-left: 5px solid #E85D04;
    padding: 12px 20px;
    margin-top: 24px;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
}
.sl:first-child { margin-top: 0; }
.sl .sl-sub {
    display: inline;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255,255,255,0.7);
    margin-left: 6px;
}
.sl .sl-dot {
    margin: 0 4px;
    color: rgba(255,255,255,0.5);
}

/* ── Section label player variant — flex with pill and badge ── */
.sl-player {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Sub-nav tabs ── */
.stats-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}
.stats-tabs::-webkit-scrollbar { display: none; }
.stab {
    padding: 6px 14px;
    background: var(--surface);
    color: #d8d8e8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .12s;
}
.stab:hover { color: #fff; border-color: #888; }
.stab.active { background: #fff; color: #000; border-color: #fff; }

/* ── Tab panels ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Table wrapper — full width ── */
.tw {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Stats data table ── */
.dt {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}
.dt thead th {
    background: var(--surface2);
    color: #d8d8e8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 8px 10px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.dt thead th.num      { text-align: center; }
.dt thead th.name     { text-align: center !important; }
.dt thead th.matchup-hd {
    text-align: center;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.dt thead th.sh       { cursor: pointer; user-select: none; }
.dt thead th.sh:hover { color: #fff; }
.dt thead th.sort-asc::after  { content: ' ↑'; }
.dt thead th.sort-desc::after { content: ' ↓'; }
.dt tbody tr { border-top: 1px solid var(--border); }
.dt tbody tr:hover td { background: rgba(255,255,255,.03); }
.dt tbody td.num {
    text-align: center;
    padding: 7px 8px;
    white-space: nowrap;
    color: #d8d8e8;
}
.dt tbody td.heat {
    color: #000 !important;
    font-weight: 700;
}
.dt tbody td.name {
    text-align: center !important;
    padding: 7px 8px;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
}
.dt tbody td.matchup-cell {
    text-align: center;
    padding: 6px 12px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    white-space: nowrap;
}
.at {
    color: #888;
    font-size: 11px;
    margin: 0 4px;
}

/* ── Player page game log tables ─────────────────────────────
   Fixed layout so first shot and first basket logs
   always render identical column widths
────────────────────────────────────────────────────────────── */
.dt-log {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}
.dt-log col.col-date    { width: 100px; }
.dt-log col.col-matchup { width: 160px; }
.dt-log col.col-ha      { width: 60px; }
.dt-log col.col-shot    { width: 120px; }
.dt-log col.col-badge   { width: 55px; }
.dt-log col.col-num     { width: 55px; }
.dt-log col.col-yn      { width: 130px; }
.dt-log thead th {
    background: var(--surface2);
    color: #d8d8e8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 8px 10px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.dt-log tbody tr { border-top: 1px solid var(--border); }
.dt-log tbody tr:hover td { background: rgba(255,255,255,.03); }
.dt-log tbody td {
    text-align: center;
    padding: 7px 8px;
    white-space: nowrap;
    color: #d8d8e8;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dt-log tbody td.matchup-cell {
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* ── Result cell colors ── */
.result-yes { color: #5dcc80; font-weight: 700; }
.result-no  { color: #cc5d5d; font-weight: 700; }

/* ── Team pill ── */
.pill {
    display: inline-block;
    min-width: 42px;
    width: 42px;
    padding: 3px 0;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    line-height: 1.5;
    letter-spacing: .3px;
    vertical-align: middle;
}

/* ── Search / filter controls ── */
.tc {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0 8px;
}
.tc input, .tc select {
    background: var(--surface);
    border: 1px solid #555;
    color: #d8d8e8;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 13px;
}
.tc input { width: 260px; }
.tc input::placeholder { color: #888; }

/* ── Player page — stat boxes ── */
.player-stat-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.player-stat-box {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 10px;
    text-align: center;
}
.player-stat-box-val {
    font-size: 22px;
    font-weight: 800;
    color: #000;
}
.player-stat-box-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #00000099;
    margin-top: 4px;
}

/* ── Player page — summary paragraph ── */
.player-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}
.player-summary p { margin: 0; }

/* ── Player page — shot type breakdown grid ── */
.player-shot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

/* ── Player page — 404 ── */
.player-not-found { padding: 40px 20px; color: #d8d8e8; }

/* ── Two-column H2H layout ── */
.h2h-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}
.h2h-grid .sl { margin-top: 0; padding-top: 10px; }

/* ── Previous meetings ── */
.prev-matchup-block {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.prev-matchup-header {
    background: var(--surface2);
    padding: 8px 12px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}
.prev-matchup-block .dt { table-layout: fixed; min-width: 800px; }
.prev-matchup-block .dt th,
.prev-matchup-block .dt td { overflow: hidden; text-overflow: ellipsis; }
.prev-matchup-block .dt th:nth-child(1),
.prev-matchup-block .dt td:nth-child(1),
.prev-matchup-block .dt th:nth-child(2),
.prev-matchup-block .dt td:nth-child(2) { width: 56px; }
.prev-matchup-block .dt th:nth-child(3),
.prev-matchup-block .dt td:nth-child(3) { width: 100px; }
.prev-matchup-block .dt th:nth-child(4),
.prev-matchup-block .dt td:nth-child(4),
.prev-matchup-block .dt th:nth-child(5),
.prev-matchup-block .dt td:nth-child(5) { width: 120px; }
.prev-matchup-block .dt th:nth-child(6),
.prev-matchup-block .dt td:nth-child(6),
.prev-matchup-block .dt th:nth-child(7),
.prev-matchup-block .dt td:nth-child(7) { width: 70px; }
.prev-matchup-block .dt th:nth-child(8),
.prev-matchup-block .dt td:nth-child(8) { width: 100px; }
.prev-matchup-block .dt th:nth-child(9),
.prev-matchup-block .dt td:nth-child(9) { width: 140px; }
.prev-matchup-block .dt th:nth-child(10),
.prev-matchup-block .dt td:nth-child(10) { width: 100px; }

/* ── Empty dash ── */
.empty-dash { color: #888; }

/* ── H2H value cell ── */
.h2h-val { font-weight: 700 !important; color: #fff !important; }

/* ── Picks page grid ── */
.picks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ── Content pages (contact, privacy, tos) ── */
.content-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.content-page-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.content-page h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.content-page-date {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 40px;
    letter-spacing: .4px;
}
.content-page-lead {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 32px;
}
.content-page section { margin-bottom: 36px; }
.content-page h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-bottom: 14px;
}
.content-page p { color: var(--text); line-height: 1.7; }
.content-page ul,
.content-page ol {
    color: var(--text);
    line-height: 1.8;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.content-page a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Contact form ── */
.contact-lead { font-size: 12px; color: var(--muted); margin-bottom: 36px; line-height: 1.6; }
.contact-success {
    background: var(--surface);
    border: 1px solid #2ecc71;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
}
.contact-success-icon  { font-size: 24px; margin-bottom: 8px; }
.contact-success-title { color: #2ecc71; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.contact-success-msg   { color: var(--muted); font-size: 12px; }
.contact-error {
    background: rgba(206,17,65,.12);
    border: 1px solid #CE1141;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 12px;
    color: #ff6b8a;
    font-weight: 600;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    margin-bottom: 6px;
}
.contact-input,
.contact-textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.contact-input:focus,
.contact-textarea:focus { border-color: #fff; }
.contact-textarea { resize: vertical; }
.contact-submit {
    align-self: flex-start;
    background: #2ecc71;
    border: none;
    border-radius: var(--radius);
    color: #000;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: opacity .15s;
}
.contact-submit:hover { opacity: .85; }

/* ── Mobile ── */
@media (max-width: 900px) {
    .picks-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .stats-tabs { padding: 8px; }
    .stab { font-size: 11px; padding: 5px 10px; }
    .tc input { width: 100%; }
    .dt { font-size: 12px; }
    .dt thead th { font-size: 10px; padding: 6px 5px; }
    .dt tbody td { padding: 6px 5px; font-size: 12px; }
    .h2h-grid { grid-template-columns: 1fr; }
    .sl-dot { display: none; }
    .sl-sub { display: block; width: 100%; margin-top: 2px; }
    .player-shot-grid { grid-template-columns: 1fr; }
}

/* ── H2H grid table fix ── */
.h2h-grid .dt { table-layout: fixed !important; }
.h2h-grid .dt th:nth-child(1),
.h2h-grid .dt td:nth-child(1) { width: 46px; }
.h2h-grid .dt th:nth-child(2),
.h2h-grid .dt td:nth-child(2) { width: calc(50% - 79px); }
.h2h-grid .dt th:nth-child(3),
.h2h-grid .dt td:nth-child(3) { width: 66px; }
.h2h-grid .dt th:nth-child(4),
.h2h-grid .dt td:nth-child(4) { width: calc(50% - 79px); }
.h2h-grid .dt th:nth-child(5),
.h2h-grid .dt td:nth-child(5) { width: 46px; }
.h2h-col {
    width: 66px !important; min-width: 66px !important; max-width: 66px !important;
    text-align: center !important; font-weight: 700; color: #fff; padding: 7px 4px;
}
.h2h-col-hd {
    width: 66px !important; min-width: 66px !important; max-width: 66px !important;
    text-align: center !important; color: #d8d8e8; font-size: 11px; font-weight: 700;
}

/* ── Stab dropdown menus ── */
.stab-dd-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,.5);
    min-width: 180px;
    flex-direction: column;
}
.stab-dd-item {
    display: block; width: 100%; background: transparent; border: none;
    border-bottom: 1px solid var(--border); color: #d8d8e8; font-size: 12px;
    font-weight: 700; padding: 9px 14px; text-align: left; cursor: pointer;
    white-space: nowrap; transition: background .1s, color .1s;
}
.stab-dd-item:last-child { border-bottom: none; }
.stab-dd-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.stab-dd-item.active { background: #fff; color: #000; }
