/* Relok-inspired styles: cards and common UI tuning */

/* Base variables to align tones with Relok */
:root {
  --relock-accent: #0ea5ff;
  --relock-accent-2: #0070f3;
  --relock-bg-elev: rgba(0,0,0,0.04);
  --relock-bg-elev-hover: rgba(0,0,0,0.08);
  --relock-text: #111111;
  --relock-muted: #6b7280;
  --relock-shadow: 0 10px 30px rgba(0,0,0,0.12);
  --relock-radius-lg: 16px;
  --relock-radius-md: 12px;
  --relock-gold-1: #f3d08a;
  --relock-gold-2: #caa75e;
  --relock-gold-3: #a98a3a;
}

/* Containers and headings subtle tune */
.container {
  color: var(--relock-text);
}

h1, h2, h3 {
  letter-spacing: -0.01em;
}

/* Search input visual parity */
.search input {
  background: #f1f5f9;
  color: #111111;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Category chips hover similar to Relok tone */
.category-chip {
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.12);
}
.category-chip:hover {
  background: rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.20);
}
.category-chip.active {
  background: var(--relock-accent-2);
  border-color: var(--relock-accent-2);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0,112,243,0.30);
}

/* ================= Cards ================= */
/* Map our classes to Relok-like visuals without changing markup */

.collection-games-track {
  gap: 14px;
  padding: 0 6px 16px 6px;
}

.collection-game-card {
  width: 180px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.collection-game-button {
  position: relative;
  width: 100%;
  height: 248px;
  border: none;
  border-radius: var(--relock-radius-lg);
  background: var(--relock-bg-elev);
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  backdrop-filter: blur(10px);
}

.collection-game-card:hover .collection-game-button {
  background: var(--relock-bg-elev-hover);
  box-shadow: var(--relock-shadow);
  transform: translateY(-4px) scale(1.02);
}

.collection-game-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 14px;
}

.collection-game-thumb-wrap { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,0.04); }
.collection-game-thumb { width: 100%; height: 160px; object-fit: cover; display: block; }
.collection-game-card:hover .collection-game-thumb { filter: saturate(1.06) contrast(1.02); }

/* Top ribbon like “ULTIMATE EDITION” */
.game-ribbon {
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #111;
  background: linear-gradient(180deg, var(--relock-gold-1), var(--relock-gold-2));
  border-bottom: 1px solid var(--relock-gold-3);
}

/* Discount chip in price row */
.discount-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #3b82f6; color: #fff; margin-left: 8px; }

.collection-game-title {
  margin: 12px 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
  color: var(--relock-text);
}

/* Price row below image */
.collection-game-price-row { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.collection-game-price { margin: 0; font-size: 15px; font-weight: 800; color: #111111; letter-spacing: 0; }
.collection-game-subtitle { margin: 4px 0 0 0; font-size: 12px; color: var(--relock-muted); }

/* Discount badge style (if text contains %-pattern use a secondary chip) */
.collection-game-price .discount,
.collection-game-discount {
  margin-left: 6px;
  display: inline-block;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border-radius: 8px;
}

/* Compact sizing on small screens */
@media (max-width: 520px) {
  .collection-game-card { width: 148px; }
  .collection-game-button { height: 240px; border-radius: 14px; }
  .collection-game-content { padding: 10px; }
  .collection-game-thumb { height: 120px; }
  .collection-game-title { font-size: 13px; margin: 10px 0 6px 0; }
  .collection-game-price { font-size: 14px; }
}

/* Loading shimmer (kept for parity) */
.collection-game-card.loading .collection-game-thumb {
  background: linear-gradient(90deg, rgba(0,0,0,.04) 25%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.04) 75%);
  background-size: 200% 100%;
  animation: relock-shimmer 1.5s infinite;
}

@keyframes relock-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


