/*
Theme Name: SpinArena
Theme URI: https://spinarena.it.com/
Author: SpinArena
Author URI: https://spinarena.it.com/
Description: A responsive entertainment games theme for SpinArena.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: spinarena
*/

:root {
  --page: #050713;
  --panel: #0b1024;
  --panel-soft: #111a36;
  --ink: #f7fbff;
  --muted: #b6c5da;
  --line: rgba(125, 210, 255, 0.2);
  --cyan: #49dcff;
  --blue: #1f6fff;
  --gold: #ffd05a;
  --amber: #ff9f2f;
  --green: #6ff08d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 100, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 85% 8%, rgba(111, 240, 141, 0.12), transparent 26rem),
    linear-gradient(180deg, #050713 0%, #091024 48%, #050713 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 19, 0.78);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #061024;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  box-shadow: 0 0 28px rgba(73, 220, 255, 0.26);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.age-pill {
  min-width: 48px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 208, 90, 0.56);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 820px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.12) brightness(0.68);
  transform: scale(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 19, 0.94) 0%, rgba(5, 7, 19, 0.64) 44%, rgba(5, 7, 19, 0.2) 100%),
    linear-gradient(0deg, var(--page) 0%, rgba(5, 7, 19, 0.28) 36%, rgba(5, 7, 19, 0.52) 100%);
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 116px 0 96px;
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(73, 220, 255, 0.35);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(5, 7, 19, 0.42);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  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, 159, 47, 0.35);
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #071022;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  box-shadow: 0 14px 34px rgba(73, 220, 255, 0.2);
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-heading h2,
.content-page h1,
.game-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.content-page p,
.game-title p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 26, 54, 0.94), rgba(8, 12, 30, 0.98));
  box-shadow: var(--shadow);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  opacity: 0.75;
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050713;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.035);
  filter: saturate(1.14);
}

.game-overlay {
  position: absolute;
  inset: auto 0 0;
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 46px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 6, 18, 0.78) 58%, rgba(3, 6, 18, 0.95) 100%);
}

.game-name {
  min-width: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.game-overlay .button {
  min-width: 116px;
  min-height: 44px;
  flex: 0 0 auto;
}

.game-body {
  padding: 18px;
}

.game-body h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.game-body p {
  margin: 9px 0 18px;
  min-height: 3em;
  color: var(--muted);
}

.info-band {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.info-list {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-item {
  min-width: 0;
  padding: 18px;
  border-left: 2px solid rgba(73, 220, 255, 0.65);
}

.info-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.info-item span {
  color: var(--muted);
}

.game-main {
  width: min(100% - 24px, 1320px);
  margin: 0 auto;
  padding: 38px 0 70px;
}

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

.game-frame {
  width: 100%;
  min-height: min(760px, calc(100vh - 220px));
  border: 1px solid rgba(73, 220, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  background: #02040d;
  box-shadow: var(--shadow);
}

.game-frame iframe {
  width: 100%;
  height: min(760px, calc(100vh - 220px));
  min-height: 560px;
  display: block;
  border: 0;
  background: #02040d;
}

.content-page {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 72px 0;
}

.content-page a {
  color: var(--cyan);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #040611;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 38px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.footer-inner h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.footer-inner p,
.footer-inner li {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 800;
}

.copyright {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8292aa;
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-inner {
    padding: 118px 0 72px;
  }

  .section-heading,
  .game-title,
  .footer-grid {
    display: block;
  }

  .game-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .game-frame,
  .game-frame iframe {
    min-height: 620px;
    height: calc(100vh - 150px);
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.4rem;
  }

  .button {
    width: 100%;
  }

  .game-body p {
    min-height: 0;
  }
}
