/* Base styles — mirrors best-bets dark theme */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #334155;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #10b981;
    text-decoration: none;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 30px;
}

nav a.active {
    color: #10b981;
}

/* Date Navigation */
.date-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
}

.nav-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: #334155;
    border-color: #10b981;
}

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

.date-display {
    font-size: 28px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

/* Warning Banner */
.warning-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.warning-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
    color: #78350f;
    font-size: 15px;
    line-height: 1.6;
}

.warning-content strong {
    color: #92400e;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

/* League Filter */
.league-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.league-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.league-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* Prop Type Filter */
.prop-type-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 24px 0;
    flex-wrap: wrap;
}

.prop-type-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.prop-type-btn:hover {
    background: #334155;
    border-color: #6366f1;
    color: #e2e8f0;
}

.prop-type-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Picks Grid */
.picks-section {
    margin: 40px 0;
}

.picks-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.tier-section {
    margin-bottom: 30px;
}

.tier-header {
    font-size: 18px;
    margin-bottom: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
}

.tier-header.tier-top_play {
    background: #10b981;
    color: #fff;
}

.tier-header.tier-solid {
    background: #3b82f6;
    color: #fff;
}

.tier-header.tier-avoid {
    background: #ef4444;
    color: #fff;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Prop Tile */
.pick-tile {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.pick-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.pick-tile.tier-top_play {
    border-color: #10b981;
}

.pick-tile.tier-solid {
    border-color: #3b82f6;
}

.pick-tile.tier-avoid {
    border-color: #ef4444;
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.league-badge {
    background: #334155;
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Prop type badges — color-coded */
.prop-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prop-badge.points     { background: #065f46; color: #6ee7b7; }
.prop-badge.rebounds    { background: #1e3a5f; color: #60a5fa; }
.prop-badge.assists     { background: #2d1b69; color: #a78bfa; }
.prop-badge.goals       { background: #7f1d1d; color: #fca5a5; }
.prop-badge.shots_on_goal,
.prop-badge.shots       { background: #78350f; color: #fdba74; }
.prop-badge.player_assists { background: #2d1b69; color: #a78bfa; }

.result-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.result-badge.win     { background: #10b981; color: #fff; }
.result-badge.loss    { background: #ef4444; color: #fff; }
.result-badge.push    { background: #64748b; color: #fff; }
.result-badge.pending { background: #f59e0b; color: #fff; }

.tile-player {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.tile-team {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.tile-pick {
    font-size: 18px;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 4px;
}

.tile-line {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.tile-rolling {
    font-size: 12px;
    color: #64748b;
    background: #0f172a;
    border-radius: 5px;
    padding: 5px 8px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tile-rolling strong {
    color: #e2e8f0;
}

.tile-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.tile-time {
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

.tile-hint {
    font-size: 11px;
    color: #475569;
    text-align: right;
    margin-top: 6px;
}

.pick-tile:hover .tile-hint {
    color: #10b981;
}

/* Error/Empty States */
.error, .no-picks {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 16px;
}

/* Outage Banner */
.outage-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #1e293b;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}

.outage-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.outage-content strong {
    display: block;
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 6px;
}

.outage-content p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 60px 0;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

/* ── Prop Detail Modal ─────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #334155;
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #475569;
    color: #e2e8f0;
}

.modal-tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.modal-player {
    font-size: 22px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.modal-team {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 6px;
}

.modal-matchup {
    font-size: 15px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 16px;
}

.modal-pick-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.modal-pick-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.modal-pick-display {
    font-size: 16px;
    font-weight: bold;
    color: #10b981;
    flex: 1;
}

.modal-result {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.modal-result.win     { background: #10b981; color: #fff; }
.modal-result.loss    { background: #ef4444; color: #fff; }
.modal-result.push    { background: #64748b; color: #fff; }
.modal-result.pending { background: #f59e0b; color: #fff; }

.modal-meta-row {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-meta-row strong {
    color: #e2e8f0;
}

.modal-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #334155;
}

/* Rolling stats table in modal */
.modal-rolling-table {
    background: #0f172a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.rolling-row {
    display: grid;
    grid-template-columns: 1fr 60px 60px 60px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
    font-size: 14px;
}

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

.rolling-row.header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
}

.rolling-label {
    color: #94a3b8;
}

.rolling-val {
    text-align: center;
    color: #e2e8f0;
    font-weight: 600;
}

.rolling-val.highlight {
    color: #10b981;
    font-weight: 700;
}

/* Edge breakdown in modal */
.modal-edge-section {
    background: #0f172a;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.edge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #1e293b;
}

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

.edge-label { color: #64748b; }
.edge-val { color: #e2e8f0; font-weight: 500; }

.modal-pending-note {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    font-style: italic;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .tiles-container {
        grid-template-columns: 1fr;
    }

    .date-nav {
        gap: 10px;
    }

    .date-display {
        font-size: 20px;
    }

    .prop-type-filter {
        gap: 6px;
    }

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