@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --orange: #EA9311;
  --green: #67B927;
  --dark-green: #2D6E22;
  --topbar: #666666;
  --bg: #ffffff;
  --bg-alt: #F6F6F5;
  --border: #E0E0E0;
  --text: #333333;
  --text-dim: #666666;
  --win: #1BAC00;
  --win-bg: #E8F8E0;
  --loss: #EF0716;
  --loss-bg: #FDE7E6;
  --pending: #C99A00;
  --pending-bg: #FFF6D9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

h1, h2, .logo, nav a, .section-head {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Topbar */
.topbar {
  background: var(--topbar);
  padding: 8px 0;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Playfair Display', Georgia, serif;
}
/* Main nav row */
header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--orange);
}
.logo span { color: var(--green); }

nav a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  margin-left: 22px;
}
nav a:hover, nav a.active { text-decoration: underline; }

/* Hero */
.hero {
  width: 100%;
  line-height: 0;
  background: #000;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Welcome section */
.welcome p { margin: 0 0 16px; color: #444; font-size: 1.05rem; }
.welcome strong.hl-orange { color: var(--orange); }
.welcome strong.hl-green { color: var(--green); }

/* Section pattern */
section.block {
  padding: 48px 0;
}
section.block.alt { background: var(--bg-alt); }

.section-head {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 20px;
}
.section-head .brand-one { color: var(--orange); }
.section-head .brand-baw { color: var(--green); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.intro-text p { margin: 0 0 16px; color: #444; }
.intro-text strong.hl-orange { color: var(--orange); }
.intro-text strong.hl-green { color: var(--green); }

.week-label {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

/* Formula sections (Heavy Favourites / 5-Team Acca / Wild Card) */
.formula-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}
.formula-section:nth-child(1) { border-top: 5px solid var(--green); }
.formula-section:nth-child(2) { border-top: 5px solid var(--orange); }
.formula-section:nth-child(3) { border-top: 5px solid var(--loss); }

.formula-head {
  padding: 20px 24px 4px;
}
.formula-head h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: #1a1a1a;
}
.formula-head p {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.formula-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .formula-cols { grid-template-columns: 1fr; }
}

.formula-col {
  padding: 20px 24px;
}
.formula-col:first-child {
  border-right: 1px solid var(--border);
}
@media (max-width: 640px) {
  .formula-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
}

.col-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.mini-bet .bet-selection { margin-bottom: 6px; }
.mini-bet .result-pill { margin-top: 8px; display: inline-block; }

.money-col { text-align: left; }
.money-figure {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
}
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 6px;
}
.arrow.up { color: var(--win); }
.arrow.down { color: var(--loss); }
.arrow.flat { color: var(--text-dim); }
.money-sub {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.money-sub.pos { color: var(--win); }
.money-sub.neg { color: var(--loss); }

/* Bet cards (shared mini-bet + table rows) */
.bet-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.bet-selection { font-weight: 700; color: #1a1a1a; }
.bet-meta-inline { font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; }

.result-pill {
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.result-pill.win { background: var(--win-bg); color: var(--win); }
.result-pill.loss { background: var(--loss-bg); color: var(--loss); }
.result-pill.push { background: #EEE; color: var(--text-dim); }
.result-pill.pending { background: var(--pending-bg); color: var(--pending); }

@media (max-width: 640px) {
  .bet-card { grid-template-columns: 1fr; gap: 6px; }
}

/* Summary stats */
.summary-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 4px;
  padding: 14px 20px;
  flex: 1;
  min-width: 140px;
}
.stat-box .label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.stat-box .value { font-size: 1.5rem; font-weight: 800; color: #1a1a1a; }
.stat-box .value.pos { color: var(--win); }
.stat-box .value.neg { color: var(--loss); }
.stat-box .stat-sub { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 32px;
}

/* History table */
table.history {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
}
table.history th {
  background: var(--orange);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.history td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
table.history tbody tr:nth-child(even) { background: var(--bg-alt); }

/* Fixtures & results */
.fixtures-search {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-family: inherit;
}
.fixtures-search:focus {
  outline: none;
  border-color: var(--orange);
}
table.fixtures-table .score-cell {
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}
.league-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .league-cards { grid-template-columns: 1fr; }
}
.league-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 5px solid var(--orange);
  border-radius: 6px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}
.league-card:hover { border-top-color: var(--green); }
.league-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.league-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Blog */
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--orange);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.post-date {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 6px 0 12px;
  color: #1a1a1a;
}
.post-body p { margin: 0 0 12px; color: #444; }

.home-cta {
  display: inline-block;
  margin-top: 8px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.home-cta:hover { text-decoration: underline; }

.empty-note {
  color: var(--text-dim);
  font-style: italic;
}

/* Footer (mirrors topbar) */
footer.site {
  background: var(--topbar);
  padding: 18px 0;
  margin-top: 20px;
}
footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site .logo { font-size: 1.3rem; }
footer.site nav a { color: var(--orange); font-size: 0.9rem; }
footer.site .copyright {
  color: #ccc;
  font-size: 0.75rem;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.disclaimer {
  margin-top: 40px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
