/*
Theme Name: 1X Club Social Games
Theme URI: https://1xclub.it.com/
Author: 1X Club
Description: A modern purple social games theme for 1X Club.
Version: 1.0.0
Text Domain: one-x-club
*/

:root {
  --bg: #0b0712;
  --surface: #151021;
  --surface-soft: #20162f;
  --text: #f6f1ff;
  --muted: #b7adc8;
  --purple: #8857d9;
  --purple-light: #b890f5;
  --line: rgba(208, 185, 255, .16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 8%, rgba(117, 70, 176, .15), transparent 26rem),
    radial-gradient(circle at 15% 50%, rgba(79, 45, 128, .13), transparent 22rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 7, 18, .82);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.nav-link {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); }

.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg, .hero-shade { position: absolute; inset: -18px; }
.hero-bg {
  background: center / cover no-repeat;
  filter: blur(7px) saturate(.76);
  transform: scale(1.035);
  opacity: .58;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 7, 18, .96) 0%, rgba(11, 7, 18, .55) 58%, rgba(11, 7, 18, .78) 100%),
    linear-gradient(0deg, var(--bg), transparent 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 710px; padding: 140px 0 92px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #d5c2f5;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 1px; background: var(--purple-light); content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 660px; margin-bottom: 20px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.065em; }
.hero p { max-width: 590px; margin-bottom: 32px; color: #d3c9df; font-size: clamp(1rem, 2vw, 1.18rem); }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 14px 34px rgba(85, 42, 141, .28);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #9764e7; }

.games { padding: 86px 0 105px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; }
.section-heading p { max-width: 390px; margin-bottom: 4px; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}
.game-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 5, 15, .98), rgba(9, 5, 15, .02) 70%);
  content: "";
}
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.game-card:hover img { transform: scale(1.035); filter: saturate(1.1); }
.card-content { position: absolute; z-index: 2; right: 22px; bottom: 22px; left: 22px; }
.card-content h3 { margin-bottom: 14px; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.025em; text-shadow: 0 2px 18px #000; }
.card-content .button { min-height: 42px; padding: 0 18px; font-size: .88rem; }

.site-footer { padding: 52px 0; border-top: 1px solid var(--line); background: #08050d; }
.footer-grid { display: grid; grid-template-columns: .8fr 2fr; gap: 54px; }
.age-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 172, 245, .28);
  border-radius: 50%;
  color: #e7d8ff;
  background: rgba(127, 77, 195, .09);
  font-size: 1.35rem;
  font-weight: 850;
}
.footer-copy h2 { margin-bottom: 12px; font-size: 1.1rem; letter-spacing: -.01em; }
.footer-copy p { max-width: 850px; margin-bottom: 12px; color: #a99eb9; font-size: .84rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: #cbb8e7; font-size: .82rem; }
.footer-links a:hover { color: #fff; }

.game-page { min-height: calc(100vh - 72px); padding: 24px 0 40px; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.game-toolbar h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: -.04em; }
.back-link { color: var(--muted); font-size: .9rem; font-weight: 750; text-decoration: none; }
.back-link:hover { color: #fff; }
.game-frame {
  width: 100%;
  height: calc(100vh - 175px);
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}
.legal-page { width: min(calc(100% - 32px), 800px); min-height: 60vh; margin: 0 auto; padding: 88px 0; }
.legal-page h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); }
.legal-page p, .legal-page li { color: var(--muted); }
.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 880px) {
  .hero { min-height: 540px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 440px; }
  .section-heading, .footer-grid { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-shell { width: min(calc(100% - 24px), var(--max)); }
  .header-inner { min-height: 64px; }
  .brand { font-size: .94rem; }
  .brand img { width: 34px; height: 34px; }
  .hero-content { padding: 110px 0 70px; }
  .hero { min-height: 520px; }
  .games { padding: 62px 0 76px; }
  .game-card { min-height: 300px; }
  .game-toolbar { align-items: flex-start; flex-direction: column-reverse; gap: 8px; }
  .game-frame { height: calc(100vh - 180px); min-height: 510px; border-radius: 14px; }
}
