/*
Theme Name: WorldCupBetting
Theme URI: https://worldcupbetting.online
Author: 69 Media
Description: Custom WordPress theme for WorldCupBetting.online, a World Cup information, previews, and affiliate offer site.
Version: 0.3.0
Text Domain: worldcupbetting
*/

:root {
  --ink: #f7fbff;
  --muted: #aeb9c3;
  --paper: #ffffff;
  --paper-muted: #e9eef2;
  --night: #071012;
  --night-2: #0d1d20;
  --panel: rgba(8, 20, 23, 0.76);
  --line: rgba(255, 255, 255, 0.16);
  --green: #24c86a;
  --green-dark: #10693e;
  --gold: #f2b84b;
  --red: #e13b46;
  --cyan: #44c8e8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8f7ff;
  font-size: 0.84rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.screen-reader-text:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  border-radius: 8px;
  padding: 12px 16px;
  background: #fff;
  color: #071012;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 12, 14, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 222px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 20%),
    linear-gradient(135deg, var(--green), var(--cyan));
  color: #04100d;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
}

.custom-logo-link img {
  display: block;
  max-width: 240px;
  max-height: 58px;
}

.main-nav,
.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 14px;
  color: #d8e4ea;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.header-action,
.primary-button,
.secondary-button,
.wcb-offer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
}

.header-action,
.primary-button,
.wcb-offer-button {
  background: var(--gold);
  color: #101006;
  box-shadow: 0 12px 30px rgba(242, 184, 75, 0.24);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 13, 16, 0.97) 0%, rgba(5, 13, 16, 0.83) 38%, rgba(5, 13, 16, 0.32) 72%),
    linear-gradient(0deg, rgba(5, 13, 16, 0.95) 0%, rgba(5, 13, 16, 0) 34%),
    radial-gradient(circle at 76% 18%, rgba(68, 200, 232, 0.25), rgba(68, 200, 232, 0) 28%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 380px);
  align-items: end;
  gap: 44px;
  width: min(1180px, calc(100% - 48px));
  min-height: 760px;
  margin: 0 auto;
  padding: 150px 0 76px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  overflow-wrap: break-word;
  color: #fff;
  font-size: 4rem;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: #d7e2e9;
  font-size: 1.22rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel div {
  border-radius: 7px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.panel-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 1.2rem;
}

.ticker-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 48px));
  margin: -36px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  color: #122025;
  box-shadow: var(--shadow);
}

.ticker-strip a {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 20px 22px;
  border-right: 1px solid #dde5e9;
  color: #33444c;
  text-decoration: none;
  font-weight: 700;
}

.ticker-strip a:last-child {
  border-right: 0;
}

.ticker-strip span {
  color: #061316;
  font-size: 1.1rem;
  font-weight: 950;
}

.content-band {
  padding: 88px 0;
}

.home .content-band {
  padding-top: 54px;
  padding-bottom: 54px;
}

.home .offer-band {
  padding-top: 38px;
  padding-bottom: 18px;
}

.home .offer-band + .match-band {
  padding-top: 40px;
}

.home .stats-band {
  padding-top: 26px;
  padding-bottom: 26px;
}

.home .stats-band .wcb-tournament-summary {
  margin-top: 0;
  margin-bottom: 0;
}

.home .stats-band .wcb-tournament-summary .wcb-text-link {
  color: var(--gold) !important;
}

.home .news-band,
.home .guides-band {
  padding-top: 46px;
  padding-bottom: 52px;
}

