/*
Theme Name: Football Central
Theme URI: https://example.com/football-central
Author: Your Studio
Author URI: https://example.com
Description: A clean, professional WordPress theme built for football/soccer news, match reports, and tournament coverage. Features a scoreboard-style ticker, condensed sporty headline type, and a card-based news grid.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: football-central
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Color */
  --navy-950: #0a1628;
  --navy-800: #13233f;
  --navy-700: #1b2f52;
  --pitch-600: #1e7a4c;
  --pitch-500: #259960;
  --gold-500: #c9a227;
  --gold-400: #ddbe4f;
  --paper-50: #f5f6f4;
  --paper-100: #eceee9;
  --ink-900: #10151c;
  --ink-700: #2a323c;
  --slate-500: #5b6672;
  --slate-300: #a7b0ba;
  --white: #ffffff;
  --line: #dfe3e0;

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;

  /* Layout */
  --wrap: 1200px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(10, 22, 40, 0.06), 0 4px 16px rgba(10, 22, 40, 0.06);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-950);
}
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pitch-600);
  font-weight: 600;
}

/* ==========================================================================
   3. SCOREBOARD TICKER (signature element)
   ========================================================================== */
.fc-ticker {
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-700);
  overflow: hidden;
  white-space: nowrap;
}
.fc-ticker__track {
  display: inline-flex;
  align-items: center;
  animation: fc-scroll 38s linear infinite;
  padding: 8px 0;
}
.fc-ticker:hover .fc-ticker__track { animation-play-state: paused; }
.fc-ticker__item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-300);
  padding: 0 28px;
  border-right: 1px solid var(--navy-700);
  white-space: nowrap;
}
.fc-ticker__item strong { color: var(--white); font-weight: 600; }
.fc-ticker__item .fc-live {
  color: var(--gold-400);
  font-weight: 600;
  margin-right: 6px;
}
@keyframes fc-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .fc-ticker__track { animation: none; overflow-x: auto; }
}

/* ==========================================================================
   4. SITE HEADER
   ========================================================================== */
.fc-header {
  background: var(--navy-950);
  color: var(--white);
}
.fc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.fc-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fc-logo span {
  color: var(--gold-500);
}
.fc-nav {
  display: flex;
  gap: 4px;
}
.fc-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.fc-nav a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-300);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.fc-nav a:hover,
.fc-nav a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--pitch-500);
}
.fc-nav .current-menu-item > a {
  color: var(--white);
  border-bottom-color: var(--gold-500);
}
.fc-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-700);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

/* ==========================================================================
   5. HERO / FEATURED
   ========================================================================== */
.fc-hero {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
}
.fc-hero__media {
  position: relative;
  aspect-ratio: 16/8;
  overflow: hidden;
}
.fc-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.75;
}
.fc-hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.15) 0%, rgba(10,22,40,0.95) 92%);
}
.fc-hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 0 40px;
}
.fc-hero__title {
  font-size: clamp(30px, 5vw, 54px);
  max-width: 820px;
  color: var(--white);
  border-left: 5px solid var(--gold-500);
  padding-left: 18px;
  margin: 10px 0 12px;
}
.fc-hero__excerpt {
  max-width: 620px;
  color: var(--slate-300);
  font-size: 16px;
  padding-left: 23px;
}

/* ==========================================================================
   6. NEWS GRID / CARDS
   ========================================================================== */
.fc-main {
  padding: 48px 0 64px;
}
.fc-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.fc-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 3px solid var(--navy-950);
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.fc-section-heading h2 {
  font-size: 22px;
  margin: 0;
}
.fc-section-heading a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--pitch-600);
  font-weight: 600;
}
.fc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.fc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fc-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-100); }
.fc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.fc-card:hover .fc-card__media img { transform: scale(1.04); }
.fc-card__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.fc-card__title {
  font-size: 19px;
  margin: 8px 0 8px;
}
.fc-card__title a:hover { color: var(--pitch-600); }
.fc-card__excerpt {
  color: var(--slate-500);
  font-size: 14.5px;
  margin: 0 0 12px;
  flex: 1;
}
.fc-card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-500);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  gap: 10px;
}

/* Featured (larger) card variant used for first item in loop */
.fc-card--feature {
  grid-column: span 2;
  flex-direction: row;
}
.fc-card--feature .fc-card__media { flex: 0 0 46%; aspect-ratio: auto; }
.fc-card--feature .fc-card__body { padding: 22px 26px; }
.fc-card--feature .fc-card__title { font-size: 24px; }

/* ==========================================================================
   7. SIDEBAR
   ========================================================================== */
