/*
Theme Name: Bookmakers Not On Gamstop
Theme URI: https://bookmakersnotongamstop.org.uk
Author: bookmakersnotongamstop.org.uk
Description: Casino affiliate theme for bookmakers not on Gamstop.
Version: 1.0.0
Text Domain: nokyc
*/

/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:        #0f1923;
  --c-surface:   #162232;
  --c-card:      #1c2d40;
  --c-border:    #243550;
  --c-gold:      #e8a020;
  --c-gold-dark: #c47e10;
  --c-green:     #2ab06e;
  --c-red:       #e03040;
  --c-text:      #dce8f5;
  --c-muted:     #8faac2;
  --c-white:     #ffffff;
  --c-header:    #0a1420;
  --c-footer:    #060e18;
  --c-cta:       #e8a020;
  --c-cta-hover: #c47e10;
  --c-accent:    #1a78c2;
  --max-w:       1280px;
  --radius:      0px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: var(--c-bg);
  color: var(--c-text);
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--c-white);
  line-height: 1.25;
}

a { color: var(--c-gold); text-decoration: none; }
a:hover { color: var(--c-gold-dark); }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
══════════════════════════════════════════════ */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--c-white);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--c-muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 11px 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.18s, transform 0.12s;
  text-align: center;
}
.btn-gold  { background: var(--c-gold);   color: #0a1420; }
.btn-gold:hover  { background: var(--c-gold-dark); color: #0a1420; transform: translateY(-1px); }
.btn-green { background: var(--c-green);  color: #fff; }
.btn-green:hover { background: #228c58; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--c-gold); color: var(--c-gold); }
.btn-outline:hover { background: var(--c-gold); color: #0a1420; }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-header);
  border-bottom: 2px solid var(--c-gold);
}
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: -0.3px;
}
.site-logo a:hover { color: var(--c-gold-dark); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--c-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover { color: var(--c-gold); background: rgba(232,160,32,0.08); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--c-header);
  border-top: 1px solid var(--c-border);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav a:hover { color: var(--c-gold); background: rgba(232,160,32,0.05); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  min-height: 60vh;
  background: var(--c-surface);
  border-bottom: 3px solid var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.hero-inner { max-width: 820px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--c-gold);
  color: #0a1420;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--c-white);
  margin-bottom: 18px;
  line-height: 1.15;
}
.hero h1 span { color: var(--c-gold); }
.hero p {
  font-size: 1.1rem;
  color: var(--c-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
}
.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-gold);
}
.hero-stat-lbl {
  font-size: 0.8rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Inner hero (secondary pages) */
.inner-hero {
  background: var(--c-surface);
  border-bottom: 3px solid var(--c-gold);
  padding: 60px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.inner-hero.h40 { min-height: 40vh; }
.inner-hero.h45 { min-height: 45vh; }
.inner-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.inner-hero p  { color: var(--c-muted); max-width: 600px; margin: 0 auto; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.badge {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════════
   CASINO GRID
══════════════════════════════════════════════ */
.casino-grid-section {
  padding: 64px 0;
  background: var(--c-bg);
}
.casino-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.casino-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.18s;
}
.casino-card:hover { border-color: var(--c-gold); transform: translateY(-3px); }

.casino-card-rank {
  background: var(--c-gold);
  color: #0a1420;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
}
.casino-card-badge {
  background: var(--c-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.casino-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.casino-card-logo {
  padding: 20px 20px 12px;
  height: 80px;
  display: flex;
  align-items: center;
}
.casino-card-logo img {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}
.casino-card-logo-placeholder {
  width: 140px;
  height: 50px;
  border: 2px dashed var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 0.75rem;
}

.casino-card-body { padding: 0 20px 16px; flex: 1; }
.casino-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 6px;
}
.casino-stars { color: var(--c-gold); font-size: 0.95rem; margin-bottom: 10px; }
.casino-bonus {
  background: rgba(232,160,32,0.1);
  border-left: 3px solid var(--c-gold);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 12px;
}
.casino-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.casino-meta-item {
  font-size: 0.75rem;
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 3px 8px;
}
.casino-terms {
  font-size: 0.68rem;
  color: var(--c-muted);
  margin-top: 8px;
  line-height: 1.4;
}

.casino-card-footer { padding: 0 20px 20px; }
.casino-card-footer .btn { width: 100%; display: block; }

/* ══════════════════════════════════════════════
   STARS
══════════════════════════════════════════════ */
.star-full::before  { content: '★'; }
.star-half::before  { content: '½'; }
.star-empty::before { content: '☆'; }

/* ══════════════════════════════════════════════
   CONTENT SECTIONS (plugin hook output)
══════════════════════════════════════════════ */
.content-section { background: var(--c-surface); }
.section-spacing { padding: 56px 0; }
.content-section + .content-section { border-top: 1px solid var(--c-border); }

/* ══════════════════════════════════════════════
   REVIEWS SECTION
══════════════════════════════════════════════ */
.reviews-section { padding: 64px 0; background: var(--c-bg); }

.review-block {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 2px solid var(--c-border);
}
.review-block:last-child { border-bottom: none; }

.review-topbar {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-gold);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.review-topbar-logo {
  width: 120px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.review-topbar-logo img { max-height: 44px; max-width: 120px; object-fit: contain; }
.review-topbar-logo-placeholder {
  width: 110px;
  height: 44px;
  border: 2px dashed var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 0.7rem;
}
.review-topbar-info { flex: 1; }
.review-topbar-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 4px;
}
.review-topbar-stars { color: var(--c-gold); font-size: 1rem; }
.review-topbar-cta { flex-shrink: 0; }

/* Screenshots */
.review-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.review-screenshot {
  height: 200px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  cursor: pointer;
  position: relative;
}
.review-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.review-screenshot:hover img { transform: scale(1.04); }
.review-screenshot-placeholder {
  width: 100%;
  height: 200px;
  border: 2px dashed var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 0.8rem;
}
.review-screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.review-screenshot:hover .review-screenshot-overlay { background: rgba(0,0,0,0.3); }
.review-screenshot-overlay span {
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.review-screenshot:hover .review-screenshot-overlay span { opacity: 1; }

/* Review body */
.review-body {
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: 28px;
  width: 100%;
}
.review-body p { margin-bottom: 14px; }
.review-body h3 { color: var(--c-white); margin: 20px 0 10px; font-size: 1.1rem; }
.review-body ul { padding-left: 20px; margin-bottom: 14px; }
.review-body ul li { margin-bottom: 6px; }

/* Pros / Cons */
.pros-cons-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.pros-cons-table th {
  padding: 10px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.pros-cons-table th.pros-hd { background: var(--c-green); color: #fff; }
.pros-cons-table th.cons-hd { background: var(--c-red);   color: #fff; }
.pros-cons-table td {
  padding: 9px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  width: 50%;
}
.pros-cons-table tr:last-child td { border-bottom: none; }
.pros-cons-table td.pros-col { background: rgba(42,176,110,0.06); color: var(--c-text); }
.pros-cons-table td.cons-col { background: rgba(224,48,64,0.06);  color: var(--c-text); }
.pros-cons-table td.pros-col::before { content: '✓ '; color: var(--c-green); font-weight: 700; }
.pros-cons-table td.cons-col::before { content: '✗ '; color: var(--c-red);   font-weight: 700; }

/* ══════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════ */
.faq-section { padding: 64px 0; background: var(--c-surface); }
.faq-item { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--c-border); }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 10px;
}
.faq-a { color: var(--c-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════
   AUTHOR BOX
══════════════════════════════════════════════ */
.author-section { padding: 56px 0; background: var(--c-bg); }
.author-box {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-gold);
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.author-avatar {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border: 3px solid var(--c-gold);
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 4px;
}
.author-title { font-size: 0.82rem; color: var(--c-gold); margin-bottom: 12px; font-weight: 600; }
.author-bio { color: var(--c-muted); font-size: 0.9rem; line-height: 1.65; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#site-footer {
  background: var(--c-footer);
  border-top: 2px solid var(--c-border);
  padding: 40px 0 28px;
  text-align: left;
}
.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 10px;
}
.footer-copy { font-size: 0.82rem; color: var(--c-muted); margin-bottom: 14px; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.6;
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
  margin-top: 12px;
  opacity: 0.75;
}

/* ══════════════════════════════════════════════
   PAGE CONTENT
══════════════════════════════════════════════ */
.page-content-section { padding: 64px 0; }
.page-content-body {
  color: var(--c-text);
  line-height: 1.75;
  width: 100%;
}
.page-content-body h2 { font-size: 1.5rem; color: var(--c-white); margin: 28px 0 12px; }
.page-content-body h3 { font-size: 1.15rem; color: var(--c-white); margin: 22px 0 10px; }
.page-content-body p { margin-bottom: 16px; }
.page-content-body ul, .page-content-body ol { padding-left: 22px; margin-bottom: 16px; }
.page-content-body li { margin-bottom: 6px; }
.page-content-body a { color: var(--c-gold); }
.page-content-body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.page-content-body th { background: var(--c-card); padding: 10px 14px; border: 1px solid var(--c-border); color: var(--c-white); text-align: left; }
.page-content-body td { padding: 10px 14px; border: 1px solid var(--c-border); }

/* About Us */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.team-avatar {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 2px solid var(--c-gold);
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--c-white); margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--c-gold); margin-bottom: 8px; font-weight: 600; }
.team-bio  { font-size: 0.85rem; color: var(--c-muted); line-height: 1.6; }

/* How We Rate */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.criteria-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-gold);
  padding: 24px;
}
.criteria-icon { font-size: 1.8rem; margin-bottom: 12px; }
.criteria-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--c-white); margin-bottom: 8px; }
.criteria-desc  { font-size: 0.87rem; color: var(--c-muted); line-height: 1.6; }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.contact-form { background: var(--c-card); border: 1px solid var(--c-border); padding: 32px; }
.contact-form h2 { font-size: 1.3rem; margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--c-gold); }
.form-group select option { background: var(--c-surface); }
.contact-info-box {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-gold);
  padding: 28px;
}
.contact-info-box h3 { font-size: 1.1rem; margin-bottom: 18px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.contact-info-label { font-size: 0.8rem; color: var(--c-muted); }
.contact-info-val   { font-size: 0.9rem; color: var(--c-text); font-weight: 500; }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--c-green);
  color: #fff;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  border-radius: var(--radius);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border: 2px solid var(--c-border); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .casino-grid { grid-template-columns: repeat(2, 1fr); }
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .review-screenshots { grid-template-columns: 1fr; }
  .review-topbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .author-box { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .criteria-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .casino-grid { grid-template-columns: 1fr; }
  .hero { min-height: 50vh; }
}
