/* ============================================
   SIX NATIONS 2026 — STYLESHEET
   ============================================ */

/* --- Variables --- */
:root {
  --navy:       #1B2A4A;
  --navy-dark:  #0D1B2A;
  --gold:       #C9A84C;
  --gold-light: #F0D080;
  --bg:         #F4F6F9;
  --white:      #FFFFFF;
  --text:       #111827;
  --text-muted: #6B7280;
  --border:     #E5E7EB;
  --shadow:     0 2px 10px rgba(0,0,0,0.08);
  --radius:     10px;
  --radius-sm:  6px;
  --transition: 0.2s ease;

  /* Team colours */
  --england:  #CF142B;
  --france:   #002395;
  --ireland:  #169B62;
  --italy:    #0032A0;
  --scotland: #003F87;
  --wales:    #C8102E;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 3.5rem 0; }
.section--tight { padding: 2rem 0; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; }
.section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.text-gold  { color: var(--gold); }

/* --- Header & Nav --- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.nav__logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav__logo span { color: var(--gold); }
.nav__links {
  display: flex;
  gap: 0.25rem;
}
.nav__link {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav__link.active { color: var(--gold); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #243B6A 100%);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
}
.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  opacity: 0.8;
  max-width: 540px;
  margin: 0 auto 2rem;
  font-weight: 400;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn--sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* --- Quick Stats Bar --- */
.stats-bar {
  background: var(--navy);
  color: white;
  padding: 1.25rem 0;
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-item__label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* --- Match Fixture Cards --- */
.fixtures-list { display: flex; flex-direction: column; gap: 1rem; }
.round-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
  padding-left: 0.25rem;
}
.round-header:first-child { margin-top: 0; }

.match-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transition: box-shadow var(--transition);
}
.match-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.match-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.match-card__meta-dot { opacity: 0.4; }
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.team-col { display: flex; align-items: center; gap: 0.75rem; }
.team-col--away { flex-direction: row-reverse; }
.team-badge {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: white;
  flex-shrink: 0;
}
.badge--england  { background: var(--england); }
.badge--france   { background: var(--france); }
.badge--ireland  { background: var(--ireland); }
.badge--italy    { background: var(--italy); }
.badge--scotland { background: var(--scotland); }
.badge--wales    { background: var(--wales); }

.team-name-text { font-weight: 600; font-size: 1rem; }
.team-score {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  min-width: 2.5ch;
  text-align: center;
}
.match-separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.match-separator__vs {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.match-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.status--ft   { background: #F3F4F6; color: var(--text-muted); }
.status--live { background: #FEF2F2; color: #DC2626; }
.status--upcoming { background: #EFF6FF; color: #2563EB; }

/* --- Standings Table --- */
.standings-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.standings-table thead { background: var(--navy); color: white; }
.standings-table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}
.standings-table thead th:nth-child(2) { text-align: left; }
.standings-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.standings-table tbody tr:last-child { border-bottom: none; }
.standings-table tbody tr:hover { background: #F9FAFB; }
.standings-table tbody td { padding: 0.85rem 1rem; text-align: center; }
.standings-table tbody td:nth-child(2) { text-align: left; }
.standings-table .pos { font-weight: 700; color: var(--text-muted); width: 2.5rem; }
.standings-table .pos--1 { color: var(--gold); font-size: 1rem; }
.standings-table .pts { font-weight: 800; color: var(--navy); }
.standings-table .pd--pos { color: #059669; font-weight: 600; }
.standings-table .pd--neg { color: #DC2626; font-weight: 600; }
.team-row { display: flex; align-items: center; gap: 0.6rem; }
.team-row .team-badge-sm {
  width: 28px; height: 28px; border-radius: 5px;
  font-size: 0.55rem; font-weight: 800; color: white;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.champion-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* --- Team Cards --- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.team-card__header {
  height: 90px;
  display: flex;
  align-items: center;
  padding: 1.25rem;
  gap: 1rem;
  position: relative;
}
.team-card__crest {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.team-card__title { font-size: 1.25rem; font-weight: 800; color: white; }
.team-card__rank  { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.team-card__body  { padding: 1.25rem; }
.team-card__stat-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.team-stat { text-align: center; }
.team-stat__val { font-size: 1.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.team-stat__key { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }
.team-card__info { font-size: 0.875rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.3rem; }
.team-card__info strong { color: var(--text); }

/* Team header backgrounds */
.th--england  { background: linear-gradient(135deg, #8B0000, var(--england)); }
.th--france   { background: linear-gradient(135deg, #001a6e, var(--france)); }
.th--ireland  { background: linear-gradient(135deg, #0a5c3a, var(--ireland)); }
.th--italy    { background: linear-gradient(135deg, #001a6e, var(--italy)); }
.th--scotland { background: linear-gradient(135deg, #001a4d, var(--scotland)); }
.th--wales    { background: linear-gradient(135deg, #8B0000, var(--wales)); }

/* --- News --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.news-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
}
.tag--report   { background: #DBEAFE; color: #1D4ED8; }
.tag--analysis { background: #D1FAE5; color: #065F46; }
.tag--feature  { background: #FEF3C7; color: #92400E; }
.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.news-card__excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.news-card__date { font-size: 0.78rem; color: var(--text-muted); }
.news-card__link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
}
.news-card__link:hover { color: var(--gold); }

/* --- Homepage preview sections --- */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition), gap var(--transition);
}
.view-all:hover { color: var(--gold); gap: 0.5rem; }
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-heading-row h2 { font-size: 1.25rem; font-weight: 800; }

/* --- Page Header --- */
.page-header {
  background: var(--navy);
  color: white;
  padding: 2.5rem 0;
}
.page-header__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.page-header__title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 900; }
.page-header__subtitle { opacity: 0.7; margin-top: 0.4rem; font-size: 1rem; }

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-tab {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  background: white;
  color: var(--text-muted);
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active { background: var(--navy); color: white; border-color: var(--navy); }

/* --- Grand Slam Banner --- */
.champion-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.champion-banner__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.champion-banner__title { font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.champion-banner__text  { font-size: 0.9rem; opacity: 0.8; margin-top: 0.2rem; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  text-align: center;
}
.site-footer p + p { margin-top: 0.35rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--gold); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .site-header { position: sticky; }

  .home-grid { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .teams-grid, .news-grid { grid-template-columns: 1fr; }

  .match-teams { gap: 0.5rem; }
  .team-name-text { display: none; }
  .team-score { font-size: 1.5rem; }
  .team-badge { width: 36px; height: 36px; font-size: 0.6rem; }

  .standings-table .hide-mobile { display: none; }

  .hero { padding: 3rem 0; }
  .section { padding: 2.5rem 0; }
}
