/*
Theme Name: Golden Spins
Theme URI: https://goldenspins.it.com/
Author: Golden Spins
Description: Bright entertainment games theme for Golden Spins.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: goldenspins
*/

:root {
  --bg: #090a18;
  --bg-soft: #111329;
  --panel: rgba(16, 18, 39, 0.78);
  --panel-strong: rgba(22, 25, 52, 0.94);
  --text: #ffffff;
  --muted: #c9d2ef;
  --gold: #ffd45a;
  --gold-deep: #f49a2f;
  --cyan: #58d6ff;
  --pink: #ff4fd8;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 79, 216, 0.18), transparent 26rem),
    radial-gradient(circle at 84% 10%, rgba(88, 214, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, #070814 0%, #11132c 48%, #070814 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.admin-bar .site-header {
  top: 32px;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 22, 0.72);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(255, 212, 90, 0.34);
}

.brand-name {
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  border: 1px solid rgba(255, 212, 90, 0.45);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 212, 90, 0.1);
}

.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 840px);
  display: flex;
  align-items: center;
  padding: 128px 0 70px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(5px) saturate(1.05);
  transform: scale(1.025);
  opacity: 0.78;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 8, 20, 0.94) 0%, rgba(7, 8, 20, 0.68) 46%, rgba(7, 8, 20, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 8, 20, 0.24) 0%, rgba(7, 8, 20, 0.72) 100%);
}

.hero-inner,
.section-inner,
.footer-inner,
.game-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--gold);
  text-shadow: 0 0 36px rgba(255, 212, 90, 0.28);
}

.hero-text {
  max-width: 590px;
  margin: 24px 0 30px;
  color: #eef3ff;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #170c00;
  background: linear-gradient(135deg, #fff1a8 0%, var(--gold) 40%, var(--gold-deep) 100%);
  box-shadow: 0 14px 36px rgba(244, 154, 47, 0.34);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button.secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.games-section {
  position: relative;
  padding: 68px 0 84px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.game-card:hover img {
  transform: scale(1.035);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 20, 0.02) 0%, rgba(7, 8, 20, 0.84) 100%),
    linear-gradient(90deg, rgba(7, 8, 20, 0.46), transparent 58%);
}

.game-card-content {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.game-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.02;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.info-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.info-item {
  padding: 26px;
  background: rgba(7, 8, 20, 0.36);
}

.info-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
}

.info-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 42px 0;
  background: #060713;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p {
  margin: 0 0 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #ffffff;
  font-weight: 800;
}

.legal-page {
  padding: 128px 0 72px;
}

.legal-card {
  max-width: 860px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.legal-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.game-page {
  min-height: 100vh;
  padding: 104px 0 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 212, 90, 0.16), transparent 24rem),
    var(--bg);
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.game-top h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.game-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow);
}

.game-frame-wrap iframe {
  display: block;
  width: 100%;
  height: min(78vh, 780px);
  min-height: 540px;
  border: 0;
  background: #000000;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 66px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.86rem;
  }

  .nav-links a:not(.age-pill) {
    display: none;
  }

  .hero {
    min-height: 690px;
    padding-top: 104px;
    align-items: end;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 8, 20, 0.26) 0%, rgba(7, 8, 20, 0.88) 66%, rgba(7, 8, 20, 0.98) 100%);
  }

  .hero-copy {
    padding-bottom: 24px;
  }

  .games-grid,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .game-card {
    min-height: 300px;
  }

  .game-card-content {
    align-items: start;
    flex-direction: column;
  }

  .game-frame-wrap iframe {
    min-height: 460px;
    height: 72vh;
  }
}
