/*
Theme Name: EK1 Play
Theme URI: https://example.com/
Author: Your Studio
Author URI: https://example.com/
Description: SEO-friendly, mobile-first landing theme for promoting a real-money gaming app. Built for maximum organic reach with structured game pages, a blog, and a compliance-minded layout (age gate, responsible-gaming footer, disclaimers).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ek1-play
*/

/* -------------------------------------------------------
   0. Design tokens
------------------------------------------------------- */
:root {
  /* Red/black neon palette (EK1 branding). --gold/--gold-light names are
     legacy from the previous gold+red skin — kept so every existing rule
     that references them still resolves, but they now hold neon red/pink
     values instead of gold. */
  --bg-0: #050002;
  --bg-1: #0d0106;
  --bg-2: #170510;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 32, 68, 0.28);
  --gold: #ff2d55;
  --gold-light: #ff96a8;
  --red: #ff1744;
  --red-dark: #7a0019;
  --text: #f5ecec;
  --text-muted: #cdb0b3;
  --success: #3ecf8e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --header-h: 72px;
  --sticky-cta-h: 64px;
}

/* -------------------------------------------------------
   1. Reset
------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 160% at 50% -10%, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-cta-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 56px 0; }
.section-title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  text-align: center;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}
.gold-rule {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 12px auto 28px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold);
  color: #1a0007; padding: 10px 16px; z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------
   2. Buttons
------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(180deg, #ff5c7a 0%, var(--red) 55%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 23, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 23, 68, 0.6); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #1a0007;
  box-shadow: 0 8px 22px rgba(255, 45, 85, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text);
}
.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.1rem; }

/* -------------------------------------------------------
   3. Header / Nav
------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(18, 1, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
/* flex:1 is required — .site-header is itself display:flex, so without it the
   container shrinks to content width and margin:0 auto centres it, leaving
   dead space at both edges instead of spanning the bar. */
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: nowrap; flex: 1; min-width: 0; }
.site-branding { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--gold-light); flex-shrink: 0; white-space: nowrap; }
.site-branding .logo-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(255, 23, 68, 0.45));
}
.site-branding .logo-mark svg { width: 100%; height: 100%; }
/* the_custom_logo() ships its own <img> with no size constraint of its
   own — without this it renders at native upload resolution and blows
   out the header. */
.site-branding .custom-logo-link {
  display: flex; align-items: center; flex-shrink: 0;
}
.site-branding .custom-logo-link img {
  width: 42px; height: 42px; object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(255, 23, 68, 0.45));
}
.primary-nav { min-width: 0; }
.primary-nav ul {
  display: flex; gap: 20px; align-items: center;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav a { font-weight: 600; color: var(--text-muted); font-size: 0.92rem; white-space: nowrap; flex-shrink: 0; }
.primary-nav a:hover, .primary-nav a:focus { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* Sized to sit inside the 72px bar with breathing room above and below,
   rather than inheriting the tall default .btn padding. */
.btn-header-cta {
  padding: 10px 22px;
  font-size: 0.92rem;
  height: 42px;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--card-border);
  color: var(--gold-light); border-radius: 8px; width: 42px; height: 42px;
  align-items: center; justify-content: center; font-size: 1.3rem;
}

@media (max-width: 900px) {
  /* Positioned absolute (not fixed) on purpose: .site-header uses
     backdrop-filter, which makes it the containing block for fixed
     descendants — a fixed panel would size against the 72px bar instead of
     the viewport. Absolute against the sticky header is predictable, and
     visibility/opacity avoids depending on a percentage translate that
     collapses when the panel's own height is small. */
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    background: var(--bg-0);
    border-top: 1px solid var(--card-border);
    padding: 24px 20px; overflow-y: auto; z-index: 400;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; overflow-x: visible; }
  .primary-nav a { display: block; padding: 14px 4px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-header-cta { display: none; }
}

@supports (height: 100dvh) {
  @media (max-width: 900px) {
    .primary-nav { height: calc(100dvh - var(--header-h)); }
  }
}

/* -------------------------------------------------------
   4. Age gate
------------------------------------------------------- */
.age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 0, 3, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-gate[hidden] { display: none; }
.age-gate-card {
  max-width: 420px; width: 100%; text-align: center;
  background: var(--bg-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px 26px; box-shadow: var(--shadow-card);
}
.age-gate-card .age-badge {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--red));
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: #1a0007; font-size: 1.3rem;
}
.age-gate-actions { display: flex; gap: 12px; margin-top: 20px; }
.age-gate-actions .btn { flex: 1; }
.age-gate-fine { font-size: 0.78rem; margin-top: 16px; color: var(--text-muted); }

