:root {
    --pitch: #172554;
    --gold: #eab308;
}

body { font-family: Outfit, sans-serif; }

.nav-link {
    display: block;
    padding: 0.55rem 0.85rem;
    border-radius: 0.7rem;
    color: #dbeafe;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-link {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 0.8rem;
    color: #bfdbfe;
    font-weight: 600;
}

.admin-link:hover,
.admin-link-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.pitch-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.16), transparent 28%),
        linear-gradient(135deg, #172554 0%, #1e3a8a 55%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.pitch-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(transparent 48%, rgba(255,255,255,0.08) 48%, rgba(255,255,255,0.08) 52%, transparent 52%),
        radial-gradient(circle at 50% 50%, transparent 18%, rgba(255,255,255,0.08) 19%, rgba(255,255,255,0.08) 20%, transparent 21%);
    pointer-events: none;
}

.pitch-hero > * { position: relative; z-index: 1; }

.page-hero {
    background: linear-gradient(135deg, #172554, #1d4ed8);
    color: #eff6ff;
    padding: 3.5rem 0 4.5rem;
}

.page-hero h1 {
    margin-top: 0.4rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
}

.page-kicker {
    color: #facc15;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-card,
.panel,
.match-card,
.team-card,
.table-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.45);
}

.stat-card,
.panel,
.match-card,
.team-card { padding: 1.25rem; }

.stat-card:hover,
.team-card:hover,
.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -18px rgba(15, 23, 42, 0.55);
    transition: 180ms ease;
}

.stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: #dbeafe;
    color: #1d4ed8;
    margin-bottom: 0.75rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h2,
.section-title,
.week-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #172554;
}

.week-heading {
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #eab308;
    display: inline-block;
}

.btn-primary,
.btn-gold,
.btn-secondary,
.btn-danger,
.btn-forfeit,
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-primary { background: #1d4ed8; color: #fff; }
.btn-primary:hover { background: #1e40af; }
.btn-gold { background: #eab308; color: #172554; }
.btn-gold:hover { background: #ca8a04; }
.btn-secondary { background: #f1f5f9; color: #0f172a; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: #e11d48; color: #fff; }
.btn-forfeit { background: #d97706; color: #fff; }
.btn-forfeit:hover { background: #b45309; }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.field-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    padding: 0.65rem 0.8rem;
    background: #fff;
}

.field-input:focus {
    outline: 2px solid #2563eb;
    border-color: #2563eb;
}

.readonly-field {
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 0.65rem 0.8rem;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

@media (min-width: 768px) {
    .filter-bar { grid-template-columns: 1fr 1fr auto; align-items: end; }
    .filter-bar-wide { grid-template-columns: 1fr 1fr 1fr auto; }
}

.table-shell { overflow-x: auto; }

.league-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.league-table th,
.admin-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 0.85rem 0.9rem;
    background: #f8fafc;
}

.league-table td,
.admin-table td {
    padding: 0.85rem 0.9rem;
    border-top: 1px solid #e2e8f0;
    white-space: nowrap;
}

.row-qualify { background: #eff6ff; }
.row-relegate { background: #fff1f2; box-shadow: inset 3px 0 0 #e11d48; }

.pos-badge {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.team-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: #0f172a;
}

.team-logo { width: 1.8rem; height: 1.8rem; object-fit: contain; }
.team-logo-lg { width: 2.6rem; height: 2.6rem; object-fit: contain; }

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    font-weight: 700;
}

.score-box,
.vs-box {
    min-width: 5.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #172554;
}

.vs-box {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: #64748b;
}

.match-meta {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

.team-card { text-align: center; display: block; }
.empty-state {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem;
    color: #64748b;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-scheduled { background: #e0f2fe; color: #0369a1; }
.status-completed { background: #dcfce7; color: #166534; }
.status-forfeited { background: #ffedd5; color: #9a3412; }
