/*
Theme Name: WinHero
Theme URI: https://example.com/
Author: WinHero
Description: Casino review theme (WinHero). Dark premium layout with an editable hero (H1 + intro), an editable facts table, and a classic content area. Colors, logo, buttons, affiliate track-link and responsible-gaming text are set in the Customizer (Appearance -> Customize -> WinHero). Optimized for Classic Editor, Gutenberg and SEO plugins (Yoast, Rank Math, AIOSEO).
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: winhero
*/

:root {
  --bg:        #0B1220;   /* overridden by Customizer */
  --bg-2:      #0E1728;
  --surface:   #131F33;
  --surface-2: #1A2942;
  --line:      #24344F;
  --ink:       #EAF1FB;
  --muted:     #93A4C0;
  --green:     #17C08B;
  --green-dk:  #0EA574;
  --gold:      #F0C25A;   /* overridden by Customizer (accent) */
  --gold-solid:#FEC81A;   /* overridden by Customizer (accent) */
  --gold-rgb:  254,200,26; /* overridden by Customizer (accent) */
  --danger:    #FF6B6B;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1400px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: #000000;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: "Sora", sans-serif; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #292933;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img, .custom-logo {
  display: block;
  height: 46px;
  width: auto;
}
.brand .brand-text { font-family: "Sora", sans-serif; font-weight: 800; font-size: 22px; color: var(--gold); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 auto 0 28px;
  padding: 0;
}
.nav-links a { color: #FFFFFF; }
.nav-links a:hover { opacity: .75; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

/* Transparent button with white text */
.btn-clear {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,.55);
}
.btn-clear:hover {
  background: rgba(255,255,255,.1);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* Gold-outline button */
.btn-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: rgba(var(--gold-rgb),.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(var(--gold-rgb),.6);
}

.nav .btn { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; color: #FFFFFF; cursor: pointer; }
.site-header .btn { color: #FFFFFF; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.btn-gold-solid {
  background: var(--gold-solid);
  color: #000000;
  border-color: var(--gold-solid);
}
.btn-gold-solid:hover {
  filter: brightness(1.08);
  color: #000000;
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold-solid);
  border-color: var(--gold-solid);
}
.btn-outline-gold:hover {
  background: rgba(var(--gold-rgb),.12);
  color: var(--gold-solid);
  transform: translateY(-2px);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: calc(82vh - 96px);
  display: flex;
  align-items: center;
  padding: 80px 0 110px;
  /* default: dark gradient only. A per-page hero image is injected inline via the editor field. */
  background-image: linear-gradient(90deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.40) 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #000000;
}
.hero > .wrap { width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 700px; }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.12rem;
  color: #FFFFFF;
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-cta .btn {
  padding-left: 46px;
  padding-right: 46px;
}

/* Template 2 (inner page): compact hero, no image */
.hero.hero--inner {
  min-height: 0;
  padding: 56px 0 8px;
  background-image: none;
}
.hero--inner h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.hero--inner p.lead { font-size: 1.05rem; margin-bottom: 26px; }
.hero--inner .hero-cta { margin-bottom: 0; }

/* ===================== TABLE: casino at a glance ===================== */
.facts { padding: 64px 0 72px; }
.facts-head { margin-bottom: 26px; }
.facts h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -.02em;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.facts .sub { color: var(--muted); font-size: 15px; max-width: 640px; }

.facts-card {
  background: transparent;
  border: 1px solid #FFFFFF;
  border-radius: 0;
  overflow: hidden;
}
table.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
table.facts-table caption { display: none; }
table.facts-table th,
table.facts-table td {
  text-align: left;
  padding: 15px 24px;
  border-bottom: 1px solid #FFFFFF;
  vertical-align: middle;
}
table.facts-table tr:last-child th,
table.facts-table tr:last-child td { border-bottom: 0; }
table.facts-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.02); }
table.facts-table th {
  width: 38%;
  color: #FFFFFF;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  border-right: 1px solid #FFFFFF;
}
table.facts-table td { color: #FFFFFF; font-weight: 500; }
table.facts-table td .hi { color: #FFFFFF; font-weight: 700; }
.facts-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

@media (max-width: 640px) {
  table.facts-table th, table.facts-table td { padding: 13px 16px; }
  table.facts-table th { width: 46%; font-size: 14px; }
  table.facts-table td { font-size: 14.5px; }
}

/* ===================== CONTENT / SEO BLOCK ===================== */
.seo { padding: 8px 0 88px; }
.seo-inner { max-width: none; margin: 0; text-align: left; }
.seo h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -.02em;
  margin: 44px 0 14px;
}
.seo h2:first-child { margin-top: 0; }
.seo h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 26px 0 10px;
}
.seo p {
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
  margin-bottom: 16px;
}
.seo p strong { color: #FFFFFF; font-weight: 600; }
.seo a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.seo-img, .seo img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 6px 0 24px; }
.seo-cta { text-align: center; margin: 8px 0 30px; }
.seo-cta .btn { padding-left: 40px; padding-right: 40px; color: #FFFFFF; text-decoration: none; }
.seo-cta .btn:hover { color: #FFFFFF; }
.seo a:hover { opacity: .8; }
.seo ul, .seo ol {
  margin: 4px 0 20px;
  padding-left: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}
.seo ul li, .seo ol li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  text-align: left;
}
.seo ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--gold-solid);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.seo-divider {
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 0 0 44px;
}