/* -------------------------------------------------------
   5. Hero
------------------------------------------------------- */
.hero {
  padding: 48px 0 40px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(255,45,85,0.12), transparent 60%);
}
.hero .container { display: grid; gap: 32px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  background: linear-gradient(180deg, #fff, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.08rem; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.hero-trust-item strong { color: var(--gold-light); }
.hero-visual {
  aspect-ratio: 3/2; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #2c0a1c, #180410 60%);
  border: 1px solid var(--card-border); box-shadow: var(--shadow-card);
  overflow: hidden; position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}

/* -------------------------------------------------------
   6. Cards / grids
------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); padding: 22px 18px; text-align: center;
}
.card .icon-circle {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--red));
  display: flex; align-items: center; justify-content: center; color: #1a0007;
}
.card h3 { color: var(--gold-light); font-size: 1rem; margin-bottom: 4px; }
.card p { margin: 0; font-size: 0.88rem; }

.game-card {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.game-thumb {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-0));
  position: relative;
}
.game-thumb .badge {
  position: absolute; top: 8px; left: 8px; font-size: 0.68rem; font-weight: 700;
  background: rgba(0,0,0,0.5); color: var(--gold-light); padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--card-border);
}
.game-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card-body h3 { font-size: 0.95rem; margin: 0; }
.game-card-body .meta { font-size: 0.76rem; color: var(--text-muted); }
.game-card-body .btn { margin-top: auto; padding: 10px 16px; font-size: 0.88rem; }

/* -------------------------------------------------------
   7. Steps
------------------------------------------------------- */
.steps { counter-reset: step; }
.step-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.step-item:last-child { border-bottom: none; }
.step-num {
  counter-increment: step; flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-light); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step-body h3 { font-size: 1rem; margin-bottom: 4px; }
.step-body p { margin: 0; }

/* -------------------------------------------------------
   8. FAQ accordion
------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 16px 18px; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-weight: 700;
}
.faq-question .chev { transition: transform 0.2s ease; color: var(--gold); flex: none; }
.faq-item[open] .faq-question .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 18px 16px; }

/* -------------------------------------------------------
   9. Blog teaser / cards
------------------------------------------------------- */
.post-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-md); overflow: hidden; }
.post-card .post-thumb { aspect-ratio: 16/9; background: linear-gradient(160deg, var(--bg-2), var(--bg-0)); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 16px 18px 20px; }
.post-card-body .post-date { font-size: 0.75rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.post-card-body h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.post-card-body a.read-more { color: var(--gold-light); font-weight: 700; font-size: 0.88rem; }

/* -------------------------------------------------------
   10. Disclaimer / responsible gaming banner
------------------------------------------------------- */
.disclaimer-banner {
  background: var(--bg-2); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
  padding: 18px 0; font-size: 0.82rem; color: var(--text-muted); text-align: center;
}
.disclaimer-banner strong { color: var(--gold-light); }

/* -------------------------------------------------------
   11. Footer
------------------------------------------------------- */
.site-footer { background: var(--bg-0); padding: 48px 0 24px; border-top: 1px solid var(--card-border); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h2 { color: var(--gold-light); font-size: 0.95rem; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col span { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text-muted);
}
.footer-legal { max-width: 900px; font-size: 0.76rem; color: var(--text-muted); opacity: 0.85; margin-bottom: 18px; }

/* -------------------------------------------------------
   12. Sticky mobile CTA bar
------------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
  height: var(--sticky-cta-h);
  background: rgba(18,1,10,0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-border);
  display: flex; align-items: center; padding: 0 16px;
}
.sticky-cta .container { display: flex; align-items: center; gap: 12px; padding: 0; flex: 1; min-width: 0; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 900px) { .sticky-cta { display: none; } body { padding-bottom: 0; } }

/* -------------------------------------------------------
   13. Single game / page content
------------------------------------------------------- */
.page-hero { padding: 40px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); color: var(--gold-light); }
.entry-content { max-width: 780px; margin: 0 auto; }
.entry-content h2 { color: var(--gold-light); margin-top: 1.6em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.entry-content ul li { color: var(--text-muted); margin-bottom: 6px; }
.entry-content blockquote {
  border-left: 3px solid var(--gold); margin: 1.2em 0; padding: 4px 0 4px 16px; color: var(--text-muted); font-style: italic;
}

.breadcrumbs { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--gold-light); }

/* -------------------------------------------------------
   14. Contact form
------------------------------------------------------- */
.form-field { margin-bottom: 16px; text-align: left; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--gold-light); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.25); border: 1px solid var(--card-border); color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--gold); }
.form-notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.9rem; }
.form-notice.success { background: rgba(62,207,142,0.12); border: 1px solid var(--success); color: var(--success); }
.form-notice.error { background: rgba(255, 23, 68,0.12); border: 1px solid var(--red); color: #ff8a97; }
.honeypot-field { position: absolute; left: -9999px; }

/* -------------------------------------------------------
   15. Utility
------------------------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.cta-banner {
  text-align: center; padding: 44px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,45,85,0.14), rgba(255, 23, 68,0.14));
  border: 1px solid var(--card-border);
}
.cta-banner h2 { color: var(--gold-light); margin-bottom: 8px; }

/* -------------------------------------------------------
   15a. Full-width site banner image
------------------------------------------------------- */
.site-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  position: relative;
}
.site-banner img { width: 100%; height: auto; display: block; }
.site-banner-cta {
  text-align: center;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
}
@media (min-width: 760px) {
  .site-banner-cta {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px;
  }
}

/* -------------------------------------------------------
   15b. Promo banner (original mascot/chest artwork)
------------------------------------------------------- */
.promo-banner {
  display: block; width: 100%; max-width: 900px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--card-border);
  transition: opacity 0.15s ease;
}
.promo-banner:hover { opacity: 0.92; }
.promo-banner img { width: 100%; height: auto; display: block; }
.back-to-top {
  position: fixed; right: 16px; bottom: calc(var(--sticky-cta-h) + 16px); z-index: 590;
  width: 42px; height: 42px; border-radius: 50%; background: var(--card); border: 1px solid var(--card-border);
  color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .back-to-top { bottom: 20px; } }
