/*
Theme Name: Fun Spin World
Theme URI: https://funspinworld.it.com/
Author: Fun Spin World
Description: A modern, responsive social games theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: funspinworld
*/

:root {
  --ink: #153229;
  --muted: #527066;
  --paper: #fbfff5;
  --surface: #ffffff;
  --leaf: #1f8b55;
  --leaf-dark: #11633c;
  --lime: #dff26b;
  --sun: #ffd95a;
  --line: #dce9d7;
  --shadow: 0 20px 50px rgba(26, 80, 54, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 217, 90, .18), transparent 28rem),
    radial-gradient(circle at 8% 35%, rgba(130, 208, 137, .14), transparent 30rem),
    var(--paper);
  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(1180px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 233, 215, .8);
  background: rgba(251, 255, 245, .9);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 850; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 7px 16px rgba(31, 139, 85, .24); }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--leaf-dark); }
.age-badge { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--leaf-dark); background: var(--surface); font-weight: 900; }

.hero { padding: 42px 0 34px; }
.hero-frame {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 34px;
  background: #174b36;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: -18px;
  z-index: -2;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  filter: blur(5px) saturate(.82);
  transform: scale(1.02);
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 54, 36, .92) 0%, rgba(10, 54, 36, .68) 48%, rgba(10, 54, 36, .24) 100%);
}
.hero-copy { max-width: 660px; padding: 68px; color: #fff; }
.eyebrow { margin: 0 0 14px; color: var(--lime); font-size: 13px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(48px, 7vw, 82px); line-height: .96; letter-spacing: -.065em; }
.hero-copy p:not(.eyebrow) { max-width: 560px; margin-bottom: 28px; color: rgba(255, 255, 255, .82); font-size: 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  color: #173224;
  background: var(--sun);
  box-shadow: 0 12px 26px rgba(255, 217, 90, .25);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #ffe88d; }
.button-secondary { color: #fff; background: var(--leaf); box-shadow: none; }

.games-section { padding: 62px 0 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 6px; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -.05em; }
.section-heading p { margin-bottom: 0; color: var(--muted); }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card {
  position: relative;
  min-height: 335px;
  overflow: hidden;
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card:hover img { transform: scale(1.035); }
.game-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 45, 30, .9), rgba(9, 45, 30, 0) 58%); pointer-events: none; }
.game-card-content { position: absolute; inset: auto 22px 22px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.game-card h3 { margin: 0; color: #fff; font-size: 24px; line-height: 1.1; letter-spacing: -.035em; text-shadow: 0 2px 15px rgba(0,0,0,.35); }

.info-strip { padding: 0 0 82px; }
.info-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, .72); }
.info-panel h2 { margin-bottom: 8px; font-size: 30px; letter-spacing: -.04em; }
.info-panel p { margin-bottom: 0; color: var(--muted); }

.site-footer { padding: 54px 0 30px; color: #dbece2; background: #123c2a; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.footer-title { color: #fff; font-size: 21px; font-weight: 850; }
.site-footer p { max-width: 760px; color: #bcd2c5; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-content: start; justify-content: flex-end; }
.footer-links a { color: #e9f5ed; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--sun); }
.copyright { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8fb09d; font-size: 12px; }

.game-view { min-height: calc(100vh - 76px); padding: 24px 0 38px; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.game-toolbar h1 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1; }
.game-embed { overflow: hidden; height: min(78vh, 830px); min-height: 590px; border: 1px solid var(--line); border-radius: 24px; background: #102b20; box-shadow: var(--shadow); }
.game-embed iframe { width: 100%; height: 100%; border: 0; }
.legal-page { min-height: 62vh; padding: 70px 0 90px; }
.legal-card { max-width: 840px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(38px, 6vw, 64px); }
.legal-card h2 { margin-top: 32px; margin-bottom: 8px; }
.legal-card p, .legal-card li { color: var(--muted); }

@media (max-width: 800px) {
  .site-shell { width: min(100% - 24px, 1180px); }
  .nav-links a { display: none; }
  .hero { padding-top: 18px; }
  .hero-frame { min-height: 510px; border-radius: 24px; }
  .hero-copy { padding: 34px 26px; }
  .games-grid, .info-panel, .footer-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 250px; }
  .footer-links { justify-content: flex-start; }
  .game-view { padding-top: 16px; }
  .game-toolbar { align-items: flex-start; flex-direction: column; }
  .game-embed { min-height: 70vh; border-radius: 16px; }
}

