/**
 * Game Templates Gallery — game-specific overlays on top of templates.css.
 * Tokens (--bg, --surface, --accent, --accent2) are inherited from templates.css;
 * only NEW game-only visuals are declared here.
 */

/* ── Hero — full-bleed dark gradient with accent halo ───────────────── */
.gt-hero {
  position: relative;
  padding: 56px 32px 40px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 153, 204,0.06), transparent 50%),
    linear-gradient(180deg, rgba(0, 212, 255,0.04), transparent 60%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.gt-hero::before {
  content: '';
  position: absolute;
  top: -180px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0, 212, 255,0.12), transparent 60%);
  pointer-events: none;
}
.gt-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0, 153, 204,0.14), transparent 60%);
  pointer-events: none;
}
.gt-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 60%, var(--accent2) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gt-hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 540px;
  font-weight: 500;
  line-height: 1.5;
}
.gt-hero-badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.gt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.gt-hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ── Glass-morphism card (extends .tpl-card visuals) ────────────────── */
.gt-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(0, 212, 255,0.25);
  border-color: rgba(0, 212, 255,0.3);
}

/* ── Genre chip (top-left of card) ─────────────────────────────────── */
.gt-genre-chip {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8,8,16,0.55);
  backdrop-filter: blur(6px);
  color: var(--text);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── Complexity indicator (3 dots) ─────────────────────────────────── */
.gt-complexity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.gt-complexity-label {
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  margin-right: 4px;
}
.gt-complexity-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: inline-block;
  transition: background .2s ease, box-shadow .2s ease;
}
.gt-complexity-dot.filled {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.gt-complexity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 14px;
  gap: 8px;
}
.gt-complexity-row .gt-complexity-label { color: var(--muted); }

/* ── Device-frame preview inside .tpl-thumb ────────────────────────── */
.gt-card-thumb-frame {
  position: relative;
  width: 64%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    0 8px 24px rgba(0,0,0,0.4),
    0 0 0 8px rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Notch */
.gt-card-thumb-frame::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}
/* Home indicator */
.gt-card-thumb-frame::after {
  content: '';
  position: absolute;
  bottom: 7px; left: 50%;
  transform: translateX(-50%);
  width: 35%; height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
}
.gt-card-glyph {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  z-index: 1;
}

/* ── Wider drawer for device-frame preview at top ──────────────────── */
.gt-drawer {
  width: 480px;
}
.gt-drawer-preview {
  display: flex;
  justify-content: center;
  margin: 20px 0 4px;
}

/* ── Light theme overrides (mirror templates.css:27-35 palette swap) ─ */
[data-theme="light"] .gt-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(16, 32, 46,0.08);
}
[data-theme="light"] .gt-card:hover {
  box-shadow: 0 20px 50px rgba(16, 32, 46,0.12), 0 0 0 1px rgba(5,150,105,0.25);
}
[data-theme="light"] .gt-genre-chip {
  background: rgba(255,255,255,0.8);
  color: #10202e;
}
[data-theme="light"] .gt-hero::before,
[data-theme="light"] .gt-hero::after {
  opacity: 0.6;
}

/* ── Responsive — keep hero readable on narrow screens ─────────────── */
@media (max-width: 768px) {
  .gt-hero { padding: 36px 18px 28px; }
  .gt-hero-title { font-size: 1.6rem; }
  .gt-card-thumb-frame { width: 56%; }
  .gt-drawer { width: 100vw; }
}
