/*
 * Casino Brand Protection — theme.css v1.1.5
 *
 * All colour custom properties are injected by functions.php (inline style).
 * Hero image is output as its own <style id="casino-bp-hero-image"> in wp_head.
 */

/* ─── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── TOKENS (fallback defaults) ─────────── */
:root {
  /* Navigation */
  --nav-bg:       #111111;
  --nav-text:     #ffffff;
  /* Hero */
  --hero-title:   #ffffff;
  --hero-bonus:   #c9a84c;
  /* Buttons */
  --gold-btn:     #d4a843;
  --gold-hover:   #b8912e;
  --cta-text:     #000000;
  --cta-glow:     #d4a843;
  --cta-glow-rgb: 212,168,67;
  /* Typography */
  --gold:         #c9a84c;
  --text:         #1a1a1a;
  --headings:     #1a1a1a;
  --muted:        #555555;
  /* Tables & Lists */
  --th-bg:        #111111;
  --th-text:      #f0c96b;
  --list-bg:      #fdf9f0;
  --list-border:  #e8dfc8;
  --border:       #e0e0e0;
  /* Footer */
  --footer-bg:    #111111;
  --sticky-bg:    #111111;
  --footer-text:  rgba(255,255,255,0.45);
  /* Page */
  --white:        #ffffff;
  --dark:         #111111;
  /* Hero overlay */
  --dim-start:    rgba(0,0,0,0.55);
  --dim-end:      rgba(0,0,0,0.80);
  /* Fonts */
  --font-head:    'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
  --max-w:        780px;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ────────────────────────────────── */
.site-nav {
  position: relative;
  z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--nav-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ─── HERO ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 72px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--dim-start) 0%,
    var(--dim-end)   100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 580px;
}

h1.hero-title {
  font-family: var(--font-head);
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 800;
  color: var(--hero-title);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

span.hero-bonus {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(15px, 2.6vw, 20px);
  font-weight: 600;
  color: var(--hero-bonus);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

/* ─── CTA BUTTONS ────────────────────────── */

@keyframes cta-glow {
  0%,100% { box-shadow: 0 0 8px 2px rgba(var(--cta-glow-rgb),0.25), 0 0 16px 3px rgba(var(--cta-glow-rgb),0.1); }
  50%      { box-shadow: 0 0 14px 4px rgba(var(--cta-glow-rgb),0.4), 0 0 28px 6px rgba(var(--cta-glow-rgb),0.18); }
}

.cta-btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 13px 40px;
  background: var(--gold-btn);
  color: var(--cta-text) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  border-radius: 6px;
  letter-spacing: 0.02em;
  cursor: pointer;
  animation: cta-glow 2.4s ease-in-out infinite;
  transition: background 0.25s ease, transform 0.18s ease;
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.32) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0s;
}

@media (hover: hover) and (pointer: fine) {
  .cta-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    animation-play-state: paused;
    box-shadow: 0 0 28px 8px rgba(var(--cta-glow-rgb),0.75), 0 6px 24px rgba(var(--cta-glow-rgb),0.4);
  }
  .cta-btn:hover::after {
    left: 130%;
    transition: left 0.52s ease;
  }
}

/* ─── CONTENT AREA ───────────────────────── */
.content-wrap {
  background: var(--white);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 32px;
}

/* Reset Gutenberg block spacing inside our content area */
.entry-content .wp-block-group,
.entry-content .wp-block-column,
.entry-content .wp-block-columns {
  margin: 0;
  padding: 0;
}

/* ── Typography ── */
.entry-content h2 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--headings);
  margin: 44px 0 14px !important;
  padding: 0 !important;
  text-align: center;
}
.entry-content h2:first-child { margin-top: 0 !important; }

.entry-content h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--headings);
  margin: 30px 0 10px !important;
  padding: 0 !important;
  text-align: center;
}

.entry-content h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--headings);
  margin: 24px 0 8px !important;
  padding: 0 !important;
}

.entry-content p {
  color: #333;
  margin-bottom: 16px !important;
  margin-top: 0 !important;
  font-size: 15px;
  padding: 0 !important;
}

