/*
Theme Name: NOUĂFALS.
Theme URI: https://nouafals.ro
Author: Goliat Media Group
Description: Editorial sports theme for nouafals.ro — World Cup 2026. Light edition.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: nouafals
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --cream: #FAF8F4;
  --white: #FFFFFF;
  --ink: #14171c;
  --muted: #6b6f76;
  --border: #E8E4DC;
  --rule: #D9D4C8;
  --red: #FF2E20;
  --cyan: #1FA8C9;

  /* Dark tokens — used only inside ticket cards + WC banner */
  --dark-ink: #050607;
  --dark-surface: #0f1316;
  --dark-border: #1a1f24;
  --dark-text: #F4F2EB;
  --mint: #2EE6A6;
  --gold: #F0B92E;

  --max: 1200px;
  --pad: 24px;
  --section-pad: 80px;
}
@media (max-width: 768px) { :root { --section-pad: 48px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 .5em;
  line-height: 1.05;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ============================================================
   HEADER
   ============================================================ */
.ticker {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 0;
  color: var(--ink);
}
.ticker .wrap { display: flex; gap: 12px; align-items: center; }
.ticker .label { color: var(--red); }

.site-head {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.site-head .row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 44px; width: auto; display: block; }
@media (max-width: 768px) { .logo img { height: 34px; } }
.date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}
.motto {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 280px;
  text-align: right;
  line-height: 1.4;
}

.nav {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav li a {
  display: block;
  padding: 14px 0;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav li a:hover,
.nav li.current-menu-item a { border-bottom-color: var(--red); color: var(--ink); }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); color: var(--ink);
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-head .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .motto { text-align: left; max-width: none; }
  .nav-toggle { display: inline-block; }
  .nav ul { display: none; flex-direction: column; gap: 0; width: 100%; padding: 8px 0; }
  .nav.open ul { display: flex; }
  .nav li a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   1. WORLD CUP BANNER (image, full-bleed)
   ============================================================ */
.banner-wc {
  display: block;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: var(--ink);
}
.banner-wc picture, .banner-wc img {
  width: 100%;
  height: 100%;
  display: block;
}
.banner-wc img {
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) { .banner-wc { height: 220px; } }

/* ============================================================
   2. BRACKET BANNER (light card with red rule)
   ============================================================ */
.banner-bracket {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--red);
  padding: 22px 28px;
  margin: 32px auto;
  max-width: var(--max);
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 2.6vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.banner-bracket:hover { color: var(--ink); box-shadow: 0 4px 20px rgba(20,23,28,0.08); transform: translateY(-1px); }
.banner-bracket .arrow { color: var(--red); margin-left: 8px; }
@media (max-width: 768px) {
  .banner-bracket { margin: 24px var(--pad); }
}

/* ============================================================
   COMMON: section heads, labels, meta, cards
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  position: relative;
  padding-left: 18px;
}
.section-head h2::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 6px; background: var(--red);
}
.section-head .tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}
.see-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.cat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: 10px;
}

.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 12px;
}
.post-meta .sep { margin: 0 8px; color: var(--rule); }

/* Card thumb (image or placeholder block on cream/white) */
.thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.placeholder { background: linear-gradient(135deg, #efeae0 0%, #f7f3e9 100%); }
.thumb.placeholder::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 56px; height: 56px;
  background: var(--red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 6px 24px rgba(20,23,28,0.08); transform: translateY(-2px); }
.card .body { padding: 20px; }
.card .title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  text-transform: uppercase;
  margin: 6px 0 8px;
  line-height: 1.12;
  color: var(--ink);
}
.card:hover .title { color: var(--red); }
.card .excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============================================================
   3. MAIN GRID (left content + right sidebar)
   ============================================================ */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(0, 1fr);
  gap: 40px;
  padding: 16px 0 var(--section-pad);
}
@media (max-width: 1000px) { .main-grid { grid-template-columns: 1fr; gap: 56px; } }

.main-left > * + * { margin-top: 56px; }
.main-right { display: grid; gap: 32px; align-content: start; }
@media (min-width: 1001px) {
  .main-right { position: sticky; top: 24px; align-self: start; }
}

/* ---- Hero slider ---- */
.hero-slider {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  display: block;
  color: var(--ink);
}
.hero-slide .thumb { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--border); }
.hero-slide .body { padding: 28px; }
.hero-slide .title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  line-height: 1.06;
  margin: 8px 0 12px;
}
.hero-slide:hover .title { color: var(--red); }
.hero-slide .excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; }
.hero-dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 0;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--ink);
  cursor: pointer; padding: 0;
}
.hero-dot.active { background: var(--red); border-color: var(--red); }

/* ---- Ultimele Știri grid ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   SIDEBAR: tickets (DARK exception) + editorial
   ============================================================ */
