/*
Theme Name: 1X Play
Theme URI: https://1xplay.it.com/
Author: 1X Play
Description: A bright, modern social games theme for 1X Play.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: one-x-play
*/

:root {
  --ink: #10204a;
  --muted: #617094;
  --blue: #1558d6;
  --blue-dark: #0a327e;
  --yellow: #ffd84a;
  --cream: #fffdf4;
  --white: #ffffff;
  --line: #dce6fa;
  --shadow: 0 22px 60px rgba(20, 65, 145, .14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 230, 250, .85);
  background: rgba(255, 253, 244, .88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.25rem; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; color: var(--white); background: linear-gradient(145deg, #2586ff, #08368f); box-shadow: 0 8px 20px rgba(21, 88, 214, .25); }
.brand-dot { color: #e7ad00; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: .92rem; font-weight: 750; }
.main-nav a { text-decoration: none; }
.age-pill { padding: 5px 10px; border: 1px solid #e6c540; border-radius: 999px; background: #fff6be; color: #775700; }

.hero { padding: 42px 0 26px; }
.hero-card {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 38px;
  background: #15459d;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-card::before {
  position: absolute;
  z-index: -2;
  inset: -20px;
  background: linear-gradient(90deg, rgba(5, 37, 98, .92), rgba(10, 70, 161, .45), rgba(9, 58, 139, .2)), var(--hero-image) center / cover no-repeat;
  content: "";
  filter: blur(5px);
  transform: scale(1.04);
}
.hero-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 25, 73, .52)), radial-gradient(circle at 82% 20%, rgba(255, 216, 74, .38), transparent 26%);
  content: "";
}
.hero-content { width: min(650px, 100%); padding: 92px 72px; color: var(--white); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 34px; height: 3px; border-radius: 2px; background: var(--yellow); content: ""; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 620px; font-size: clamp(3.15rem, 7vw, 6.2rem); }
.hero-copy { max-width: 535px; margin: 22px 0 30px; color: #e7efff; font-size: 1.08rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 999px; color: #10204a; background: var(--yellow); box-shadow: 0 12px 28px rgba(255, 216, 74, .28); font-weight: 900; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 216, 74, .38); }

.games-section { padding: 70px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(2.25rem, 4vw, 3.7rem); }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card { position: relative; min-height: 400px; overflow: hidden; border-radius: var(--radius); background: var(--blue-dark); box-shadow: var(--shadow); }
.game-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 24, 66, .88)); content: ""; }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card:hover img { transform: scale(1.035); }
.game-card-content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px; color: var(--white); }
.game-card h3 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
.game-card .button { flex: 0 0 auto; }

.game-view { padding: 34px 0 70px; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.game-toolbar h1 { font-size: clamp(2rem, 5vw, 4rem); }
.back-link { color: var(--blue); font-weight: 850; text-decoration: none; }
.game-frame-wrap { overflow: hidden; min-height: 72vh; border: 7px solid var(--white); border-radius: 26px; background: #071433; box-shadow: var(--shadow); }
.game-frame { display: block; width: 100%; min-height: 72vh; border: 0; }

.content-page { width: min(820px, calc(100% - 32px)); margin: 60px auto 90px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.content-page h1 { margin-bottom: 26px; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.content-page h2 { margin-top: 34px; font-size: 1.55rem; }
.content-page p, .content-page li { color: #425174; }

.site-footer { padding: 58px 0 34px; border-top: 1px solid var(--line); background: #f1f6ff; }
.footer-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; }
.footer-title { margin-bottom: 12px; font-size: 1.3rem; font-weight: 900; }
.footer-copy { color: var(--muted); font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; font-size: .9rem; font-weight: 750; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

@media (max-width: 780px) {
  .main-nav a:not(.age-pill) { display: none; }
  .hero-card { min-height: 500px; }
  .hero-content { padding: 70px 28px; }
  .section-heading, .game-toolbar, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .game-grid, .footer-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 320px; }
  .game-card-content { align-items: flex-start; flex-direction: column; }
  .content-page { padding: 28px 22px; }
}
