/*
Theme Name: WinPlayZone
Theme URI: https://winplayzone.it.com/
Author: WinPlayZone
Author URI: https://winplayzone.it.com/
Description: Bright entertainment theme for WinPlayZone social games.
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: winplayzone
*/

:root {
  --wpz-bg: #090b20;
  --wpz-bg-soft: #10163a;
  --wpz-panel: rgba(17, 24, 61, 0.78);
  --wpz-text: #ffffff;
  --wpz-muted: #bfc7ea;
  --wpz-cyan: #18d7ff;
  --wpz-lime: #a8ff3e;
  --wpz-pink: #ff4fba;
  --wpz-gold: #ffd45f;
  --wpz-line: rgba(255, 255, 255, 0.14);
  --wpz-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--wpz-text);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 79, 186, 0.24), transparent 31rem),
    radial-gradient(circle at 82% 12%, rgba(24, 215, 255, 0.2), transparent 29rem),
    linear-gradient(180deg, #090b20 0%, #10163a 48%, #070915 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-shell {
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 30, 0.74);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  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: 12px;
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(24, 215, 255, 0.38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 750;
}

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

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

.hero-media {
  position: absolute;
  inset: -18px;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(5px) saturate(1.1);
  transform: scale(1.025);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 21, 0.9) 0%, rgba(7, 9, 21, 0.58) 42%, rgba(7, 9, 21, 0.25) 100%),
    linear-gradient(180deg, rgba(7, 9, 21, 0.4) 0%, rgba(7, 9, 21, 0.84) 100%);
}

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

.hero-copy {
  width: min(650px, 100%);
}

.age-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 850;
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  color: #071024;
  background: linear-gradient(135deg, var(--wpz-gold), var(--wpz-lime));
  box-shadow: 0 16px 34px rgba(168, 255, 62, 0.22);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(255, 212, 95, 0.3);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.games-section {
  padding: 70px 0 86px;
}

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

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

.section-heading p {
  width: min(440px, 100%);
  margin: 0;
  color: var(--wpz-muted);
  line-height: 1.7;
}

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

.game-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111839;
  box-shadow: var(--wpz-shadow);
  isolation: isolate;
}

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

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

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 19, 0.12) 0%, rgba(5, 7, 19, 0.28) 44%, rgba(5, 7, 19, 0.86) 100%),
    radial-gradient(circle at 50% 88%, rgba(255, 212, 95, 0.28), transparent 20rem);
}

.game-card-content {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.game-card h3 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

.game-card .button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 18px;
  white-space: nowrap;
}

.info-band {
  padding: 54px 0;
  background:
    linear-gradient(90deg, rgba(24, 215, 255, 0.12), rgba(255, 79, 186, 0.1)),
    rgba(255, 255, 255, 0.03);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

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

.info-item {
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.info-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.info-item span {
  color: var(--wpz-muted);
  line-height: 1.65;
}

.game-page {
  padding: 108px 0 64px;
  min-height: 100vh;
}

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

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

.iframe-shell {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #050714;
  box-shadow: var(--wpz-shadow);
}

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

.text-page {
  padding: 128px 0 70px;
}

.text-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.text-page p {
  max-width: 860px;
  color: var(--wpz-muted);
  line-height: 1.8;
}

.site-footer {
  padding: 54px 0 42px;
  background: rgba(3, 5, 15, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 34px;
}

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

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

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

.footer-links a:hover {
  color: var(--wpz-gold);
}

.copyright {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

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

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

  .hero {
    min-height: 86vh;
    padding-top: 116px;
  }

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

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

  .game-card,
  .game-card img {
    min-height: 340px;
  }
}

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

  .brand {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

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

  .hero h1 {
    max-width: 8ch;
  }

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

  .game-frame {
    height: 72vh;
    min-height: 520px;
  }
}