.content-band > * {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.match-band {
  background: linear-gradient(180deg, #071012, #0c1d20 56%, #071012);
}

.team-band {
  background: linear-gradient(180deg, #f6fafb, #ffffff);
  color: #102025;
}

.guides-band {
  background: #101014;
}

.shortcode-band {
  background: linear-gradient(180deg, #0e2024, #081315);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.archive-title,
.entry-title {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.08;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.team-band .section-heading p:not(.eyebrow) {
  color: #52636a;
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.feature-preview,
.offer-card,
.fixture-card,
.team-card,
.guide-card,
.shortcode-example,
.archive-card {
  min-width: 0;
  overflow-wrap: break-word;
  border-radius: var(--radius);
}

.feature-preview {
  border: 1px solid var(--line);
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.04);
}

.guide-columns,
.shortcode-layout,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card,
.shortcode-example,
.archive-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.guide-card:has(.article-thumb-link),
.archive-card:has(.article-thumb-link) {
  padding-top: 14px;
}

.article-thumb-link {
  display: block;
  margin: -14px -14px 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.article-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.guide-card a,
.archive-card a {
  color: inherit;
  text-decoration: none;
}

.guide-card p,
.shortcode-example p,
.archive-card p {
  color: #b8c6cc;
  line-height: 1.55;
}

.guide-number {
  color: var(--red);
  font-size: 2.4rem;
  font-weight: 950;
}

.page-shell,
.archive-shell,
.single-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 80px;
}

.page-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(36, 200, 106, 0.14), rgba(68, 200, 232, 0.08)),
    #081315;
}

.entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.entry-content {
  border-radius: var(--radius);
  padding: 30px;
  background: #ffffff;
  color: #16262b;
  line-height: 1.72;
}

.entry-content-unframed {
  padding: 0;
  background: transparent;
  color: #e8f0f3;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
  color: #071012;
  line-height: 1.15;
}

.entry-content-unframed h2,
.entry-content-unframed h3 {
  color: #ffffff;
}

.entry-content-unframed > p {
  max-width: 820px;
  color: #cbd5db;
}

.entry-content-unframed .wcb-fixture-card h3,
.entry-content-unframed .wcb-feature-match h3 {
  color: #102025;
}

.entry-content a {
  color: var(--green-dark);
  font-weight: 800;
}

.entry-meta-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.entry-meta-panel.dark-on-light {
  border-color: #dce5e9;
  background: #ffffff;
  color: #102025;
}

.meta-item {
  border-radius: 7px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.dark-on-light .meta-item {
  border: 1px solid #dce5e9;
  background: #f4f8f9;
}

.meta-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-item strong {
  color: #ffffff;
}

.dark-on-light .meta-item strong {
  color: #102025;
}

.match-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  padding: 18px;
  background: #f4f8f9;
}

.match-scoreline div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.match-scoreline div:last-child {
  justify-items: end;
  text-align: right;
}

.match-scoreline span:not(.versus) {
  color: #607078;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-scoreline strong {
  overflow-wrap: break-word;
  color: #071012;
  font-size: 1.3rem;
}

.match-scoreline .wcb-match-flag {
  width: 54px;
  height: 38px;
}

.match-scoreline div:last-child .wcb-match-flag {
  justify-self: end;
}

.versus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #101006;
  font-weight: 950;
}

.team-profile-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 28%, transparent), color-mix(in srgb, var(--team-secondary) 16%, transparent)),
    #081315;
}

.team-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-title-row .wcb-team-badge {
  flex: 0 0 auto;
}

.post-byline {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.author-box {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  margin-top: 34px;
  border: 1px solid #dce5e9;
  border-radius: var(--radius);
  padding: 20px;
  background: #f4f8f9;
}

.author-avatar,
.author-photo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.author-avatar {
  background: var(--green-dark);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 950;
}

.author-photo {
  object-fit: cover;
}

.author-box h2,
.author-box p {
  margin: 0 0 8px;
}

.author-box h2 {
  color: #071012;
  font-size: 1.25rem;
}

.author-role {
  color: #52636a;
  font-weight: 900;
}

.pagination {
  margin-top: 34px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #071012;
  color: #cbd5db;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 28px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.15rem;
}

.footer-brand p,
.footer-brand small {
  display: block;
  max-width: 440px;
  margin: 10px 0 0;
  color: #aebcc2;
  line-height: 1.55;
}

.footer-column {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-column span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.site-footer a {
  color: #d8e4ea;
  text-decoration: none;
  font-weight: 800;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
    min-height: auto;
    padding: 18px 24px;
  }

  .brand {
    min-width: 0;
  }

  .main-nav,
  .main-nav ul {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .header-action {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero,
  .hero-grid {
    min-height: 820px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 170px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .ticker-strip,
  .match-layout,
  .guide-columns,
  .shortcode-layout,
  .archive-grid,
  .entry-panel {
    grid-template-columns: 1fr;
  }

  .ticker-strip a {
    border-right: 0;
    border-bottom: 1px solid #dde5e9;
  }

  .ticker-strip a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-action {
    width: 100%;
  }

  .hero,
  .hero-grid {
    min-height: 850px;
  }

  .hero-grid,
  .ticker-strip,
  .content-band > *,
  .page-shell,
  .archive-shell,
  .single-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .hero-grid {
    padding-top: 210px;
    padding-bottom: 50px;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-actions a,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .content-band {
    padding: 66px 0;
  }

  .section-heading h2,
  .archive-title,
  .entry-title {
    font-size: 1.85rem;
  }

  .page-shell,
  .archive-shell,
  .single-shell {
    padding-top: 220px;
  }

  .entry-content {
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
