/* ════════════════════════════════════════════
   PLAYVAULT – SHARED STYLESHEET  /assets/style.css
   ════════════════════════════════════════════ */
:root {
  --bg: #080b14;
  --surface: #0f1623;
  --card: #141d2e;
  --border: #1e2d45;
  --accent: #00e5ff;
  --accent2: #ff4d6d;
  --accent3: #b45cff;
  --text: #e8edf5;
  --muted: #6b7fa3;
  --glow: 0 0 30px rgba(0,229,255,0.15);
  --radius: 12px;
  --max-w: 1400px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,11,20,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; height: 64px;
}
.logo {
  font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.875rem;
  font-weight: 500; padding: 0.4rem 0.9rem; border-radius: 6px; transition: all 0.2s;
}
.main-nav a:hover { color: var(--text); background: var(--card); }

/* ── LAYOUTS ── */
.page-layout {
  max-width: var(--max-w); margin: 0 auto; padding: 2rem;
  display: grid; grid-template-columns: 1fr 320px; gap: 2rem;
}
.page-content { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 2rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); }

/* ── GAME GRID ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.game-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: all 0.25s; position: relative;
  display: block;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), var(--glow);
}
.game-thumb {
  aspect-ratio: 4/3; width: 100%;
  background: linear-gradient(135deg, var(--surface), var(--border));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.game-thumb::after {
  content: 'PLAY';
  position: absolute; inset: 0;
  background: rgba(0,229,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: var(--accent); letter-spacing: 0.12em;
  opacity: 0; transition: opacity 0.2s;
}
.game-card:hover .game-thumb::after { opacity: 1; }
.game-info { padding: 0.7rem; }
.game-name { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.15rem; }
.game-meta-small { font-size: 0.72rem; color: var(--muted); }

/* ── BADGES ── */
.badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em;
  z-index: 1;
}
.badge-new  { background: var(--accent2); color: #fff; }
.badge-hot  { background: #ff8c00;        color: #fff; }
.badge-top  { background: var(--accent3); color: #fff; }

/* ── GAME PLAYER ── */
.game-wrapper {
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16/9;
  position: relative; margin-bottom: 1.25rem;
}
.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0f1e 0%, #1a2540 100%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1.25rem; cursor: pointer; transition: opacity 0.3s;
}
.game-overlay.hidden { opacity: 0; pointer-events: none; }
.game-emoji-big { font-size: 5rem; }
.play-btn {
  background: var(--accent); color: #000;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.1rem; padding: 1rem 3rem; border-radius: 10px;
  border: none; cursor: pointer; letter-spacing: 0.05em;
  box-shadow: 0 0 40px rgba(0,229,255,0.4); transition: all 0.2s;
}
.play-btn:hover { transform: scale(1.05); box-shadow: 0 0 60px rgba(0,229,255,0.6); }
.play-hint { color: var(--muted); font-size: 0.8rem; }
#gameFrame { width: 100%; height: 100%; border: none; display: none; }

/* ── GAME ACTIONS ── */
.game-actions { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.action-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem; font-weight: 500;
  padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer;
  transition: all 0.2s; text-decoration: none; font-family: inherit;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.liked { border-color: var(--accent2); color: var(--accent2); }

/* ── INFO CARD ── */
.info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
}
.info-card h1 {
  font-family: 'Syne', sans-serif; font-size: 1.8rem;
  font-weight: 800; margin-bottom: 0.6rem;
}
.game-meta-row {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 0.85rem;
}
.cat-tag {
  background: rgba(0,229,255,0.1); color: var(--accent);
  border: 1px solid rgba(0,229,255,0.2); font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 100px; text-decoration: none;
}
.cat-tag:hover { background: rgba(0,229,255,0.2); }
.stars { color: #ffd700; letter-spacing: 0.1em; }
.rating-num { font-weight: 600; }
.rating-count { color: var(--muted); font-size: 0.8rem; }
.game-desc { color: var(--muted); line-height: 1.8; font-size: 0.95rem; margin-bottom: 1rem; }
.game-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.75rem; padding: 0.2rem 0.6rem;
  border-radius: 4px; text-decoration: none; transition: all 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── HOW TO PLAY ── */
.how-to-play {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
}
.how-to-play h2 {
  font-family: 'Syne', sans-serif; font-size: 1.1rem;
  font-weight: 700; margin-bottom: 0.75rem;
}
.how-to-play p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.5rem; }

/* ── SEO CONTENT ── */
.seo-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.25rem;
}
.seo-content h2 {
  font-family: 'Syne', sans-serif; font-size: 1.15rem;
  font-weight: 700; margin-bottom: 0.75rem;
}
.seo-content h3 {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  margin: 1.25rem 0 0.5rem; color: var(--accent);
}
.seo-content p { color: var(--muted); line-height: 1.8; margin-bottom: 0.75rem; font-size: 0.9rem; }
.seo-content a { color: var(--accent); text-decoration: none; }
.seo-content dt { font-weight: 600; font-size: 0.9rem; margin-top: 0.75rem; }
.seo-content dd { color: var(--muted); font-size: 0.88rem; padding-left: 1rem; line-height: 1.7; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.sidebar-widget h3 {
  font-family: 'Syne', sans-serif; font-size: 1rem;
  font-weight: 700; margin-bottom: 1rem;
}
.related-list { display: flex; flex-direction: column; gap: 0.75rem; }
.related-card {
  display: flex; gap: 0.75rem; text-decoration: none;
  color: var(--text); align-items: center; transition: all 0.2s;
}
.related-card:hover { color: var(--accent); }
.related-thumb {
  width: 56px; height: 42px; background: var(--surface);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.related-name { font-size: 0.85rem; font-weight: 500; }
.related-meta { font-size: 0.72rem; color: var(--muted); }
.see-all-link {
  display: block; text-align: center; color: var(--accent);
  font-size: 0.85rem; margin-top: 1rem; text-decoration: none;
  padding: 0.5rem; border-top: 1px solid var(--border);
}
.see-all-link:hover { color: var(--text); }

/* ── CATEGORY HERO ── */
.cat-hero {
  background: linear-gradient(135deg, var(--surface), var(--card));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 2.5rem 2rem; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.cat-icon-xl { font-size: 4.5rem; flex-shrink: 0; }
.cat-hero h1 { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; }
.cat-hero p { color: var(--muted); margin-top: 0.5rem; line-height: 1.7; }
.cat-stats-row { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.cat-stats-row span {
  background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.15);
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 100px;
}

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem; font-weight: 500;
  padding: 0.4rem 1rem; border-radius: 100px;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(0,229,255,0.1); border-color: var(--accent); color: var(--accent);
}

/* ── PAGINATION ── */
.pagination {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-top: 3rem; flex-wrap: wrap;
}
.page-btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); padding: 0.5rem 0.9rem;
  border-radius: 6px; text-decoration: none; font-size: 0.85rem; transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--accent); color: var(--accent); background: rgba(0,229,255,0.08);
}

/* ── SEO BLOCK ── */
.seo-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; margin-top: 2.5rem;
}
.seo-block h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; margin-bottom: 0.75rem; }
.seo-block p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 0.5rem; }
.seo-block a { color: var(--accent); text-decoration: none; }

/* ── HUB INTRO ── */
.hub-intro, .tag-intro {
  color: var(--muted); font-size: 1rem; line-height: 1.7;
  margin-bottom: 1.75rem; max-width: 700px;
}

/* ── NO GAMES ── */
.no-games { color: var(--muted); padding: 2rem; text-align: center; grid-column: 1/-1; }

/* ── FOOTER ── */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border); margin-top: 5rem;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; margin-top: 0.75rem; max-width: 300px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.9rem; margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 0.85rem; margin-bottom: 0.6rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center; color: var(--muted); font-size: 0.8rem;
  max-width: var(--max-w); margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .cat-hero { flex-direction: column; text-align: center; }
  .cat-stats-row { justify-content: center; }
  .main-nav { display: none; }
  h1 { font-size: 1.75rem !important; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
  .page-content, .page-layout { padding: 1rem; }
}
