/* ==========================================================================
   THEME 4 - Wild West / Saloon (WestAce)
   Layered on top of style.css. Activates when <body> has .theme4 class.
   - Vertical sidebar nav on desktop (240px)
   - Split hero: copy left + image right
   - Lime CTA accent for primary actions, magenta for secondary highlights
   - Subtle saloon texture
   ========================================================================== */

/* Fonts: inherits Saira Condensed Italic + Inter from style.css */

body.theme4 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  /* Subtle hex/saloon texture */
  background-color: var(--color-bg);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(233, 30, 99, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(212, 160, 69, 0.08), transparent 65%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 14px
    );
  background-attachment: fixed;
}

/* ===== Display headings: Rye for Wild West character ============ */
body.theme4 .hero h1,
body.theme4 .hero h1 .brand-name {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

body.theme4 .hero h1 .brand-type {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.55em;
  color: var(--color-gold, #d4a045);
  display: inline-block;
  margin-top: var(--space-2);
}

body.theme4 h2,
body.theme4 .content-section h2 {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  letter-spacing: 0.01em;
}

/* ===== Sidebar layout (desktop only) ============================ */
@media (min-width: 1024px) {
  body.theme4 {
    padding-left: 240px;
    transition: padding-left 0.3s ease;
  }

  body.theme4 .site-header,
  body.theme4 .nav-mobile {
    /* hide top nav on desktop in theme4 */
    display: none !important;
  }

  body.theme4::before {
    /* sidebar background */
    content: '';
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    background: linear-gradient(180deg, #0f1d2f 0%, #0a1525 100%);
    border-right: 1px solid var(--color-border);
    z-index: 90;
    pointer-events: none;
  }

  /* Render the sidebar via fixed wrapper injected by header.php */
  body.theme4 .sidebar-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: var(--space-6) var(--space-5);
    overflow-y: auto;
  }

  body.theme4 .sidebar-nav__logo {
    font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
    font-size: 1.6rem;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.theme4 .sidebar-nav__logo .ace-mark {
    color: var(--color-accent);
    font-size: 1.1em;
  }

  body.theme4 .sidebar-nav__tagline {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
  }

  body.theme4 .sidebar-nav__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-6);
  }
  body.theme4 .sidebar-nav__links a {
    color: var(--color-text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  body.theme4 .sidebar-nav__links a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.4;
    transition: opacity 0.15s, transform 0.15s;
  }
  /* When the nav uses real icons, hide the legacy dot marker */
  body.theme4 .sidebar-nav__links.has-icons a::before { display: none; }
  body.theme4 .sidebar-nav__links .nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--color-text-muted);
    transition: color 0.15s, transform 0.15s;
  }
  body.theme4 .sidebar-nav__links a:hover,
  body.theme4 .sidebar-nav__links a.active {
    background: rgba(233, 30, 99, 0.12);
    color: var(--color-accent-hover);
  }
  body.theme4 .sidebar-nav__links a:hover .nav-icon,
  body.theme4 .sidebar-nav__links a.active .nav-icon {
    color: var(--color-accent-hover);
    transform: scale(1.05);
  }
  body.theme4 .sidebar-nav__links a:hover::before,
  body.theme4 .sidebar-nav__links a.active::before {
    opacity: 1;
    transform: scale(1.4);
  }

  /* Sidebar language dropdown */
  body.theme4 .sidebar-lang-dd {
    position: relative;
    margin: 0 0 var(--space-5);
  }
  body.theme4 .sidebar-lang-dd__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }
  body.theme4 .sidebar-lang-dd__toggle:hover,
  body.theme4 .sidebar-lang-dd.is-open .sidebar-lang-dd__toggle {
    border-color: var(--color-accent);
    background: rgba(233, 30, 99, 0.08);
  }
  body.theme4 .sidebar-lang-dd__flag {
    font-size: 1.05rem;
    line-height: 1;
    flex: 0 0 auto;
  }
  body.theme4 .sidebar-lang-dd__name {
    flex: 1 1 auto;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.theme4 .sidebar-lang-dd__caret {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    transition: transform 0.18s;
    display: inline-flex;
  }
  body.theme4 .sidebar-lang-dd.is-open .sidebar-lang-dd__caret { transform: rotate(180deg); }
  body.theme4 .sidebar-lang-dd__menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--color-surface, #18162e);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 60;
  }
  body.theme4 .sidebar-lang-dd.is-open .sidebar-lang-dd__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  body.theme4 .sidebar-lang-dd__menu li { margin: 0; }
  body.theme4 .sidebar-lang-dd__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.12s, color 0.12s;
  }
  body.theme4 .sidebar-lang-dd__item:hover {
    background: rgba(233, 30, 99, 0.12);
    color: var(--color-accent-hover);
  }
  body.theme4 .sidebar-lang-dd__item.is-active {
    background: rgba(233, 30, 99, 0.18);
    color: var(--color-accent-hover);
    font-weight: 600;
  }
  body.theme4 .sidebar-lang-dd__code {
    margin-left: auto;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
  }

  body.theme4 .sidebar-nav__cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  body.theme4 .sidebar-nav__bonus {
    background: rgba(126, 217, 87, 0.08);
    border: 1px solid rgba(126, 217, 87, 0.25);
    border-radius: 12px;
    padding: 12px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.4;
  }
  body.theme4 .sidebar-nav__bonus strong {
    color: var(--color-cta-green, #7ed957);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
  }
}

