/*
Theme Name: SmoothPlayHaven
Theme URI: https://smoothplayhaven.com
Author: SmoothPlayHaven
Author URI: https://smoothplayhaven.com
Description: A smooth, premium social-gaming theme for SmoothPlayHaven. Auto-generates all site pages on activation, featuring a calm "haven" aesthetic with glassmorphism, ambient gradients and a refined aqua/coral palette.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smoothplayhaven
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --bg-0: #060f17;
  --bg-1: #0a1a26;
  --bg-2: #0e2331;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);

  --ink: #eaf6f4;
  --ink-soft: #9fb6bd;
  --ink-faint: #6c8893;

  --mint: #45e3c4;
  --mint-deep: #1bb89c;
  --aqua: #38c6e0;
  --coral: #ff8a6b;
  --gold: #ffc36b;
  --violet: #8f7bff;

  --grad-brand: linear-gradient(120deg, #45e3c4 0%, #38c6e0 50%, #8f7bff 100%);
  --grad-warm: linear-gradient(120deg, #ffc36b 0%, #ff8a6b 100%);

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 60px -10px rgba(69, 227, 196, 0.35);

  --font-display: "Bricolage Grotesque", "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
}

/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(900px 600px at 12% -5%, rgba(69, 227, 196, 0.12), transparent 60%),
    radial-gradient(800px 600px at 95% 8%, rgba(143, 123, 255, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 80% 100%, rgba(255, 138, 107, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 55%, var(--bg-0));
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--aqua); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.narrow { max-width: 880px; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 18px;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--grad-brand);
  color: #042019;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); color: #042019; box-shadow: 0 0 70px -8px rgba(69,227,196,.55); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); color: var(--ink); border-color: var(--mint); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(6, 15, 23, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand span b { color: var(--mint); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 999px;
  transition: all .2s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  color: var(--ink);
  background: var(--surface);
}
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 110px 0 90px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  margin-bottom: 22px;
}
.hero p.lead {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-orb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad-brand);
  filter: blur(2px);
  opacity: .25;
  animation: float 9s ease-in-out infinite;
  max-width: 420px;
  margin-left: auto;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: var(--radius-l);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.hero-card .chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--mint);
  background: rgba(69,227,196,.10);
  border: 1px solid rgba(69,227,196,.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 6px; }
.hero-stat { text-align: center; padding: 14px 8px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--border-soft); }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 22px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat small { color: var(--ink-faint); font-size: 12px; letter-spacing: .04em; }

@keyframes float { 0%,100% { transform: translateY(0) scale(1);} 50% { transform: translateY(-18px) scale(1.03);} }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--ink-soft); }

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.feature-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-brand);
  opacity: 0; transition: opacity .35s;
  mix-blend-mode: overlay;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(69,227,196,.4); box-shadow: var(--shadow-soft); }
.feature-card:hover::before { opacity: .12; }
.feature-ico {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
}
.feature-ico svg { width: 28px; height: 28px; color: #051a16; }
.ico-mint { background: var(--grad-brand); }
.ico-warm { background: var(--grad-warm); }
.ico-violet { background: linear-gradient(120deg,#8f7bff,#38c6e0); }
.feature-card h3 { font-size: 21px; }
.feature-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* =========================================================
   GAMES SHOWCASE
   ========================================================= */
.game-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}
.game-row:last-child { margin-bottom: 0; }
.game-row.reverse .game-media { order: 2; }
.game-media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.game-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,15,23,.4));
  pointer-events: none;
}
.game-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.game-info h3 { font-size: clamp(26px, 3vw, 38px); }
.game-info p { color: var(--ink-soft); font-size: 16px; }
.game-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step {
  padding: 32px 28px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border);
  position: relative;
}
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #04201a; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* =========================================================
   HALL OF FAME
   ========================================================= */
.hof {
  border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.hof table { width: 100%; border-collapse: collapse; }
.hof th, .hof td { padding: 18px 22px; text-align: left; font-size: 15px; }
.hof thead th {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; color: var(--ink-faint); background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}
.hof tbody tr { border-bottom: 1px solid var(--border-soft); transition: background .2s; }
.hof tbody tr:last-child { border-bottom: 0; }
.hof tbody tr:hover { background: rgba(69,227,196,.05); }
.hof .rank { font-size: 20px; }
.hof .score { font-family: var(--font-display); font-weight: 700; color: var(--mint); }
.hof .activity { color: var(--ink-faint); }

/* =========================================================
   COMPLIANCE / TRUST BADGES
   ========================================================= */
.trust {
  display: flex; align-items: center; justify-content: center; gap: 30px;
  flex-wrap: wrap; margin-top: 64px;
}
.trust a, .trust .badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 14px; padding: 14px 22px; min-height: 64px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.trust a:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.trust img { height: 34px; width: auto; }
.badge-18 { font-family: var(--font-display); font-weight: 800; color: #d8453a; border: 2px solid #d8453a; border-radius: 50%; width: 56px; height: 56px; display:grid; place-items:center; }

/* =========================================================
   STATIC / LEGAL PAGES
   ========================================================= */
.page-hero { padding: 80px 0 0; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.prose { max-width: 880px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin-top: 1.4em; color: var(--mint); }
.prose h4 { font-size: 17px; margin-top: 1.2em; color: var(--ink); }
.prose p { color: var(--ink-soft); }
.prose ul { color: var(--ink-soft); padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }
.prose ul li::marker { color: var(--mint); }
.prose a { font-weight: 600; }
.prose .lead { color: var(--ink); font-size: 19px; }

/* =========================================================
   FORMS
   ========================================================= */
.form-wrap { max-width: 880px; }
.spv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.spv-form .full { grid-column: 1 / -1; }
.spv-form label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 8px; text-transform: uppercase; }
.spv-form input, .spv-form textarea {
  width: 100%; padding: 16px 18px; font-family: var(--font-body); font-size: 16px;
  color: var(--ink); background: var(--surface-strong);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s;
}
.spv-form input::placeholder, .spv-form textarea::placeholder { color: var(--ink-faint); }
.spv-form input:focus, .spv-form textarea:focus {
  outline: none; border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(69,227,196,.18);
}
.spv-form textarea { min-height: 170px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* =========================================================
   GAME PLAY PAGES
   ========================================================= */
.game-stage { text-align: center; padding: 80px 0 60px; }
.game-stage h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 36px; }
.game-frame {
  position: relative; max-width: 1080px; margin: 0 auto;
  border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  background: var(--bg-2);
}
.game-frame iframe { display: block; width: 100%; aspect-ratio: 1080/500; border: 0; }
.game-back { margin-top: 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.disclaimer-band {
  background: linear-gradient(180deg, rgba(14,35,49,.6), rgba(6,15,23,.9));
  border-top: 1px solid var(--border-soft);
  padding: 50px 0;
}
.disclaimer-band h4 { font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.disclaimer-band p { color: var(--ink-faint); font-size: 14px; max-width: 1000px; margin: 0; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--border-soft); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--mint); }
.footer-copy { color: var(--ink-faint); font-size: 13px; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .game-row { grid-template-columns: 1fr; gap: 28px; }
  .game-row.reverse .game-media { order: 0; }
  .spv-form { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(6,15,23,.97); backdrop-filter: blur(16px); padding: 18px 24px 26px;
    border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .35s ease; gap: 4px; }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .hof { overflow-x: auto; }
  .hof table { min-width: 520px; }
}
