/* ─────────────────────────────────────────────────────────────
   Golden Spark Casino — Landing Page
   Tab-based SPA: hero always visible, one section at a time.
───────────────────────────────────────────────────────────── */

:root {
  --c-deep:   #09022c;
  --c-sec:    #0d0735;
  --c-card:   rgba(255,255,255,0.05);
  --c-input:  rgba(255,255,255,0.08);
  --c-border: rgba(88,91,255,0.3);
  --c-purple: #585bff;
  --c-purple2:#560dff;
  --c-gold:   #f5c842;
  --c-ok:     #2ecc71;
  --c-err:    #e74c3c;
  --c-txt:    #fff;
  --c-txt2:   rgba(255,255,255,0.7);
  --c-txt3:   rgba(255,255,255,0.42);
  --r-pill:   40px;
  --r-card:   16px;
  --shadow:   0 8px 32px rgba(0,0,0,0.45);
  --tr:       0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--c-deep);
  color: var(--c-txt);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a, button { text-decoration: none; color: inherit; cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── nav pill button ──────────────────────────────────────── */
.nl {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-txt2);
  white-space: nowrap;
  transition: color var(--tr), background var(--tr);
}
.nl:hover  { color: #fff; background: rgba(88,91,255,0.18); }
.nl.active {
  color: #fff;
  background: linear-gradient(110deg, var(--c-purple) 4%, var(--c-purple2) 137%);
  box-shadow: 0 4px 18px rgba(88,91,255,0.5);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 960px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% -25%;
  background: url('/images/hero-bg.png') center/cover no-repeat;
  filter: blur(14px); transform: scale(1.15); z-index: 0;
}
.hero-light {
  position: absolute; inset: -20% -25%;
  background: url('/images/hero-light.png') center/cover no-repeat;
  mix-blend-mode: color-dodge; opacity: 0.55; z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9,2,44,0.05) 25%, rgba(9,2,44,0.88) 100%);
  z-index: 2;
}

.chip {
  position: absolute; z-index: 3; pointer-events: none; object-fit: cover;
}
.chip-tl { top:10%; left:6%;   width:115px; animation: fl 6s   ease-in-out infinite; }
.chip-tr { top:7%;  right:8%;  width:148px; animation: fl 7s   ease-in-out infinite 1s; }
.chip-bl { bottom:20%; left:5%; width:95px;  animation: fl 5.5s ease-in-out infinite 2.5s; }
.chip-br { bottom:20%; right:6%;width:125px; animation: fl 7.5s ease-in-out infinite 0.5s; }
@keyframes fl { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

.orb {
  position: absolute; z-index: 3; pointer-events: none;
  mix-blend-mode: screen; opacity: 0.45; object-fit: cover;
  width: 210px; left: 43%; top: 40%;
  animation: or 8s ease-in-out infinite;
}
@keyframes or { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }

.hero-body {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding-bottom: 90px;   /* leave room for bottom nav */
}
.hero-logo {
  width: min(400px, 70vw);
  filter: drop-shadow(0 0 32px rgba(120,100,255,0.6));
  animation: glow 4s ease-in-out infinite;
}
@keyframes glow {
  0%,100%{filter:drop-shadow(0 0 24px rgba(120,100,255,0.5))}
  50%    {filter:drop-shadow(0 0 52px rgba(120,100,255,0.9))}
}
.hero-tag {
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 600; color: var(--c-gold);
  letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 0 0 18px rgba(245,200,66,0.5);
}
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-badges a {
  display: block; width: 185px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform var(--tr), box-shadow var(--tr);
}
.hero-badges a:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.6); }
.hero-badges img { width:100%; height:60px; object-fit:contain; display:block; }

/* ── NAV BAR at bottom of hero ───────────────────────────── */
.hnav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
  width: min(1000px, calc(100vw - 20px));
  padding: 0 10px;
  background: linear-gradient(90deg,
    rgba(41,36,135,0) 0%,
    rgba(40,36,130,0.88) 30%,
    rgba(40,36,130,0.88) 70%,
    rgba(41,36,135,0) 100%);
  border-top:    1px solid rgba(72,66,237,0.5);
  border-bottom: 1px solid rgba(72,66,237,0.5);
}

/* ── TAB SECTIONS ─────────────────────────────────────────── */
.tab-section {
  display: none;                /* hidden by default */
  padding: 72px 0 60px;
  background: var(--c-sec);
  min-height: 400px;
  animation: fadeIn 0.25s ease;
}
.tab-section:not([hidden]) { display: block; } /* shown when [hidden] removed */
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* section title */
.sec-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700; color: #fff;
  padding-left: 18px;
  border-left: 4px solid var(--c-purple);
  margin-bottom: 40px;
  line-height: 1.2;
}
.sec-sub {
  color: var(--c-txt2); font-size: 15px;
  margin-bottom: 36px; max-width: 600px;
}

