/*
Theme Name: Matchday
Theme URI: https://example.com/matchday
Author: Your Name
Description: A bold sports news theme. A scoreboard-style live scores strip, a full-width lead story with overlapping cards, match scoreboards on reports with score chips on cards, a league table, per-sport sections and a features band. Light and dark modes, self-hosted fonts and one-click demo content with original artwork.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matchday
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #e6ebe6;
  --text: #0e1712;
  --text-2: #33413a;
  --muted: #62716a;
  --line: #d7dfd8;
  --accent: #15803d;
  --accent-ink: #ffffff;
  --pitch: #0c2a1d;
  --board: #081c13;
  --led: #ffb627;
  --red: #e5383b;
  --font-display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 800;
  --track-display: 0.005em;
  --lh-display: 1.02;
  --radius: 12px;
  --radius-ui: 8px;
  --footer-bg: #0c2a1d;
  --footer-text: #eef4ef;
  --footer-muted: #9db4a6;
  --footer-line: rgba(255,255,255,.12);
  --overlay: linear-gradient(180deg, rgba(6,20,13,0) 20%, rgba(6,20,13,.92) 100%);
  --accent-hover: #0c2a1d;
  --accent-hover-ink: #ffffff;
}
:root[data-theme="dark"] {
  --bg: #0a110d;
  --surface: #111a15;
  --surface-2: #16211b;
  --text: #eaf1ec;
  --text-2: #c2cec6;
  --muted: #8da197;
  --line: #23322a;
  --accent: #34c46e;
  --accent-ink: #06140c;
  --pitch: #06160e;
  --footer-bg: #06160e;
  --accent-hover: #eaf1ec;
  --accent-hover-ink: #0a110d;
}

body { font-size: 16.5px; }
.card__title, .mini__title, .section-title, .widget-title, .entry-title { letter-spacing: .005em; }
.card__title { font-size: 1.45rem; line-height: 1.02; }
.mini__title { font-size: 1.2rem; line-height: 1.05; font-family: var(--font-display); font-weight: 800; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.widget-title { font-size: 1.6rem; }
.cat, .entry-cat { display: inline-block; align-self: flex-start; padding: .1rem .5rem; border-radius: 5px; font-family: var(--font-display); font-size: .95rem; font-weight: 800; letter-spacing: .02em; background: hsl(var(--cat-hue, 145) 70% 38%); color: #fff; }
.cat:hover, .entry-cat:hover { text-decoration: none; filter: brightness(1.12); }

/* ---------- Scores strip ---------- */
.md-scores { background: var(--board); color: #d6e2da; }
.md-scores__inner { display: flex; align-items: stretch; min-height: 64px; }
.md-scores__label { display: flex; align-items: center; padding-right: 1.1rem; margin-right: .2rem; border-right: 1px solid rgba(255,255,255,.12); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--led); white-space: nowrap; }
.md-scores__list { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.md-scores__list::-webkit-scrollbar { display: none; }
.md-score { display: grid; grid-template-columns: auto auto; grid-template-areas: "st st" "t1 s1" "t2 s2"; column-gap: 1.1rem; align-content: center; padding: .4rem 1.15rem; border-right: 1px solid rgba(255,255,255,.1); font-size: .82rem; line-height: 1.32; white-space: nowrap; }
.md-score__status { grid-area: st; font-size: .7rem; font-weight: 600; color: #8ea799; }
.md-score.is-live .md-score__status { color: #ff7577; }
.md-score.is-live .md-score__status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .35rem; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.md-score__home { grid-area: t1; }
.md-score__away { grid-area: t2; }
.md-score__hs { grid-area: s1; }
.md-score__as { grid-area: s2; }
.md-score__hs, .md-score__as { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; line-height: 1.1; color: var(--led); text-align: right; font-variant-numeric: tabular-nums; }
.md-score.is-upcoming .md-score__status { color: var(--led); }

/* ---------- Header ---------- */
.site-header { background: var(--pitch); border-bottom: 3px solid var(--led); }
.site-header .brand__name { color: #fff; font-size: 2.1rem; font-weight: 900; letter-spacing: .01em; }
.brand__mark { width: 38px; height: 38px; }
.primary-menu > li > a { color: #cfe0d5; font-family: var(--font-display); font-size: 1.18rem; font-weight: 800; letter-spacing: .02em; }
.primary-menu > li > a:hover, .primary-menu .current-menu-item > a { color: #fff; background: rgba(255,255,255,.09); }
.site-header .icon-btn { color: #fff; background: transparent; border-color: rgba(255,255,255,.2); }
.site-header .icon-btn:hover { background: rgba(255,255,255,.09); }
.header-cta { background: var(--led); color: #0c2a1d; font-weight: 700; }
.header-cta:hover { background: #fff; color: #0c2a1d; }

/* ---------- Hero ---------- */
.md-hero { padding-top: clamp(18px, 3vw, 30px); background: linear-gradient(180deg, var(--pitch) 0, var(--pitch) calc(100% - 64px), transparent calc(100% - 64px)); }
.md-lead.card-overlay { min-height: clamp(460px, 46vw, 610px); border-radius: 16px; }
.md-lead .card__body { padding: clamp(24px, 3.5vw, 52px) clamp(24px, 3.5vw, 52px) clamp(124px, 11vw, 156px); gap: .8rem; }
.md-lead .card__title { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: .92; max-width: 15ch; font-weight: 900; }
.md-lead .card__excerpt { max-width: 54ch; font-size: 1.08rem; color: rgba(255,255,255,.86); }
.md-hero__trio { position: relative; z-index: 2; display: grid; gap: 14px; margin: -100px clamp(12px, 3vw, 36px) 0; }
@media (min-width: 820px) { .md-hero__trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.md-hero__trio .card-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 22px 44px -26px rgba(6,20,13,.6); }
.md-hero__trio .media { border-radius: 10px; }
.md-hero__trio .card__title { font-size: 1.25rem; }

/* ---------- Latest, reports, blocks ---------- */
.md-latest__list .card-row { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.md-latest__list .card-row:first-child { padding-top: 0; }
.md-latest__list .card__title { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
@media (max-width: 560px) { .md-latest__list .card-row { grid-template-columns: minmax(0, 1fr); } }
.md-reports, .md-block { margin-top: clamp(44px, 5vw, 64px); }
.md-block .section-head { border-bottom: 4px solid hsl(var(--cat-hue) 70% 40%); padding-bottom: .5rem; }
.md-block__grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .md-block__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.md-block__main .card__title { font-size: 1.8rem; }
.md-block .card-row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; }
.md-chip { position: absolute; right: 10px; top: 10px; z-index: 2; padding: .12rem .55rem; border-radius: 7px; background: var(--board); color: var(--led); font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.md-features { background: var(--pitch); }
.md-features .section-title { color: #fff; }
.md-features .section-head { border-bottom-color: rgba(255,255,255,.2); }
.md-features .section-link { color: var(--led); }
.md-features .card-overlay { min-height: 400px; }

/* ---------- Sidebar ---------- */
.md-table table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.md-table th, .md-table td { padding: .5rem .3rem; border-bottom: 1px solid var(--line); text-align: center; }
.md-table thead th { font-size: .75rem; font-weight: 600; color: var(--muted); }
.md-table tbody th { font-weight: 600; text-align: left; }
.md-table td:first-child { width: 1.6rem; color: var(--muted); }
.md-table abbr { text-decoration: none; }
.md-table__pts { font-weight: 800; }
.md-table tbody tr:first-child { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.signup--sidebar { background: var(--pitch); color: #eef4ef; }
.signup--sidebar .signup__title { font-size: 1.7rem; }
.signup--sidebar .signup__button { background: var(--led); color: #0c2a1d; }

/* ---------- Scoreboard on reports ---------- */
.md-board { margin: 0 0 2.2rem; padding: 1.2rem 1.4rem 1.3rem; border-radius: 16px; background: var(--board); color: #e5eee8; text-align: center; }
.md-board .md-board__meta { margin: 0 0 .7rem; font-size: .88rem; color: #9db4a6; }
.md-board__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(.6rem, 2vw, 1.4rem); align-items: center; }
.md-board__team { font-family: var(--font-display); font-size: clamp(1.35rem, 3.2vw, 2rem); font-weight: 800; line-height: 1.05; text-align: right; }
.md-board__team--away { text-align: left; }
.md-board__score { display: flex; gap: .45rem; }
.md-board__score span { min-width: 2.3ch; padding: .12rem .45rem; border-radius: 9px; background: #10301f; color: var(--led); font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.md-board .md-board__status { margin: .8rem 0 0; font-size: .88rem; font-weight: 600; color: var(--led); }

/* ---------- Single ---------- */
.entry-title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .96; font-weight: 900; }
.entry-content blockquote { border-left-color: var(--led); font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.site-footer .brand__name { color: #fff; }
.site-footer .signup { background: rgba(255,255,255,.05); color: var(--footer-text); padding: 1.4rem; }
.site-footer .signup__title { font-size: 1.5rem; }
.site-footer .signup__button { background: var(--led); color: #0c2a1d; }