/* ===== Mobile: keep top header but theme it ===================== */
@media (max-width: 1023.98px) {
  body.theme4 .sidebar-nav { display: none; }
  body.theme4 .site-header {
    background: linear-gradient(180deg, rgba(10, 21, 37, 0.95), rgba(10, 21, 37, 0.80));
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
  }
  body.theme4 .site-logo {
    font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
    color: var(--color-text);
    font-size: 1.3rem;
  }
}

/* ===== Buttons: lime green primary CTA, pink outline =========== */
body.theme4 .btn--primary {
  background: linear-gradient(180deg, #9ae970 0%, #7ed957 50%, #5fb83b 100%);
  color: #0a2a05;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 14px rgba(126, 217, 87, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
body.theme4 .btn--primary:hover {
  background: linear-gradient(180deg, #b0f085 0%, #9ae970 50%, #7ed957 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 18px rgba(126, 217, 87, 0.5);
}
body.theme4 .btn--outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent-hover);
  background: rgba(233, 30, 99, 0.06);
}
body.theme4 .btn--outline:hover {
  background: rgba(233, 30, 99, 0.18);
  color: #fff;
}

/* ===== Hero: split layout (copy left + image right) ============= */
body.theme4 .hero {
  padding: var(--space-12) 0 var(--space-10);
  position: relative;
  overflow: hidden;
}
body.theme4 .hero::before {
  /* radial pink glow */
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center, rgba(233, 30, 99, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body.theme4 .hero .container {
  position: relative;
  z-index: 1;
}

body.theme4 .hero__split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 880px) {
  body.theme4 .hero__split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  /* Mobile: copy (with CTA) stays above the image */
  body.theme4 .hero__copy { order: 1; }
  body.theme4 .hero__image {
    order: 2;
    max-width: 340px;
    margin: var(--space-4) auto 0;
  }
  body.theme4 .hero__ctas {
    justify-content: center;
  }
}

body.theme4 .hero__copy { text-align: left; }
@media (max-width: 880px) {
  body.theme4 .hero__copy { text-align: center; }
}

body.theme4 .hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

body.theme4 .hero__bonus-card {
  background: linear-gradient(135deg, rgba(174, 243, 89, 0.18), rgba(245, 196, 81, 0.10));
  border: 1px solid var(--color-accent);
  border-radius: 16px;
  padding: var(--space-5);
  margin: var(--space-5) 0;
  position: relative;
  overflow: hidden;
}
body.theme4 .hero__bonus-card::after {
  /* sheriff star accent */
  content: '★';
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--color-gold);
  font-size: 22px;
  opacity: 0.7;
}
body.theme4 .hero__bonus-label {
  color: var(--color-gold);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
body.theme4 .hero__bonus-value {
  color: #fff;
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: var(--space-2) 0;
  line-height: 1.1;
}
body.theme4 .hero__bonus-extra {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

body.theme4 .hero__image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(233, 30, 99, 0.15);
}
body.theme4 .hero__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Stats bar: gold accents + saloon style ================== */
body.theme4 .stats-bar {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
body.theme4 .stat__value {
  color: var(--color-gold);
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
}

/* ===== Sections: warmer surface contrast ======================= */
body.theme4 .content-section--alt {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

body.theme4 .content-section h2 {
  color: var(--color-accent-hover);
}
body.theme4 .content-section h3 {
  color: var(--color-gold);
}

/* ===== Quick info table: saloon ledger feel ==================== */
body.theme4 .quick-table th {
  background: rgba(212, 160, 69, 0.08);
  color: var(--color-gold);
  border-color: var(--color-border);
}
body.theme4 .quick-table td {
  border-color: var(--color-border);
}

/* ===== Check list bullets ====================================== */
body.theme4 .check-list li::before {
  color: var(--color-cta-green);
}

/* ===== Provider tags =========================================== */
body.theme4 .provider-tag {
  background: rgba(233, 30, 99, 0.08);
  border: 1px solid rgba(233, 30, 99, 0.25);
  color: var(--color-text);
}

/* ===== Highlight box (asymmetric Wild West frame) ============== */
body.theme4 .highlight-box {
  background: linear-gradient(135deg, rgba(174, 243, 89, 0.12), rgba(245, 196, 81, 0.06));
  border: 1px solid var(--color-gold);
  border-radius: 14px;
  padding: var(--space-6);
  position: relative;
}
body.theme4 .highlight-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
body.theme4 .highlight-box h4 {
  color: var(--color-gold);
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
}

/* ===== Live winners + jackpot =================================== */
body.theme4 .jackpot-amount {
  color: var(--color-gold);
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
body.theme4 .live-dot {
  color: var(--color-cta-green);
}
body.theme4 .winner-card {
  border-color: var(--color-border);
  background: var(--color-surface);
}
body.theme4 .winner-card__amount {
  color: var(--color-cta-green);
}

/* ===== FAQ ===================================================== */
body.theme4 .faq-item summary {
  color: var(--color-text);
  border-color: var(--color-border);
}
body.theme4 .faq-item summary:hover {
  color: var(--color-accent-hover);
}

/* ===== Footer ================================================== */
body.theme4 .site-footer {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}

/* ===== Sticky CTA: lime button ================================== */
body.theme4 .sticky-cta {
  background: linear-gradient(180deg, rgba(10, 21, 37, 0.96), rgba(15, 29, 47, 0.96));
  border-top: 1px solid var(--color-accent);
  backdrop-filter: blur(10px);
}
body.theme4 .sticky-cta__bonus {
  color: var(--color-gold);
}

/* On desktop, leave room for the 240px fixed sidebar so the sticky CTA
   doesn't overlap the bonus card on the left rail. */
@media (min-width: 1024px) {
  body.theme4 .sticky-cta {
    left: 240px;
  }
}

/* ===== Page hero (sub-pages) =================================== */
body.theme4 .page-hero {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  border-bottom: 1px solid var(--color-border);
}
body.theme4 .page-hero h1 {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  color: var(--color-text);
}

/* ─── Real slot thumbnails ───────────────────────────────────────── */
.game-tile__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-surface-2);
}


/* ============================================================
   ZOCCER STYLE OVERRIDES
   Heavy condensed italic uppercase headings (matching wordmark),
   white-outlined header buttons, deeper navy bg, cleaner CTA.
   ============================================================ */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
}

/* All headings use Saira Condensed Italic, uppercase, with subtle right-skew */
h1, h2, h3, h4, h5, h6,
.hero h1, .hero h1 .brand-name,
.content-section h2, .content-section h3,
.page-hero h1, .cta-banner h2,
body.theme4 h2, body.theme4 .content-section h2 {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif !important;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: none;
}

/* Hero H1 extra punch */
.hero h1, .page-hero h1, body.theme4 .hero h1 {
  font-weight: 900;
  letter-spacing: -0.005em;
}

/* Brand sub-line on hero stays Inter (cleaner contrast under italic top) */
.hero h1 .brand-type, body.theme4 .hero h1 .brand-type {
  font-family: 'Inter', sans-serif !important;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* Sidebar logo: bigger + condensed italic, with lime dot */
body.theme4 .sidebar-nav__logo {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.005em;
  font-size: 1.7rem;
}
body.theme4 .sidebar-nav__logo .ace-mark {
  color: var(--color-accent);
  font-style: normal;
  margin: 0 0.05em 0 -0.05em;
  font-size: 0.95em;
  display: inline-block;
  transform: translateY(-0.05em);
}

/* Top header logo: same treatment */
.site-logo {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif !important;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* Header buttons: white-outlined pills (matches real Zoccer Login/Register) */
.site-header .btn--outline,
.site-header .btn--ghost,
.nav-actions .btn--outline {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-header .btn--outline:hover,
.site-header .btn--ghost:hover,
.nav-actions .btn--outline:hover {
  background: #ffffff;
  color: #0a1525;
}

/* Primary CTA: cleaner lime pill, slightly bolder */
.btn--primary, body.theme4 .btn--primary {
  background: var(--color-accent);
  color: var(--color-cta-text);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 0;
  font-style: italic;
}
.btn--primary:hover, body.theme4 .btn--primary:hover {
  background: var(--color-accent-hover);
}

/* Sticky CTA bonus text uses Inter for legibility */
.sticky-cta__bonus {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* Stat bar values: condensed italic so they feel scoreboard-y */
.stats-bar__value, body.theme4 .stats-bar__value {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  font-style: italic;
  font-weight: 800;
}

/* Jackpot amount: scoreboard treatment */
.jackpot-amount {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.005em;
}

/* Quick-table headers in italic-condensed for sport feel */
.quick-table th, body.theme4 .quick-table th {
  font-family: 'Saira Condensed', 'Oswald', Impact, sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
