/* Heav1 — games.css */

/* ── Grid ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  min-height: 120px;
}

/* ── Cards ── */
.game-card {
  background: var(--card-bg, rgba(10,10,28,0.8));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,245,255,0.35);
  box-shadow: 0 8px 24px rgba(0,245,255,0.1);
}
.game-card-cover {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
  background: rgba(255,255,255,0.04);
}
.game-card-cover-ph {
  width: 100%; aspect-ratio: 3/4; display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem;
  background: rgba(255,255,255,0.03);
}
.game-card-info { padding: 8px 10px 10px; }
.game-card-title {
  font-size: .76rem; font-weight: 600; color: #e2e8f5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px;
}
.game-card-plats { display: flex; flex-wrap: wrap; gap: 3px; }
.game-card-rating { font-size: .65rem; color: #facc15; margin-top: 4px; }

/* ── Tags de plataforma nos cards ── */
.gc-ptag {
  font-size: .58rem; padding: 1px 6px; border-radius: 8px; font-weight: 700;
}
.gc-ptag.Steam        { background:#1a1a2e; color:#b8c5e8; }
.gc-ptag.Epic         { background:#2d2d2d; color:#ddd; }
.gc-ptag.GOG          { background:#6240b5; color:#d4cafe; }
.gc-ptag.Amazon       { background:#ff9900; color:#111; }
.gc-ptag.Xbox         { background:#107c10; color:#c2f0c2; }
.gc-ptag.PlayStation  { background:#003087; color:#b3c8f5; }
.gc-ptag.Nintendo     { background:#e4000f; color:#ffe6e7; }
.gc-ptag.PC           { background:#0d1117; color:#58a6ff; border:1px solid rgba(88,166,255,0.3); }
.gc-ptag.Celular      { background:#0a1f0a; color:#a8e063; }
.gc-ptag.CDDVD        { background:#2d1b69; color:#c4b5fd; }
.gc-ptag.Cartucho     { background:#1a0a00; color:#f97316; }
.gc-ptag.Outros       { background:#555; color:#ddd; }

/* ── Badge duplicata ── */
.gc-dup-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(255,153,0,0.92); color: #111;
  font-size: .58rem; font-weight: 800; padding: 2px 6px; border-radius: 6px;
}

/* ── Filtros de plataforma com contador ── */
.games-filter-wrap { margin-bottom: 14px; }
.filter-pill .pill-count {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0 5px;
  font-size: .6rem;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 700;
}
.filter-pill.active .pill-count {
  background: rgba(0,0,0,0.2);
}

/* ── Paginação ── */
.games-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-bottom: 4px;
}
.page-btn {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,245,255,0.2);
  background: rgba(0,245,255,0.05);
  color: var(--text-muted, #7889a4);
  font-size: .78rem;
  cursor: pointer;
  font-family: var(--font-mono, monospace);
  transition: all .15s;
}
.page-btn:hover {
  border-color: rgba(0,245,255,0.5);
  color: #e2e8f5;
  background: rgba(0,245,255,0.1);
}
.page-btn.active {
  background: rgba(0,245,255,0.15);
  border-color: var(--neon-cyan, #00f5ff);
  color: var(--neon-cyan, #00f5ff);
  font-weight: 700;
}
.page-btn.prev-next {
  font-size: .9rem;
  color: var(--neon-cyan, #00f5ff);
  border-color: rgba(0,245,255,0.3);
}
.page-ellipsis {
  color: var(--text-muted, #7889a4);
  font-size: .78rem;
  padding: 0 2px;
  user-select: none;
}

/* ── Modal de detalhe ── */
.gd-cover {
  width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 10px; margin-bottom: 14px; display: block;
}
.gd-title { font-size: 1.05rem; font-weight: 700; color: var(--neon-cyan, #00f5ff); margin-bottom: 6px; }
.gd-meta  { font-size: .75rem; color: #7889a4; margin-bottom: 10px; }
.gd-desc  { font-size: .82rem; color: #c0cce0; line-height: 1.6; margin-bottom: 16px; }
.gd-plat-label { font-size: .68rem; letter-spacing: .08em; color: #7889a4; margin-bottom: 8px; font-family: monospace; }
.gd-plats { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-ptag  { font-size: .75rem; padding: 4px 14px; border-radius: 12px; font-weight: 600; }
.gd-ptag.Steam        { background:#1a1a2e; color:#b8c5e8; }
.gd-ptag.Epic         { background:#2d2d2d; color:#ddd; }
.gd-ptag.GOG          { background:#6240b5; color:#d4cafe; }
.gd-ptag.Amazon       { background:#ff9900; color:#111; }
.gd-ptag.Xbox         { background:#107c10; color:#c2f0c2; }
.gd-ptag.PlayStation  { background:#003087; color:#b3c8f5; }
.gd-ptag.Nintendo     { background:#e4000f; color:#ffe6e7; }
.gd-ptag.PC           { background:#0d1117; color:#58a6ff; border:1px solid rgba(88,166,255,0.3); }
.gd-ptag.Celular      { background:#0a1f0a; color:#a8e063; }
.gd-ptag.CDDVD        { background:#2d1b69; color:#c4b5fd; }
.gd-ptag.Cartucho     { background:#1a0a00; color:#f97316; }
.gd-ptag.Outros       { background:#555; color:#ddd; }

@media (max-width:380px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