/* tables typed inside the editor content */
.seo table, .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 26px;
  font-size: 15.5px;
  border: 1px solid #FFFFFF;
}
.seo table th, .seo table td,
.entry-content table th, .entry-content table td {
  text-align: left;
  padding: 14px 20px;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
}
.seo table th, .entry-content table th { font-family: "Sora", sans-serif; font-weight: 700; }

@media (max-width: 640px) {
  .seo { padding-bottom: 64px; }
  .seo p, .seo ul li { font-size: 16px; }
}

/* ===================== FAQ (shortcode / block) ===================== */
.faq { padding: 8px 0 84px; }
.faq-list { display: grid; gap: 16px; }

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease;
  margin: 0 0 16px;
}
details.faq-item[open] { border-color: rgba(255,255,255,.22); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold-solid);
  transition: transform .22s ease;
}
details.faq-item[open] summary::after { content: "\00d7"; }
.faq-item .faq-a {
  margin: 0 26px;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
}
.faq-item .faq-a p { margin: 0 0 12px; }
.faq-item .faq-a a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  details.faq-item summary { padding: 18px 18px; font-size: 1rem; }
  .faq-item .faq-a { margin: 0 18px; }
}

/* inline CTA shortcode */
.winhero-cta { display: inline-block; margin: 6px 0; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: #292933;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.72);
  font-size: 15px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 44px;
}
.footer-brand img, .footer-brand .custom-logo { height: 46px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; line-height: 1.7; color: rgba(255,255,255,.6); font-size: 14.5px; }
.footer-col h4 {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
.footer-col ul, .footer-menu { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.footer-col a, .footer-menu a { color: rgba(255,255,255,.68); font-size: 14.5px; transition: color .2s ease; }
.footer-col a:hover, .footer-menu a:hover { color: #FFFFFF; }

.footer-responsible {
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 22px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
}
.footer-responsible .age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,107,.12);
  color: #FFB4B4;
  border: 1px solid rgba(255,107,107,.35);
  padding: 6px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.footer-responsible .rg-text { font-size: 14px; color: rgba(255,255,255,.7); flex: 1; min-width: 260px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0 30px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-bottom .licence { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .licence svg { color: var(--green); }

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0 56px; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }
}

/* ===================== MOBILE: burger + bottom CTA ===================== */
.m-burger { display: none; }
.m-menu   { display: none; }
.m-cta    { display: none; }

@media (max-width: 720px) {
  .nav-cta { display: none; }
  .m-burger {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto;
    background: transparent; border: 0; color: #FFFFFF; cursor: pointer; padding: 6px;
  }
  .m-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 10px;
    background: #292933; border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 14px 24px 18px; z-index: 45;
    list-style: none; margin: 0;
  }
  .m-menu.open { display: flex; }
  .m-menu a {
    display: block; color: #FFFFFF; font-family: "Sora", sans-serif;
    font-weight: 600; font-size: 16px; padding: 12px 2px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .m-menu li:last-child a { border-bottom: 0; }
  .m-menu a:hover { color: var(--gold); }
  .m-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #292933; border-top: 1px solid rgba(255,255,255,.12);
  }
  .m-cta .btn { flex: 1; padding: 12px; }
  body { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* alignment helpers for block editor */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
