/* Tournament Tracker — page-specific styles */
/* Base styles (body, .container, .nav-header, etc.) come from best-bets-performance.css */

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155;
}

/* Scoreboard stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
}

.stat-card-highlight {
    border-color: #10b981;
    background: linear-gradient(135deg, #1e293b 0%, rgba(16, 185, 129, 0.08) 100%);
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e2e8f0;
}

.stat-sublabel {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.3rem;
}

.stat-positive { color: #10b981; }
.stat-negative { color: #ef4444; }

/* Bet type filter */
.bet-type-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.bet-type-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.bet-type-btn:hover {
    border-color: #10b981;
    color: #e2e8f0;
}

.bet-type-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: #0f172a;
    font-weight: 600;
}

/* Data tables (rounds table) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    background: #1e293b;
    color: #94a3b8;
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid #334155;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.data-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #1e293b;
    color: #e2e8f0;
    white-space: nowrap;
}

.data-table tr:hover {
    background: rgba(16, 185, 129, 0.05);
}

/* Round badge */
.round-badge {
    display: inline-block;
    background: #334155;
    color: #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Tier badges */
.tier-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.3rem;
}

.tier-top {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.tier-solid {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.tier-avoid {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Result icons */
.result-win { color: #10b981; font-weight: 700; font-size: 1.1em; }
.result-loss { color: #ef4444; font-weight: 700; font-size: 1.1em; }
.result-push { color: #f59e0b; font-size: 1.1em; }
.result-pending { color: #475569; font-size: 1em; }

.muted { color: #475569; }

/* ========================================
   GAME CARDS
   ======================================== */
.game-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
}

.game-card-win {
    border-left: 3px solid #10b981;
}

.game-card-loss {
    border-left: 3px solid #ef4444;
}

.game-card-split {
    border-left: 3px solid #f59e0b;
}

.game-card-header {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
}

.game-time {
    color: #64748b;
    margin-left: 0.5rem;
}

/* Score grid: 3-column layout */
.score-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.2rem 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.score-header {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #334155;
}

.score-team {
    color: #e2e8f0;
    font-weight: 600;
}

.score-pred {
    color: #94a3b8;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.score-actual {
    color: #e2e8f0;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.score-line {
    color: #64748b;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Pick rows */
.game-card-picks {
    border-top: 1px solid #334155;
    padding-top: 0.6rem;
}

.pick-row {
    font-size: 0.82rem;
    color: #e2e8f0;
    padding: 0.2rem 0;
}

.pick-type {
    display: inline-block;
    width: 2.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
}

.pick-edge {
    color: #64748b;
    font-size: 0.75rem;
}

/* Loading & empty */
.loading {
    text-align: center;
    color: #94a3b8;
    padding: 3rem;
    font-size: 1.1rem;
}

.empty-message {
    text-align: center;
    color: #64748b;
    padding: 3rem;
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .score-grid {
        gap: 0.2rem 0.8rem;
        font-size: 0.8rem;
    }

    .game-card {
        padding: 0.8rem;
    }
}

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

    .bet-type-filter {
        flex-wrap: wrap;
    }
}
