/* ─── CSS Custom Properties ────────────────────────────────────
   Default: red accent (games / main site).
   app.php overrides these inline for utility pages (teal).
   ──────────────────────────────────────────────────────────── */
:root {
  --accent:           #e63329;
  --accent-bg:        rgba(230, 51, 41, 0.12);
  --accent-border:    rgba(230, 51, 41, 0.30);
  --accent-selection: rgba(230, 51, 41, 0.28);
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ─── Base ─────────────────────────────────────────────────── */
body {
  background: #615959;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #e8e8e8;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-selection); }

::-webkit-scrollbar       { width: 5px; background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }

/* ─── Patterns & Effects ────────────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, #252525 1px, transparent 1px);
  background-size: 28px 28px;
}

.text-glow-red {
  text-shadow:
    0 0 30px  rgba(230, 51, 41, 0.60),
    0 0 80px  rgba(230, 51, 41, 0.25),
    0 0 150px rgba(230, 51, 41, 0.10);
}

.rocket-glow {
  filter:
    drop-shadow(0 0 18px rgba(230, 51, 41, 0.70))
    drop-shadow(0 0 55px rgba(230, 51, 41, 0.25));
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav-frost {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(13, 13, 13, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #2a2a2a 30%, #2a2a2a 70%, transparent 100%);
}

/* ─── Typography helpers ────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ─── Price badges ──────────────────────────────────────────── */
.price-red {
  background: rgba(230, 51, 41, 0.12);
  border: 1px solid rgba(230, 51, 41, 0.28);
  color: #e63329;
}

/* Free game badge */
.price-green {
  background: rgba(0, 200, 160, 0.10);
  border: 1px solid rgba(0, 200, 160, 0.28);
  color: #00c8a0;
}

/* Dynamic accent badge — used on app.php */
.price-pill {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

/* ─── Genre tag ─────────────────────────────────────────────── */
.tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #aaa;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Cards — index.php ─────────────────────────────────────── */
.game-card {
  border: 1px solid #5b3b3b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.game-card:hover {
  border-color: rgba(230, 51, 41, 0.45);
  box-shadow: 0 0 0 1px rgba(230, 51, 41, 0.15), 0 24px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

/* ─── Screenshot scrollers ──────────────────────────────────── */
.screens-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.screens-scroll::-webkit-scrollbar { display: none; }
.screens-scroll img {
  scroll-snap-align: start;
  flex-shrink: 0;
  height: 180px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll img {
  scroll-snap-align: start;
  flex-shrink: 0;
  height: 340px;
  width: auto;
  border-radius: 16px;
  border: 1px solid #222;
  object-fit: cover;
  object-position: top;
}

/* ─── App detail page — app.php ─────────────────────────────── */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid #1e1e1e;
  font-size: 0.875rem;
}
.meta-row:last-child { border-bottom: none; }
.meta-label { color: #999; font-weight: 500; }
.meta-value { color: #ddd; text-align: right; max-width: 60%; }

.step-card {
  border: 1px solid #1e1e1e;
  background: #141414;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* ─── Studio page — studio.php ──────────────────────────────── */
.stat-card {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.stat-card:hover {
  border-color: rgba(230, 51, 41, 0.30);
}

.principle-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: #e63329;
  opacity: 0.15;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.cat-card {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cat-card:hover {
  border-color: rgba(230, 51, 41, 0.25);
  transform: translateY(-2px);
}
