/* ============================================================
   awooawoo.com — Shared Design System  v1.0
   Primary gradient: #4FACFE → #00F2FE (electric blue)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --p1: #4FACFE;
  --p2: #00F2FE;
  --pd: #1a96f0;
  --grad: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);

  --bg:     #f0f6ff;
  --surf:   #ffffff;
  --surf2:  #e8f1fd;
  --border: #d4e8fc;
  --t1: #1a1a2e;
  --t2: #4a5568;
  --t3: #8a9db5;

  --sh-sm: 0 2px 8px rgba(79,172,254,.08);
  --sh:    0 4px 20px rgba(79,172,254,.14);
  --sh-lg: 0 8px 36px rgba(79,172,254,.28);

  --r-xl: 24px; --r-lg: 16px; --r: 12px; --r-sm: 8px; --r-xs: 4px;
  --ease: .2s ease;
  --spring: .25s cubic-bezier(.34,1.56,.64,1);
  --max-w: 1200px;
  --hh: 62px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --bg:     #0d1117;
  --surf:   #161c2e;
  --surf2:  #1e293b;
  --border: #2a3f5f;
  --t1: #e2e8f0; --t2: #94a3b8; --t3: #64748b;
  --sh-sm: 0 2px 8px rgba(0,0,0,.3);
  --sh:    0 4px 20px rgba(0,0,0,.4);
  --sh-lg: 0 8px 36px rgba(79,172,254,.2);
}

/* ── Base ──────────────────────────────────────────────────── */
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--t1);
  line-height: 1.6; min-height: 100dvh;
  display: flex; flex-direction: column;
  transition: background var(--ease), color var(--ease);
}
a { color: var(--p1); text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--hh);
  background: var(--surf);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  display: flex; align-items: center;
  padding: 0 20px; gap: 12px;
}
.site-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.2rem; font-weight: 800;
  color: var(--t1); text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--grad); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.logo-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-nav {
  display: flex; gap: 2px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  padding: 6px 14px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--t2); white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.header-nav a:hover, .header-nav a.active {
  background: var(--surf2); color: var(--p1);
}
.hdr-spacer { flex: 1; }
.theme-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--surf2); color: var(--t2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  transition: background var(--ease), transform var(--ease);
}
.theme-btn:hover { background: var(--border); transform: scale(1.08); }

/* ── Main wrapper ──────────────────────────────────────────── */
main { flex: 1; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px 60px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { padding: 40px 0 28px; text-align: center; }
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 10px; letter-spacing: -.5px;
}
.hero h1 .g {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1rem; color: var(--t2); max-width: 440px; margin: 0 auto; }

/* ── Filter tabs ───────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tab {
  padding: 7px 18px; border-radius: 100px;
  font-size: .875rem; font-weight: 600;
  background: var(--surf); color: var(--t2);
  border: 1px solid var(--border); cursor: pointer;
  transition: all var(--ease);
}
.filter-tab:hover { border-color: var(--p1); color: var(--p1); }
.filter-tab.active {
  background: var(--grad); border-color: transparent;
  color: #fff; box-shadow: 0 4px 12px rgba(79,172,254,.3);
}

/* ── Games Grid ────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 18px;
}

/* ── Game Card ─────────────────────────────────────────────── */
.game-card {
  display: block; background: var(--surf);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
  color: var(--t1); text-decoration: none;
  transition: transform var(--spring), box-shadow var(--ease);
}
.game-card:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--sh-lg); }
.card-thumb {
  width: 100%; aspect-ratio: 4/3;
  background: var(--thumb-c, #4FACFE);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 55%);
}
.thumb-emoji { font-size: 3rem; position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.thumb-label {
  font-size: 1.85rem; font-weight: 900; color: rgba(255,255,255,.95);
  text-shadow: 0 2px 8px rgba(0,0,0,.22); position: relative; z-index: 1;
  letter-spacing: -1px;
}
.card-info { padding: 12px 14px 14px; }
.card-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; }
.card-tag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; padding: 3px 8px; border-radius: 100px;
  background: var(--surf2); color: var(--t3);
}
.play-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .7rem;
  box-shadow: 0 2px 8px rgba(79,172,254,.4);
  transition: transform var(--spring), box-shadow var(--ease);
}
.game-card:hover .play-btn { transform: scale(1.15); box-shadow: 0 4px 14px rgba(79,172,254,.5); }

/* ── Section title ─────────────────────────────────────────── */
.sec-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; }
.sec-title span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Ad Slot ───────────────────────────────────────────────── */
/* Hidden until AdSense is connected — remove 'display:none' to activate */
.ad-slot { display: none; }

/* Styles below apply once ads are active (remove display:none above) */
/*
.ad-slot {
  width: 100%; background: var(--surf2);
  border: 1.5px dashed var(--border); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3); font-size: .72rem; letter-spacing: .5px; text-transform: uppercase;
}
.ad-banner { height: 90px; margin: 20px 0; }
.ad-rect { min-height: 250px; margin: 20px 0; }
*/

/* ── Game page ─────────────────────────────────────────────── */
.gph { padding: 20px 0 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gph h1 { font-size: 1.6rem; font-weight: 800; }
.game-badge {
  padding: 4px 12px; border-radius: 100px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: var(--surf2); color: var(--p1); border: 1px solid var(--border);
}
.canvas-wrap {
  background: var(--surf); border-radius: var(--r-xl);
  border: 1px solid var(--border); box-shadow: var(--sh);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px; padding: 20px;
}
.game-area {
  background: var(--surf); border-radius: var(--r-xl);
  border: 1px solid var(--border); box-shadow: var(--sh);
  overflow: hidden; min-height: 520px; position: relative;
}

/* ── Game shell / coming-soon ──────────────────────────────── */
.shell-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 440px; gap: 16px; padding: 32px; text-align: center;
}
.shell-icon { font-size: 4.5rem; line-height: 1; }
.shell-title { font-size: 1.5rem; font-weight: 800; }
.shell-desc { color: var(--t2); max-width: 320px; line-height: 1.65; }
.shell-btn {
  margin-top: 4px;
  padding: 11px 28px; background: var(--grad);
  color: white; border-radius: var(--r-sm);
  font-weight: 700; font-size: .95rem;
  display: inline-block;
  transition: opacity var(--ease), transform var(--ease);
  box-shadow: 0 4px 16px rgba(79,172,254,.35);
}
.shell-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── SEO content ───────────────────────────────────────────── */
.seo { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.seo h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.seo p { color: var(--t2); margin-bottom: 12px; line-height: 1.7; }
.seo ul { color: var(--t2); padding-left: 20px; margin-bottom: 12px; }
.seo li { margin-bottom: 5px; line-height: 1.6; }
.faq dt { font-weight: 700; margin-top: 18px; margin-bottom: 4px; }
.faq dd { color: var(--t2); line-height: 1.7; padding-left: 12px; }

/* ── More games ────────────────────────────────────────────── */
.more-games { margin-top: 48px; }
.more-games .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--surf); border-top: 1px solid var(--border);
  padding: 28px 20px; margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
}
.footer-copy { font-size: .875rem; color: var(--t3); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: .875rem; color: var(--t3); transition: color var(--ease); }
.footer-links a:hover { color: var(--p1); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  main { padding: 0 14px 48px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding: 24px 0 20px; }
  .thumb-label { font-size: 1.5rem !important; }
  .thumb-emoji { font-size: 2.5rem !important; }
  .site-header { padding: 0 14px; }
  .canvas-wrap { padding: 10px; min-height: 360px; }
}
@media (max-width: 360px) {
  .games-grid { gap: 8px; }
}