/* games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gcard {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--tr), box-shadow var(--tr);
}
.gcard:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(88,91,255,0.3); }
.gcard-img {
  width: 100%; aspect-ratio: 1/1;
  background-size: cover; background-position: center;
  background-color: #130840;
}
.gcard-info { padding: 14px 16px; }
.gcard-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.gcard-info p  { font-size: 13px; color: var(--c-txt2); line-height: 1.5; }

/* about */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.about-text p {
  color: var(--c-txt2); font-size: 15px; line-height: 1.8; margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-img-wrap { display: flex; justify-content: center; }
.about-img {
  width: 100%; max-width: 480px; aspect-ratio: 16/9;
  border-radius: var(--r-card);
  border: 1px solid var(--c-border);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
}

/* contact form */
.cform { max-width: 680px; margin: 0 auto; }
.frow  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fg    { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.fg label { font-size: 13px; font-weight: 600; color: var(--c-txt2); }
.fg input,
.fg select,
.fg textarea {
  background: var(--c-input);
  border: 1px solid var(--c-border);
  border-radius: 8px; color: #fff;
  font-size: 14px; padding: 10px 14px;
  outline: none; width: 100%;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.45)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.fg select option { background: #1a1040; }
.fg textarea { resize: vertical; min-height: 120px; }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(88,91,255,0.2);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--c-txt3); }
.ferr     { font-size: 12px; color: var(--c-err); min-height: 16px; }
.fhint    { font-size: 11px; color: var(--c-txt3); text-align: right; }
.faction  { display: flex; justify-content: center; margin-top: 8px; }

.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 52px;
  background: linear-gradient(110deg, var(--c-purple) 4%, var(--c-purple2) 137%);
  color: #fff; font-size: 15px; font-weight: 700;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 18px rgba(88,91,255,0.5);
  min-width: 160px;
  transition: transform var(--tr), box-shadow var(--tr), opacity var(--tr);
}
.btn-submit:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 8px 28px rgba(88,91,255,0.65); }
.btn-submit:disabled { opacity:.6; cursor:not-allowed; }
.bs {
  display: none; width:15px; height:15px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color:#fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-submit.loading .bs { display:block; }
.btn-submit.loading .bt { display:none; }
@keyframes spin { to{transform:rotate(360deg)} }
.fok {
  display:none; margin-top:18px; padding:14px 18px;
  border-radius:12px; background:rgba(46,204,113,.14);
  border:1px solid rgba(46,204,113,.3); color:var(--c-ok); font-size:14px; text-align:center;
}
.ferr-box {
  display:none; margin-top:18px; padding:14px 18px;
  border-radius:12px; background:rgba(231,76,60,.14);
  border:1px solid rgba(231,76,60,.3); color:var(--c-err); font-size:14px; text-align:center;
}

/* legal */
.legal { max-width:800px; color:var(--c-txt2); font-size:15px; line-height:1.8; }
.legal h3 { color:#fff; font-size:16px; font-weight:600; margin:26px 0 8px; }
.legal p  { margin-bottom:10px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: #060118;
  padding: 40px 0 18px;
  border-top: 1px solid rgba(72,66,237,0.35);
}
.foot-row {
  display: flex; align-items:flex-start;
  justify-content:space-between; gap:32px;
  flex-wrap:wrap; margin-bottom:32px;
}
.foot-brand img { height:50px; object-fit:contain; margin-bottom:8px; }
.foot-brand p   { font-size:13px; color:var(--c-txt3); }
.foot-nav { display:flex; flex-wrap:wrap; gap:8px 18px; }
.foot-link {
  font-size:14px; color:var(--c-txt2);
  transition:color var(--tr);
  background:none; border:none; cursor:pointer; padding:0;
}
.foot-link:hover { color:#fff; }
.foot-copy {
  font-size:12px; color:var(--c-txt3); text-align:center;
  border-top:1px solid rgba(255,255,255,0.06); padding-top:16px;
}

/* ── responsive ───────────────────────────────────────────── */
@media (max-width:1080px) {
  .hnav { gap:0; }
  .nl   { padding:8px 10px; font-size:13px; }
}
@media (max-width:800px) {
  /* collapse hero nav to scrollable row */
  .hnav { overflow-x:auto; justify-content:flex-start; padding:0 12px; }
  .hnav::-webkit-scrollbar { height:3px; }
  .games-grid  { grid-template-columns:repeat(2,1fr); }
  .about-row   { grid-template-columns:1fr; }
  .about-img-wrap { order:-1; }
  .frow        { grid-template-columns:1fr; }
  .foot-row    { flex-direction:column; }
}
@media (max-width:520px) {
  .chip        { display:none; }
  .hero-badges a { width:150px; }
  .hero-badges img { height:52px; }
  .tab-section { padding:56px 0 48px; }
}