.entry-content strong { font-weight: 600; color: var(--text); }
.entry-content em     { font-style: italic; color: var(--muted); }
.entry-content a:not(.cta-btn) { color: var(--gold-btn); text-decoration: underline; }

/* ── Lists ── */
.entry-content ul:not(.pros-cons-list):not(.footer-nav):not(.footer-lang):not(.wp-block-navigation__container),
.entry-content ol:not(.wp-block-navigation__container) {
  background: var(--list-bg) !important;
  border: 1px solid var(--list-border) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  padding: 4px 0 !important;
  margin: 0 0 24px 0 !important;
  list-style: none !important;
}

.entry-content ul:not(.pros-cons-list):not(.footer-nav):not(.footer-lang):not(.wp-block-navigation__container) li {
  position: relative !important;
  padding: 8px 12px 8px 28px !important;
  font-size: 15px !important;
  color: #333 !important;
  border-bottom: 1px solid var(--list-border) !important;
  list-style: none !important;
  margin: 0 !important;
  background: transparent !important;
}
.entry-content ul:not(.pros-cons-list):not(.footer-nav):not(.footer-lang):not(.wp-block-navigation__container) li:last-child {
  border-bottom: none !important;
}
.entry-content ul:not(.pros-cons-list):not(.footer-nav):not(.footer-lang):not(.wp-block-navigation__container) li::before {
  content: '◆' !important;
  position: absolute !important;
  left: 9px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 6px !important;
  color: var(--gold-btn) !important;
  line-height: 1 !important;
}

