/* ============================================
   TAG PAGES — Shared Layout
   Each tag HTML sets --tag-color, --tag-bg,
   --tag-border, --tag-glow via inline <style>.
   ============================================ */

:root {
  --cyan: #00ffff;
  --lime: #00ff00;
  --red: #ff4444;
  --gold: #ffcc00;
  --orange: #ff6600;
  --void: #000000;
  --dark: #0a0a0f;
  --panel: #1a1a1f;
  --text: #ffffff;
  --text-dim: #888899;
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Header ---------- */
header {
  background: rgba(10,10,15,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Exo 2", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--cyan);
  text-decoration: none;
  display: flex;
}

.logo img { width: 40px; height: 40px; border-radius: 8px; }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}

nav a:hover { color: var(--cyan); }

/* ---------- Tag Hero ---------- */
.tag-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
  position: relative;
}

.tag-hero::before {
  content: "";
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--tag-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--tag-color); }

.tag-badge {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 0.45rem 1.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid var(--tag-border);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tag-hero h1 {
  font-family: "Exo 2", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  color: var(--tag-color);
  line-height: 1.15;
}

.tag-hero .subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Games — Simple Thumbnails ---------- */
.games-section {
  padding: 1rem 0 2rem;
}

.games-flex {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.related-game {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid #2a2a2f;
  transition: all 0.2s ease;
  background: #000;
  text-decoration: none;
}

.related-game:hover {
  border-color: var(--tag-color, var(--cyan));
}

.related-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-game span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2rem 0.5rem 0.5rem;
  text-align: center;
}

/* ---------- SEO Content ---------- */
.tag-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 20px 3rem;
}

.tag-content h2 {
  font-family: "Exo 2", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--gold);
  position: relative;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tag-content h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 4px;
  background: var(--tag-color);
}

.tag-content h3 {
  font-family: "Exo 2", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: var(--tag-color);
}

.tag-content p {
  margin-bottom: 1.4rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.8;
}

.tag-content strong { color: var(--gold); font-weight: 600; }

.tag-content .highlight-box {
  background: rgba(0,255,255,0.04);
  border-left: 4px solid var(--tag-color);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.tag-content ul, .tag-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-dim);
}

.tag-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ---------- Other Categories ---------- */
.other-tags {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.other-tags h2 {
  font-family: "Exo 2", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.2rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tags-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
}

.tags-nav a {
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
  text-decoration: none;
  transition: all 0.2s;
}

.tags-nav a:hover {
  filter: brightness(1.3);
  transform: translateY(-1px);
}

.tags-nav .tn-arcade { background: rgba(0,255,255,0.08); color: #00e5e5; border-color: rgba(0,255,255,0.2); }
.tags-nav .tn-rhythm { background: rgba(255,140,0,0.08); color: #ff8c00; border-color: rgba(255,140,0,0.2); }
.tags-nav .tn-platformer { background: rgba(0,255,0,0.08); color: #00dd00; border-color: rgba(0,255,0,0.2); }
.tags-nav .tn-extreme { background: rgba(255,50,50,0.08); color: #ff4444; border-color: rgba(255,50,50,0.2); }
.tags-nav .tn-challenge { background: rgba(255,80,80,0.08); color: #ff5050; border-color: rgba(255,80,80,0.2); }
.tags-nav .tn-speed { background: rgba(255,80,80,0.08); color: #ff5050; border-color: rgba(255,80,80,0.2); }
.tags-nav .tn-adventure { background: rgba(160,100,255,0.08); color: #b080ff; border-color: rgba(160,100,255,0.2); }
.tags-nav .tn-ice { background: rgba(100,200,255,0.08); color: #64c8ff; border-color: rgba(100,200,255,0.2); }

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  border-top: 2px solid rgba(255,255,255,0.1);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-dim);
}

.footer-links { margin-bottom: 1.5rem; }

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .tag-hero h1 { font-size: 2rem; }
  .tag-hero .subtitle { font-size: 0.95rem; }
  .header-content { flex-direction: column; gap: 1rem; }
  nav a { margin: 0 0.5rem; }
  .tag-content h2 { font-size: 1.4rem; }
  .related-game { width: 120px; height: 120px; border-radius: 22px; }
  .related-game span { font-size: 0.7rem; padding: 1.5rem 0.4rem 0.4rem; }
  .footer-links a { margin: 0 0.5rem; font-size: 0.9rem; }
}
