/*
 * FFNG Dashboard — Stylesheet
 *
 * Design direction: Utilitarian scoreboard meets modern dashboard.
 * Dark background, high-contrast cards, monospace accents for data,
 * and clean geometric layouts. Think ESPN's dark mode crossed with
 * a sysadmin monitoring dashboard.
 *
 * Font stack:
 *   - Outfit: headings and UI elements (geometric, modern)
 *   - JetBrains Mono: numbers, data values, code-like elements
 */

/* ============================================================
   CSS VARIABLES — central theme control
   ============================================================ */
:root {
    /* Background layers — ORA deep space palette */
    --bg-body: #080c14;
    --bg-card: #111827;
    --bg-card-hover: #1a2536;
    --bg-input: #0d1420;
    --bg-modal: #111827;
    --bg-overlay: rgba(0, 0, 0, 0.75);
    --bg-surface: #0d1420;

    /* Text */
    --text-primary: #f0f4ff;
    --text-secondary: #7a92b0;
    --text-muted: #4a6280;
    --text-inverse: #080c14;

    /* Accent colors — electric blue updated to match ORA logo */
    --accent-green: #34d399;
    --accent-green-dim: rgba(52, 211, 153, 0.15);
    --accent-blue: #38bdf8;
    --accent-blue-dim: rgba(56, 189, 248, 0.15);
    --accent-orange: #fb923c;
    --accent-orange-dim: rgba(251, 146, 60, 0.15);
    --accent-red: #f87171;
    --accent-red-dim: rgba(248, 113, 113, 0.15);
    --accent-purple: #a78bfa;
    --accent-purple-dim: rgba(167, 139, 250, 0.15);
    --accent-yellow: #fbbf24;

    /* Borders — blue-tinted to feel intentional */
    --border-color: #1e2d45;
    --border-radius: 8px;

    /* Shadows */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.5);

    /* Sizing */
    --max-width: 1200px;
    --header-height: 56px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--header-height);
    background: linear-gradient(135deg, #0d1420 0%, #080c14 100%);
    border-bottom: 1px solid var(--border-color);
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ora-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 1px;
}

.ora-wordmark-primary {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.ora-wordmark-secondary {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.header-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
    opacity: 0.6;
}

.header-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.league-pill,
.season-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ============================================================
   CONTROL ROW
   ============================================================ */
.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 16px;
    flex-wrap: wrap;
}

.control-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.week-select {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    padding: 8px 32px 8px 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b90a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 160px;
}

.week-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-dim);
}

.status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.status-text.success {
    color: var(--accent-green);
}

.status-text.error {
    color: var(--accent-red);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--bg-card);
    color: var(--text-primary);
    white-space: nowrap;
}