.fc-sidebar .widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 22px;
  margin-bottom: 26px;
}
.fc-sidebar .widget-title {
  font-size: 16px;
  border-bottom: 2px solid var(--navy-950);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.fc-standings { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fc-standings th, .fc-standings td { padding: 7px 6px; text-align: left; }
.fc-standings th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--slate-500); border-bottom: 1px solid var(--line); }
.fc-standings td:first-child, .fc-standings th:first-child { width: 24px; color: var(--slate-500); }
.fc-standings tr:not(:last-child) td { border-bottom: 1px solid var(--paper-100); }
.fc-standings tr:nth-child(-n+4) td:first-child { color: var(--pitch-600); font-weight: 700; }

/* ==========================================================================
   8. SINGLE POST
   ========================================================================== */
.fc-article-header {
  background: var(--navy-950);
  color: var(--white);
  padding: 40px 0 34px;
}
.fc-article-header .eyebrow { color: var(--gold-400); }
.fc-article-header h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  max-width: 900px;
  margin: 12px 0 16px;
}
.fc-article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-300);
}
.fc-article-figure {
  margin: 0;
}
.fc-article-figure img { width: 100%; }
.fc-article-figure figcaption {
  font-size: 13px;
  color: var(--slate-500);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.fc-article-body {
  max-width: 740px;
  margin: 36px auto 0;
  font-size: 18px;
  color: var(--ink-700);
}
.fc-article-body > *:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  float: left;
  line-height: 0.8;
  padding: 8px 10px 0 0;
  color: var(--navy-950);
}
.fc-article-body p { margin: 0 0 22px; }
.fc-article-body h2 { font-size: 24px; margin-top: 40px; }
.fc-article-body h3 { font-size: 19px; margin-top: 30px; }
.fc-article-body blockquote {
  border-left: 4px solid var(--gold-500);
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--ink-700);
}
.fc-article-body img { border-radius: var(--radius); margin: 20px 0; }
.fc-tags {
  max-width: 740px;
  margin: 30px auto 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fc-tags a {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--paper-100);
  color: var(--ink-700);
  padding: 6px 12px;
  border-radius: 999px;
}
.fc-tags a:hover { background: var(--pitch-600); color: var(--white); }

.fc-related {
  max-width: 740px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 3px solid var(--navy-950);
}
.fc-related h2 { font-size: 18px; margin-bottom: 18px; }
.fc-related ul { display: grid; gap: 14px; }
.fc-related li { display: flex; gap: 12px; align-items: baseline; }
.fc-related .eyebrow { min-width: 90px; }

/* ==========================================================================
   9. ARCHIVE
   ========================================================================== */
.fc-archive-header {
  background: var(--navy-700);
  color: var(--white);
  padding: 36px 0;
}
.fc-archive-header h1 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 38px);
  margin: 6px 0 0;
}
.fc-archive-header p { color: var(--slate-300); margin: 10px 0 0; }
.fc-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 40px 0;
}

/* ==========================================================================
   10. PAGE (static content)
   ========================================================================== */
.fc-page-header {
  background: var(--navy-950);
  color: var(--white);
  padding: 44px 0;
  text-align: center;
}
.fc-page-header h1 { color: var(--white); }
.fc-page-body {
  max-width: 740px;
  margin: 40px auto;
  font-size: 17px;
  color: var(--ink-700);
}
.fc-page-body p { margin: 0 0 20px; }

/* ==========================================================================
   11. PAGINATION
   ========================================================================== */
.fc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 10px;
}
.fc-pagination a, .fc-pagination span {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-700);
}
.fc-pagination .current { background: var(--navy-950); color: var(--white); border-color: var(--navy-950); }
.fc-pagination a:hover { border-color: var(--pitch-600); color: var(--pitch-600); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.fc-footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 48px 0 26px;
  margin-top: 40px;
}
.fc-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--navy-700);
}
.fc-footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 14px;
}
.fc-footer p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.fc-footer ul li { margin-bottom: 8px; }
.fc-footer a { font-size: 14px; }
.fc-footer a:hover { color: var(--white); }
.fc-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 880px) {
  .fc-layout { grid-template-columns: 1fr; }
  .fc-grid { grid-template-columns: 1fr; }
  .fc-card--feature { grid-column: span 1; flex-direction: column; }
  .fc-card--feature .fc-card__media { flex: none; aspect-ratio: 16/10; }
  .fc-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fc-nav { display: none; }
  .fc-nav.is-open { display: block; width: 100%; }
  .fc-nav.is-open ul { flex-direction: column; }
  .fc-menu-toggle { display: inline-block; }
  .fc-header__inner { flex-wrap: wrap; }
  .fc-archive-grid { grid-template-columns: 1fr; }
}
