/*
Theme Name: WinJoy Club
Theme URI: https://winjoyclub.it.com/
Author: WinJoy Club
Description: A modern social games theme for WinJoy Club.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: winjoyclub
*/

:root {
  --bg: #07120b;
  --panel: rgba(12, 34, 19, 0.88);
  --panel-strong: #102819;
  --text: #f6ffe7;
  --muted: #c7d9bb;
  --lime: #9dfc28;
  --green: #19a84a;
  --yellow: #ffd84d;
  --amber: #ffb229;
  --line: rgba(223, 255, 151, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(157, 252, 40, 0.22), transparent 32rem),
    linear-gradient(145deg, #07120b 0%, #0b2112 46%, #172706 100%);
}

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

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

.site-shell {
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 18, 9, 0.78);
  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: 12px;
  font-weight: 900;
  font-size: 1.05rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(157, 252, 40, 0.32);
}

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

.nav-links a:hover {
  color: var(--yellow);
}

.age-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 216, 77, 0.42);
  border-radius: 999px;
  color: var(--yellow);
  font-weight: 900;
  background: rgba(255, 216, 77, 0.09);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 128px 0 64px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -18px;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: blur(7px) saturate(1.08);
  transform: scale(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 18, 8, 0.92), rgba(4, 18, 8, 0.58) 48%, rgba(4, 18, 8, 0.24)),
    linear-gradient(0deg, var(--bg), transparent 38%);
}

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

.hero-content {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(157, 252, 40, 0.4);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(13, 35, 18, 0.58);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.38);
}

.hero-copy {
  max-width: 620px;
  color: #e5f6d9;
  font-size: 1.16rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #122006;
  background: linear-gradient(135deg, var(--yellow), var(--lime));
  box-shadow: 0 16px 34px rgba(157, 252, 40, 0.22);
  font-weight: 950;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(157, 252, 40, 0.3);
}

.button.secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.games-section,
.legal-section {
  padding: 72px 0;
}

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

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

.section-heading p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.game-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.game-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 240ms ease, filter 240ms ease;
}

.game-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.1) brightness(1.02);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(2, 10, 4, 0.74)),
    linear-gradient(45deg, rgba(157, 252, 40, 0.18), transparent 55%);
}

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

.game-overlay h3 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.game-overlay .button {
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
}

.info-band {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 34, 17, 0.55);
}

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

.info-item {
  padding: 22px;
  border-left: 3px solid var(--lime);
  background: rgba(255, 255, 255, 0.045);
}

.info-item h3 {
  margin-bottom: 8px;
}

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

.game-page {
  padding: 118px 0 44px;
}

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

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

.game-frame-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #020603;
  box-shadow: var(--shadow);
}

.game-frame {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  min-height: 560px;
  border: 0;
  background: #020603;
}

.legal-card {
  max-width: 900px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

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

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: rgba(3, 14, 7, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 34px;
}

.footer-title {
  color: var(--yellow);
  font-weight: 950;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.7;
}

.footer-links,
.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a,
.support-links a {
  color: #ecffd9;
  font-weight: 800;
}

.footer-links a:hover,
.support-links a:hover {
  color: var(--yellow);
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    width: min(100% - 24px, 1180px);
    min-height: 64px;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .hero-actions,
  .game-top {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .game-overlay {
    align-items: stretch;
    flex-direction: column;
  }

  .game-overlay .button {
    width: 100%;
  }

  .game-frame {
    min-height: 68vh;
  }

  .legal-card {
    padding: 24px;
  }
}