.sidebar-section { display: block; }
.sidebar-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.sidebar-head h2 {
  font-size: 24px;
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.sidebar-head h2::before {
  content: ''; position: absolute; left: 0; top: 10%; bottom: 10%;
  width: 5px; background: var(--red);
}

.tickets { display: grid; gap: 16px; }
.ticket {
  background: var(--dark-ink);
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
  padding: 20px;
  display: block;
  transition: border-color .15s ease, transform .15s ease;
}
.ticket:hover { border-color: var(--red); color: var(--dark-text); transform: translateY(-1px); }
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.ticket-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.ticket-label.gold { color: var(--gold); }
.ticket-odds {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--mint);
  font-weight: 700;
}
.ticket-selections { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticket-selections li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 13px;
  border-top: 1px solid var(--dark-border);
  padding-top: 10px;
}
.ticket-selections li:first-child { border-top: none; padding-top: 0; }
.ticket-selections .match { font-weight: 600; color: var(--dark-text); }
.ticket-selections .market {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a8f96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}
.ticket-selections .odds {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--dark-text);
  text-align: right;
  white-space: nowrap;
}
.ticket-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--dark-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.tickets-fallback {
  background: var(--dark-ink);
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
  padding: 24px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.tickets-foot {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 8px;
}
.tickets-foot a { color: var(--red); }

/* Editorial card */
.editorial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  padding: 24px;
  display: block;
  color: var(--ink);
  transition: box-shadow .18s ease, transform .18s ease;
}
.editorial-card:hover { box-shadow: 0 6px 24px rgba(20,23,28,0.08); transform: translateY(-1px); }
.editorial-card .title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  text-transform: uppercase;
  margin: 8px 0 10px;
  line-height: 1.12;
}
.editorial-card:hover .title { color: var(--red); }
.editorial-card .excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============================================================
   4. A FOST ODATĂ UN MONDIAL (cream band, cyan accents)
   ============================================================ */
.band-story {
  background: var(--cream);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band-story .section-head h2::before { background: var(--cyan); }
.band-story .section-head .tagline { color: var(--cyan); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-family: 'Hanken Grotesk', serif; font-size: 14px; }
.band-story .cat-label { color: var(--cyan); }
.band-story .see-all { color: var(--cyan); }
.story-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.story-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow .18s ease, transform .18s ease;
}
.story-card:hover { box-shadow: 0 6px 24px rgba(20,23,28,0.08); transform: translateY(-2px); }
.story-card .thumb { aspect-ratio: 4 / 3; border-bottom: none; border-right: 1px solid var(--border); }
.story-card .body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.story-card .title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  text-transform: uppercase;
  margin: 6px 0 10px;
  line-height: 1.12;
}
.story-card:hover .title { color: var(--cyan); }
@media (max-width: 900px) {
  .story-cards { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: 1fr; }
  .story-card .thumb { aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   5. PORUNCA A XI-A (simple full-width band)
   ============================================================ */
.band-porunca { padding: var(--section-pad) 0; }
.porunca-list { list-style: none; padding: 0; margin: 24px 0 0; }
.porunca-list li { border-top: 1px solid var(--rule); padding: 18px 0; }
.porunca-list li:last-child { border-bottom: 1px solid var(--rule); }
.porunca-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.porunca-list .title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}
.porunca-list .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin: 0;
}
.porunca-list a:hover .title { color: var(--red); }
.porunca-list a:hover .date { color: var(--red); }

/* ============================================================
   6. SPONSOR BANNERS
   ============================================================ */
.sponsor-banner-wrap {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 var(--pad);
  text-align: center;
}
.sponsor-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.sponsor-banner {
  display: block;
  border: 1px solid var(--border);
  background: var(--white);
  line-height: 0;
  transition: box-shadow .18s ease;
}
.sponsor-banner:hover { box-shadow: 0 4px 18px rgba(20,23,28,0.08); }
.sponsor-banner img { width: 100%; height: auto; display: block; }
/* In the sidebar: shed outer horizontal padding (column already padded by grid) */
.main-right .sponsor-banner-wrap { padding: 0; margin: 0; }

/* ============================================================
   7. FOOTER (ink dark)
   ============================================================ */
.site-foot {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px;
}
.site-foot .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .site-foot .grid { grid-template-columns: 1fr; gap: 32px; } }
.site-foot h4 {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #b8b3a7;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { padding: 5px 0; font-size: 14px; }
.site-foot li a { color: var(--cream); }
.site-foot li a:hover { color: var(--red); }
.foot-logo { display: inline-block; line-height: 0; }
.foot-logo img { height: 44px; width: auto; display: block; }
.foot-motto {
  font-size: 12px;
  color: #b8b3a7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
  max-width: 320px;
  line-height: 1.5;
}
.copyright {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #2a2e35;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a8f96;
  letter-spacing: 0.06em;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ============================================================
   SINGLE
   ============================================================ */
.single-article {
  max-width: 760px;
  margin: 56px auto 32px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 48px clamp(24px, 4vw, 56px);
}
.single-article .title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 12px 0 16px;
}
.single-article .featured { padding: 0; border: none; margin: 32px 0; }
.single-article .content { font-size: 17px; line-height: 1.75; color: var(--ink); }
.single-article .content p { margin: 0 0 1.2em; }
.single-article .content h2, .single-article .content h3 { margin-top: 1.8em; }
.single-article .content a { color: var(--red); border-bottom: 1px solid var(--red); }
.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 760px; margin: 0 auto 80px;
  padding: 24px clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prev-next .next { text-align: right; }
.prev-next .arrow { color: var(--red); }

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-head { padding: 64px 0 32px; }
.archive-head h1 { font-size: clamp(34px, 5vw, 56px); margin: 0; }
.archive-head .desc { color: var(--muted); margin-top: 12px; max-width: 720px; font-size: 16px; line-height: 1.6; }

/* ============================================================
   404
   ============================================================ */
.error-404 { text-align: center; padding: 120px var(--pad); }
.error-404 h1 { font-size: clamp(80px, 14vw, 200px); color: var(--red); margin: 0; }
.error-404 p { color: var(--muted); margin-top: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; }