.entry-content ol:not(.wp-block-navigation__container) {
  counter-reset: ol-counter !important;
}
.entry-content ol:not(.wp-block-navigation__container) li {
  position: relative !important;
  counter-increment: ol-counter !important;
  padding: 9px 12px 9px 44px !important;
  font-size: 15px !important;
  color: #333 !important;
  border-bottom: 1px solid var(--list-border) !important;
  list-style: none !important;
  margin: 0 !important;
  background: transparent !important;
}
.entry-content ol:not(.wp-block-navigation__container) li:last-child {
  border-bottom: none !important;
}
.entry-content ol:not(.wp-block-navigation__container) li::before {
  content: counter(ol-counter) !important;
  position: absolute !important;
  left: 9px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  background: var(--gold-btn) !important;
  color: #000 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: var(--font-head) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* ── Blockquote ── */
.entry-content blockquote,
.entry-content .wp-block-quote {
  border-left: 3px solid var(--gold) !important;
  padding: 12px 20px !important;
  margin: 24px 0 !important;
  background: var(--list-bg) !important;
  color: var(--muted) !important;
  font-style: italic !important;
  font-size: 15px !important;
  border-radius: 0 6px 6px 0 !important;
}
.entry-content .wp-block-quote p { margin-bottom: 0 !important; }

/* ── Tables ── */
.entry-content .table-wrap,
.entry-content figure.wp-block-table {
  overflow-x: auto !important;
  margin: 24px 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--list-border) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  padding: 0 !important;
}
.entry-content figure.wp-block-table figcaption {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
}
.entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
  margin: 0 !important;
  border: none !important;
}
/* Remove the seam that appears between thead and tbody when header bg is dark */
.entry-content thead,
.entry-content .wp-block-table thead,
.entry-content thead tr,
.entry-content .wp-block-table thead tr {
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
}
.entry-content thead th,
.entry-content .wp-block-table thead th {
  background: var(--th-bg) !important;
  text-align: left !important;
  padding: 13px 16px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: var(--th-text) !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.entry-content tbody td,
.entry-content .wp-block-table tbody td {
  padding: 11px 16px !important;
  border: none !important;
  border-bottom: 1px solid var(--list-border) !important;
  color: #333 !important;
  vertical-align: middle !important;
}
.entry-content tbody tr:last-child td,
.entry-content .wp-block-table tbody tr:last-child td { border-bottom: none !important; }
.entry-content tbody tr:nth-child(even) td,
.entry-content .wp-block-table tbody tr:nth-child(even) td { background: var(--list-bg) !important; }
@media (hover: hover) and (pointer: fine) {
  .entry-content tbody tr:hover td { background: #faf4e6 !important; }
}

/* ── Pros & Cons ── */
.pros-cons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  border: 1px solid #e8dfc8 !important;
  margin: 24px 0 !important;
  font-size: 14px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
.pros-cons-col + .pros-cons-col { border-left: 1px solid #e8dfc8; }
.pros-cons-head {
  padding: 11px 16px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e8dfc8;
}
.pros-cons-head.pros { background: #f0faf4; color: #1a7a3c; }
.pros-cons-head.cons { background: #fff5f5; color: #c0392b; }
.pros-cons-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
.pros-cons-list li {
  padding: 9px 16px !important;
  border-bottom: 1px solid #f0ece4 !important;
  font-size: 14px !important;
  color: #333 !important;
  display: flex !important;
  gap: 8px !important;
  align-items: flex-start !important;
  background: transparent !important;
  list-style: none !important;
}
.pros-cons-list li:last-child { border-bottom: none !important; }
.pros-cons-list li::before { display: none !important; }
.pros-icon { color: #27ae60; flex-shrink: 0; }
.cons-icon { color: #c0392b; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   YOAST FAQ ACCORDION
   Targets only .wp-block-yoast-faq-block.
═══════════════════════════════════════════ */
.wp-block-yoast-faq-block {
  margin: 24px 0 !important;
  border: 1px solid var(--list-border) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: var(--list-bg) !important;
}

.wp-block-yoast-faq-block .schema-faq-section {
  border-bottom: 1px solid var(--list-border) !important;
}
.wp-block-yoast-faq-block .schema-faq-section:last-child {
  border-bottom: none !important;
}

/*
 * FAQ QUESTION ROW
 * Yoast renders: <strong class="schema-faq-question"><strong>Text</strong></strong>
 * It's an inline element so we use display:block on the section itself as the
 * click target, and use a CSS-only chevron via the section's ::after.
 *
 * The section row wraps the question — we make the whole section-header area
 * clickable by styling schema-faq-section as the interactive row container.
 */

/* The section is the click-target row */
.wp-block-yoast-faq-block .schema-faq-section {
  border-bottom: 1px solid var(--list-border) !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}
.wp-block-yoast-faq-block .schema-faq-section:last-child {
  border-bottom: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .wp-block-yoast-faq-block .schema-faq-section:hover {
    background: rgba(0,0,0,0.02) !important;
  }
}

/* Question text — displayed as a flex row with chevron */
.wp-block-yoast-faq-block .schema-faq-question {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  font-family: var(--font-head) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  user-select: none !important;
  background: transparent !important;
  margin: 0 !important;
  /* strong is inline by default — force block/flex */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Inner <strong> Yoast nests inside the outer strong — strip it */
.wp-block-yoast-faq-block .schema-faq-question strong {
  font-weight: 600 !important;
  font-family: var(--font-head) !important;
  flex: 1 !important;
}

/* Gold chevron via ::after on the outer strong */
.wp-block-yoast-faq-block .schema-faq-question::after {
  content: '' !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  width: 10px !important;
  height: 10px !important;
  border-right: 2px solid var(--gold-btn) !important;
  border-bottom: 2px solid var(--gold-btn) !important;
  transform: rotate(45deg) !important;
  margin-left: 16px !important;
  transition: transform 0.25s ease !important;
  position: relative !important;
  top: -2px !important;
}
.wp-block-yoast-faq-block .schema-faq-section.is-open .schema-faq-question::after {
  transform: rotate(-135deg) !important;
  top: 2px !important;
}

/*
 * Answer — Yoast renders as <p class="schema-faq-answer"> directly in section.
 * Hidden by default; .is-open on the section reveals it.
 */
.wp-block-yoast-faq-block .schema-faq-answer {
  display: none !important;
  padding: 0 18px 14px !important;
  font-size: 14px !important;
  color: #444 !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}
.wp-block-yoast-faq-block .schema-faq-section.is-open .schema-faq-answer {
  display: block !important;
}

/* ─── BOTTOM CTA ─────────────────────────── */
.bottom-cta-wrap {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 48px -24px 24px;
  padding: 56px 24px;
  border-radius: 12px;
}

/* On mobile keep side margins so box doesn't bleed to screen edges */
@media (max-width: 600px) {
  .bottom-cta-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 12px !important;
  }
}
.bottom-cta-bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.bottom-cta-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--dim-start) 0%, var(--dim-end) 100%);
}
.bottom-cta-inner { position: relative; z-index: 10; }
.bottom-cta-bonus {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(15px, 2.6vw, 20px);
  font-weight: 600;
  color: var(--hero-bonus);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.bottom-cta-btn { padding: 14px 48px; font-size: 16px; }

/* ─── STICKY BAR ─────────────────────────────
 * Always position:fixed at the viewport bottom.
 * The footer has padding-bottom equal to the bar height so
 * its content is never obscured. No JS positioning needed.
──────────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--sticky-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-bar-cta { padding: 11px 40px; font-size: 15px; }

/* ─── FOOTER ─────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px 24px 28px;
  text-align: center;
}

/* When a sticky bar is present, add room at the bottom of the footer
   so the bar never covers the disclaimer text */
body.has-sticky-bar .site-footer {
  padding-bottom: 80px;
}

.footer-brand {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--footer-text);
  text-decoration: none;
  margin-bottom: 20px;
}

/* Language switcher — override any list styles */
.footer-lang {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 6px 20px !important;
  margin-bottom: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
.footer-lang li {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.footer-lang li::before { display: none !important; }
.footer-lang li a {
  color: var(--footer-text) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  transition: color 0.2s !important;
  opacity: 0.8;
}
.footer-lang li a:hover { opacity: 1; color: var(--footer-text) !important; }

/* Footer nav — WP renders a <ul class="footer-nav"> */
.footer-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 6px 20px !important;
  margin-bottom: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
.footer-nav li {
  display: inline !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.footer-nav li::before { display: none !important; }
.footer-nav li a {
  color: var(--footer-text) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  transition: color 0.2s !important;
  opacity: 0.8;
}
.footer-nav li a:hover { opacity: 1; color: var(--footer-text) !important; }

.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--footer-text);
  max-width: 680px;
  margin: 0 auto;
  opacity: 0.75;
}
.footer-disclaimer strong { opacity: 1; color: var(--footer-text); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr !important; }
  .pros-cons-col + .pros-cons-col { border-left: none !important; border-top: 1px solid #e8dfc8 !important; }
}

/* ─── FONT PAIR TWEAKS ───────────────────────
 * Fine-tune sizing/spacing for pairs that need it.
 * Body class font-pair--X is set server-side.
──────────────────────────────────────────── */

/* Editorial: serif body needs slightly more line-height */
.font-pair--editorial .entry-content p,
.font-pair--editorial .entry-content li {
  line-height: 1.85;
}

/* Bold: Bebas Neue is all-caps display — increase hero title size,
   loosen letter-spacing, and use Inter for the CTA button text
   since Bebas has no lowercase */
.font-pair--bold h1.hero-title {
  font-size: clamp(52px, 10vw, 96px);
  letter-spacing: 0.04em;
}
.font-pair--bold .entry-content h2 { letter-spacing: 0.06em; }
.font-pair--bold .entry-content h3 { letter-spacing: 0.05em; }
.font-pair--bold .nav-brand         { letter-spacing: 0.08em; }

/* Refined: Cormorant is elegant but small — bump sizes */
.font-pair--refined h1.hero-title {
  font-size: clamp(44px, 8vw, 80px);
  font-style: italic;
  font-weight: 600;
}
.font-pair--refined .entry-content h2 { font-size: 24px; font-style: italic; }
.font-pair--refined .entry-content h3 { font-size: 20px; font-style: italic; }
.font-pair--refined .nav-brand        { font-size: 22px; font-weight: 600; }
