/* ── FantasyCombine.AI Design Tokens ──────────────────── */
:root {
    --fc-navy: #0A0F1E;
    --fc-surface: #111827;
    --fc-drawer: #0D1424;
    --fc-cyan: #00C8F0;
    --fc-text: #E8EAF0;
    --fc-muted: #6B7280;
    --fc-border: #1F2937;
    --fc-sidebar-w: 220px;
}

/* ── App Bar ───────────────────────────────────────────── */
.fc-appbar {
    border-bottom: 1px solid var(--fc-border) !important;
}

/* ── Logo ──────────────────────────────────────────────── */
.fc-logo {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--fc-text);
}

.fc-logo-accent {
    color: var(--fc-cyan);
}

/* ── Drawer ────────────────────────────────────────────── */
.fc-drawer {
    border-right: 1px solid var(--fc-border) !important;
    background-color: var(--fc-drawer) !important;
}

.fc-drawer-header {
    padding: 16px 16px 8px 16px;
    border-bottom: 1px solid var(--fc-border);
}

.fc-drawer-label {
    color: var(--fc-muted);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ── Nav Menu ──────────────────────────────────────────── */
.fc-navmenu .mud-nav-link {
    border-radius: 6px;
    margin: 2px 8px;
    font-size: 0.875rem;
    color: var(--fc-text) !important;
    transition: background 0.15s ease;
}

    .fc-navmenu .mud-nav-link:hover {
        background: rgba(0, 200, 240, 0.08) !important;
    }

    .fc-navmenu .mud-nav-link.active {
        background: rgba(0, 200, 240, 0.15) !important;
        color: var(--fc-cyan) !important;
        font-weight: 600;
    }

/* ── Main Content ──────────────────────────────────────── */
.fc-main-content {
    background-color: var(--fc-navy);
    min-height: 100vh;
}

/* ── Bottom Nav (xs only) ──────────────────────────────── */
.fc-bottom-nav {
    background-color: var(--fc-surface) !important;
    border-top: 1px solid var(--fc-border) !important;
}

    .fc-bottom-nav .mud-bottom-navigation-item-label {
        font-size: 0.65rem;
    }

/* ── Mobile padding — clear bottom nav ────────────────── */
@media (max-width: 599px) {
    .pb-16 {
        padding-bottom: 64px !important;
    }
}

/* ── Numbers use JetBrains Mono ────────────────────────── */
.font-mono,
td.numeric,
.fc-stat {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
/* ── Page Header ───────────────────────────────────────── */
.fc-page-header {
    border-bottom: 1px solid var(--fc-border);
    padding-bottom: 12px;
}

.fc-page-title {
    color: var(--fc-text);
    font-weight: 700;
}

/* ── Controls Bar ──────────────────────────────────────── */
.fc-controls-bar {
    background: var(--fc-surface) !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 8px !important;
}

/* ── Tabs ──────────────────────────────────────────────── */
.fc-tabs .mud-tab {
    color: var(--fc-muted);
    font-weight: 500;
}

    .fc-tabs .mud-tab.mud-tab-active {
        color: var(--fc-cyan) !important;
    }

/* ── Table ─────────────────────────────────────────────── */
.fc-table-paper {
    background: var(--fc-surface) !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.fc-table {
    background: transparent !important;
}

    .fc-table thead tr th {
        background: var(--fc-drawer) !important;
        color: var(--fc-muted) !important;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }

    .fc-table tbody tr:hover {
        background: rgba(0,200,240,0.05) !important;
    }

/* ── Stat colours ──────────────────────────────────────── */
.fc-cyan {
    color: #00C8F0 !important;
}

.fc-ceiling {
    color: #A78BFA !important;
}

.fc-boom {
    color: #34D399 !important;
}

.fc-bust {
    color: #F87171 !important;
}

.fc-favoured {
    color: #34D399 !important;
}

.fc-dog {
    color: #F87171 !important;
}

/* ── Position Chips ────────────────────────────────────── */
.fc-chip-qb {
    background: rgba(59,130,246,0.2) !important;
    color: #93C5FD !important;
}

.fc-chip-rb {
    background: rgba(52,211,153,0.2) !important;
    color: #6EE7B7 !important;
}

.fc-chip-wr {
    background: rgba(167,139,250,0.2) !important;
    color: #C4B5FD !important;
}

.fc-chip-te {
    background: rgba(251,191,36,0.2) !important;
    color: #FDE68A !important;
}

/* ── Game Script Chips ─────────────────────────────────── */
.fc-chip-blowout {
    background: rgba(52,211,153,0.15) !important;
    color: #6EE7B7 !important;
}

.fc-chip-trailing {
    background: rgba(248,113,113,0.15) !important;
    color: #FCA5A5 !important;
}

.fc-chip-competitive {
    background: rgba(0,200,240,0.12) !important;
    color: #67E8F9 !important;
}

.fc-chip-neutral {
    background: rgba(107,114,128,0.2) !important;
    color: #9CA3AF !important;
}

/* ── Stat Card (Home) ──────────────────────────────────── */
.fc-stat-card {
    background: var(--fc-surface) !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.fc-stat-card-icon {
    color: var(--fc-cyan);
    opacity: 0.6;
    font-size: 1.4rem;
}

.fc-stat-card-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    line-height: 1;
}

/* ── Quick Link Cards (Home) ───────────────────────────── */
.fc-quick-link {
    background: var(--fc-surface) !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .fc-quick-link:hover {
        border-color: var(--fc-cyan) !important;
        background: rgba(0,200,240,0.05) !important;
    }

.fc-quick-link-icon {
    color: var(--fc-cyan);
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* ── Generic Card ───────────────────────────────────────── */
.fc-card {
    background: var(--fc-surface) !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 12px !important;
}

.fc-section-label {
    color: var(--fc-muted);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* ── Player Pool List ───────────────────────────────────── */
.fc-pool-list {
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fc-pool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease;
}

    .fc-pool-row:hover {
        background: rgba(0,200,240,0.06);
    }

.fc-pool-row--locked {
    background: rgba(0,200,240,0.12) !important;
    border-color: var(--fc-cyan) !important;
}

.fc-pool-row--excluded {
    background: rgba(248,113,113,0.08) !important;
    border-color: #F87171 !important;
    opacity: 0.6;
}

.fc-pool-row-left {
    display: flex;
    flex-direction: column;
}

.fc-pool-row-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-pool-badge {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.fc-pos-chip {
    cursor: pointer;
}

/* ── Lineup Slots ───────────────────────────────────────── */
.fc-slot-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fc-slot-label {
    color: var(--fc-muted);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.fc-lineup-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0,200,240,0.04);
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    transition: border-color 0.15s;
}

    .fc-lineup-slot:hover {
        border-color: rgba(0,200,240,0.3);
    }

.fc-slot-pos-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fc-slot-info {
    flex: 1;
}

.fc-slot-pts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fc-slot-risk {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 12px;
}

/* ── Empty State ────────────────────────────────────────── */
.fc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

/* ── Player Detail Header ───────────────────────────────── */
.fc-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--fc-border);
    padding-bottom: 16px;
}

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

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

.fc-player-pos-badge {
    width: 52px;
    height: 52px;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* ── Distribution Bar ───────────────────────────────────── */
.fc-dist-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-dist-track {
    flex: 1;
    height: 8px;
    background: var(--fc-border);
    border-radius: 4px;
    position: relative;
}

.fc-dist-fill {
    height: 100%;
    background: linear-gradient(90deg, #F87171, #00C8F0);
    border-radius: 4px;
}

.fc-dist-median {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
}

.fc-dist-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.fc-dist-label--right {
    align-items: flex-end;
}

/* ── Stat Mini ──────────────────────────────────────────── */
.fc-stat-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: rgba(0,200,240,0.03);
    border: 1px solid var(--fc-border);
    border-radius: 8px;
}

/* ── Usage Metrics ──────────────────────────────────────── */
.fc-metric-label {
    color: var(--fc-muted);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.fc-usage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--fc-border);
}

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

/* ── Chip variants for player header ────────────────────── */
.fc-chip-favoured-lg {
    background: rgba(52,211,153,0.2) !important;
    color: #34D399 !important;
}

.fc-chip-dog-lg {
    background: rgba(248,113,113,0.2) !important;
    color: #F87171 !important;
}

/* ── Admin Color Tokens ─────────────────────────────────── */
:root {
    --fc-amber: #F59E0B;
    --fc-amber-dim: #92400E;
}

/* ── Admin Top Stripe ───────────────────────────────────── */
.fc-admin-stripe {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--fc-amber);
    color: #0A0F1E;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fc-admin-stripe-spacer {
    height: 24px;
}

.fc-admin-appbar {
    margin-top: 24px !important;
    background: #1A0F00 !important;
    border-bottom: 1px solid #2D1F00 !important;
}

.fc-admin-drawer {
    background: #1A0F00 !important;
    border-right: 1px solid #2D1F00 !important;
    margin-top: 80px !important;
}

.fc-admin-drawer-header {
    padding: 16px;
    border-bottom: 1px solid #2D1F00;
}

.fc-admin-section-label {
    color: var(--fc-amber);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.fc-admin-main {
    background: #0A0F1E;
    min-height: 100vh;
}

.fc-admin-logo {
    font-weight: 700;
    color: #E8EAF0;
}

.fc-admin-logo-accent {
    color: var(--fc-amber);
}

.fc-admin-badge {
    background: var(--fc-amber) !important;
    color: #0A0F1E !important;
    font-weight: 800 !important;
    font-size: 0.6rem !important;
}

/* ── Admin Stat Cards ───────────────────────────────────── */
.fc-admin-stat-card {
    background: #111827 !important;
    border: 1px solid #2D1F00 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    cursor: pointer;
    transition: border-color 0.15s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fc-admin-stat-card:hover {
    border-color: var(--fc-amber) !important;
}

.fc-admin-stat-icon {
    color: var(--fc-amber);
    opacity: 0.6;
    font-size: 1.4rem;
}

.fc-amber {
    color: var(--fc-amber) !important;
}

/* ── Admin Table ────────────────────────────────────────── */
.fc-admin-table-paper {
    background: #111827 !important;
    border: 1px solid #2D1F00 !important;
    border-radius: 8px !important;
    overflow: hidden;
}

/* ── Sleeper Link Steps ──────────────────────────────────── */
.fc-step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fc-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,200,240,0.15);
    border: 1px solid var(--fc-cyan);
    color: var(--fc-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── League Bar ─────────────────────────────────────────── */
.fc-league-bar {
    background: var(--fc-surface);
    border-bottom: 1px solid var(--fc-border);
    padding: 8px 24px;
    display: flex;
    align-items: center;
}

.fc-league-selector {
    width: 100%;
    max-width: 480px;
}