.btn:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-sync {
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-sync:hover:not(:disabled) {
    background: var(--accent-blue);
    color: var(--text-inverse);
}

.btn-sync.syncing {
    pointer-events: none;
    opacity: 0.7;
}

.sync-icon {
    display: inline-block;
    font-size: 14px;
}

.btn-sync.syncing .sync-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-save {
    background: var(--accent-green-dim);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.btn-save:hover:not(:disabled) {
    background: var(--accent-green);
    color: var(--text-inverse);
}

.btn-preview {
    background: var(--accent-purple-dim);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.btn-preview:hover:not(:disabled) {
    background: var(--accent-purple);
    color: var(--text-inverse);
}

.btn-send {
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-send:hover:not(:disabled) {
    background: var(--accent-orange);
    color: var(--text-inverse);
}

.btn-features {
    font-size: 12px;
    padding: 6px 12px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
}

.btn-features:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-card);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.btn-preset {
    font-size: 12px;
    padding: 6px 12px;
}

/* ============================================================
   METRICS ROW
   ============================================================ */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 24px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: border-color 0.15s ease;
}

.metric-card:hover {
    border-color: var(--text-muted);
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.metric-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.metric-detail2 {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Colored top borders for each metric */
.metric-card:nth-child(1) { border-top: 3px solid var(--accent-green); }
.metric-card:nth-child(2) { border-top: 3px solid var(--accent-red); }
.metric-card:nth-child(3) { border-top: 3px solid var(--accent-orange); }
.metric-card:nth-child(4) { border-top: 3px solid var(--accent-blue); }

/* ============================================================
   TAB STRIP
   ============================================================ */
.tab-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.tab-spacer {
    flex: 1;
}

/* ============================================================
   TAB CONTENT
   ============================================================ */
.tab-content {
    display: none;
    padding: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    animation: fadeIn 0.2s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-auto {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 14px;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
}

/* ============================================================
   GAME CARDS
   ============================================================ */
.games-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.game-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.game-flag-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.game-score {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.team-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.team-score.winner .score-value {
    color: var(--accent-green);
}

.team-score.loser .score-value {
    color: var(--text-secondary);
}

.team-name {
    font-weight: 600;
    font-size: 14px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
}

.vs-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.vs-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.game-margin {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}


.game-flag {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--accent-purple-dim);
    color: var(--accent-purple);
    letter-spacing: 0.05em;
}
.game-h2h {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}


.game-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.game-stat {
    background: var(--bg-card);
    padding: 12px 16px;
}

.game-stat-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.game-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.game-stat-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ============================================================
   STANDINGS TABLE
   ============================================================ */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.standings-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-align: left;
    padding: 10px 16px;
    border-bottom: 2px solid var(--border-color);
}

.standings-table th.num {
    text-align: right;
}

.standings-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
}

.standings-table td.num {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.standings-table tr:hover td {
    background: var(--bg-card-hover);
}

.standings-table tr.playoff-line td {
    border-bottom: 2px dashed var(--accent-orange);
}

.standings-rank {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-muted);
    width: 40px;
}

.standings-team {
    font-weight: 600;
}

.standings-record {
    font-family: 'JetBrains Mono', monospace;
}

.standings-streak {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.streak-win {
    color: var(--accent-green);
}

.streak-lose {
    color: var(--accent-red);
}

/* ============================================================
   FUN STATS GRID
   ============================================================ */
.fun-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fun-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.fun-card-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fun-card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.fun-card-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.fun-card-detail2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.fun-card-unavailable {
    opacity: 0.45;
    border-style: dashed;
}
.fun-card-value-unavailable {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   ACTIVITY TAB
   ============================================================ */
.activity-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.activity-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.activity-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-row-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.activity-row-detail {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

.activity-single {
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
}

.activity-single span {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-green);
}

/* ============================================================
   COMPOSE TAB
   ============================================================ */
.compose-form {
    max-width: 700px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group textarea {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    padding: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: vertical;
    line-height: 1.6;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-dim);
}

.form-group textarea::placeholder {
    color: var(--text-muted);
}

.save-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-green);
    margin-left: 12px;
}

/* ============================================================
   ACTION BAR
   ============================================================ */
.action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.15s ease;
}

.modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-modal);
    width: 90%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-wide {
    max-width: 900px;
}

.modal-narrow {
    max-width: 440px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    font-size: 24px;
    line-height: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-presets {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* ============================================================
   FEATURE LIST (inside modal)
   ============================================================ */
.feature-list {
    padding: 16px 20px;
}

.feature-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 12px 0 6px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.feature-name {
    font-size: 14px;
    color: var(--text-primary);
}

/* Toggle switch */
.toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toggle input:checked + .toggle-slider {
    background: var(--accent-green-dim);
    border-color: var(--accent-green);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: var(--accent-green);
}

/* ============================================================
   RAW DATA
   ============================================================ */
.raw-data-pre {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 60vh;
    overflow-y: auto;
}

/* ============================================================
   SEND CONFIRMATION
   ============================================================ */
.send-confirm-body {
    padding: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.send-confirm-body p {
    margin-bottom: 12px;
}

.send-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ============================================================
   RESPONSIVE — tablet and below
   ============================================================ */
@media (max-width: 768px) {
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .fun-grid {
        grid-template-columns: 1fr;
    }

    .game-card-body {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
    }

    .control-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tab-strip {
        overflow-x: auto;
    }

    .game-score {
        flex-direction: column;
        gap: 4px;
    }

    .action-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .metrics-row {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 22px;
    }
}
/**
 * Leadoff Cards — CSS additions for the feature picker section.
 * Append this to the bottom of dashboard.css
 *
 * Deploy:
 *   cat ~/Downloads/dashboard_leadoff.css >> /opt/fantasy-newsletter/static/css/dashboard.css
 */

/* ============================================================
   LEADOFF CARDS — feature picker section
   ============================================================ */

.leadoff-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.leadoff-count-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.leadoff-count-badge.complete {
    background: var(--accent-green-dim);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.leadoff-hint {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0 8px;
    font-style: italic;
}

.leadoff-error {
    font-size: 12px;
    color: var(--accent-red);
    padding: 6px 0;
    min-height: 20px;
}

/* ============================================================
   PER-GAME COMMISSIONER COMMENTS (Compose Tab)
   ============================================================ */
.game-comment-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.game-comment-box {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    padding: 10px 12px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.game-comment-box:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.comment-save-status {
    font-size: 11px;
    margin-left: 8px;
}


/* =============================================================
   Extended Standings Sections
   ============================================================= */

.standings-section {
    margin-bottom: 2rem;
}

.standings-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.standings-subtitle {
    font-size: 12px;
    color: var(--text-muted, #5a6475);
    margin: -0.4rem 0 0.75rem 0;
    font-style: italic;
}

.standings-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.standings-col-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.standings-col-header.playoff {
    color: #4ade80;
}

.standings-col-header.consolation {
    color: #f87171;
}

.standings-sub-row {
    font-size: 13px;
    color: var(--text-primary);
    padding: 0.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.standings-record-small {
    font-size: 11px;
    color: var(--text-muted, #5a6475);
}

.standings-tier-block {
    margin-bottom: 1rem;
}

.standings-tier-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.par-positive {
    color: #4ade80;
    font-weight: 600;
}

.par-negative {
    color: #f87171;
    font-weight: 600;
}

/* ============================================================
   RECORD BOOK (5d)
   ============================================================ */

.records-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 24px 0 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.records-section-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 20px 0 10px;
    margin-bottom: 12px;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.record-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.record-card-highlight {
    border-color: var(--accent-yellow);
    background: linear-gradient(135deg, var(--bg-card) 80%, rgba(251, 191, 36, 0.06));
}

.record-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.record-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.record-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

.record-sub {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    margin-top: 2px;
}

.records-pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.record-pos-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 16px;
}

.record-pos-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.record-pos-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.record-pos-medal {
    font-size: 14px;
    flex-shrink: 0;
}

.record-pos-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-pos-pts {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
    flex-shrink: 0;
}

.record-pos-team {
    font-size: 11px;
    color: var(--text-muted);
    padding-left: 22px;
    margin-bottom: 8px;
}

.vs-margin {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
    text-align: right;
}

.vs-margin.home-margin {
    text-align: left;
}

/* Margin of Victory label in game card header */
.mov-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: auto;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mov-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
