/* ==========================================================================
   /products revamp: big header + search, a row of GAME tiles, then the
   category filter bar. Purple family only (no yellow / blue / pink chips).
   Games are configured in components/page-products.njk (_games).
   ========================================================================== */

/* ---------- header ---------- */
.rvg-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: 30px;
}
.rvg-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 18px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #cba6ff;
}
.rvg-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #a855f7; box-shadow: 0 0 12px 2px rgba(168, 85, 247, .9); }
.rvg-head h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800; line-height: .98; letter-spacing: -.045em;
  color: var(--rv10-text, #f8f8fc);
}
.rvg-grad {
  background: linear-gradient(95deg, #c084fc 0%, #a855f7 45%, #7c6cff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.rvg-sub { margin: 16px 0 0; max-width: 52ch; font-size: 16px; line-height: 1.55; color: var(--rv10-muted, #9d9dad); }
.rvg-head .rv10-live { margin: 18px 0 0 !important; }

.rvg-search { width: 100%; height: 52px; border-radius: 16px; align-self: end; }
.rvg-search > i { margin-left: 18px; }
.rvg-search input { font-size: 15px; }

/* ---------- game tiles ---------- */
.rvg-games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.rvg-tile {
  --c: 168, 85, 247;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 172px; padding: 18px 18px 16px;
  overflow: hidden; isolation: isolate;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  border-radius: 22px;
  border: 1px solid rgba(var(--c), .26);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(var(--c), .26), transparent 62%),
    linear-gradient(160deg, rgba(var(--c), .10), rgba(8, 8, 13, .0) 70%),
    var(--rv10-surface, #0e0e15);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s, background .3s;
  -webkit-tap-highlight-color: transparent;
  animation: rvp-rise .7s cubic-bezier(.2, .85, .25, 1) calc(var(--i, 0) * 90ms + 120ms) backwards;
}
.rvg-tile:nth-child(2) { --c: 129, 120, 255; }
.rvg-tile:nth-child(3) { --c: 214, 80, 240; }
.rvg-tile:nth-child(4) { --c: 99, 132, 255; }
/* fine blueprint grid that fades out toward the bottom-right */
.rvg-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
}
.rvg-tile-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.rvg-tile:hover, .rvg-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--c), .7);
  box-shadow: 0 26px 56px -26px rgba(var(--c), .85);
  outline: none;
}
.rvg-tile:focus-visible { box-shadow: 0 0 0 3px rgba(var(--c), .7), 0 26px 56px -26px rgba(var(--c), .85); }
.rvg-tile.is-active {
  border-color: rgb(var(--c));
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(var(--c), .42), transparent 62%),
    linear-gradient(160deg, rgba(var(--c), .18), transparent 70%),
    var(--rv10-surface, #0e0e15);
  box-shadow: 0 0 0 1px rgba(var(--c), .6), 0 26px 60px -22px rgba(var(--c), .95);
}

.rvg-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rvg-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font-size: 18px; color: #fff;
  background: linear-gradient(145deg, rgba(var(--c), .38), rgba(var(--c), .10));
  border: 1px solid rgba(var(--c), .5);
  box-shadow: 0 10px 24px -10px rgba(var(--c), .9);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.rvg-tile:hover .rvg-icon, .rvg-tile.is-active .rvg-icon { transform: scale(1.08) rotate(-4deg); }

.rvg-badge {
  display: none; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; color: #eadbff; background: rgba(var(--c), .18); border: 1px solid rgba(var(--c), .45);
}
.rvg-tile.is-empty .rvg-badge--soon { display: inline-flex; }
.rvg-tile.is-active .rvg-badge--soon { display: none; }
.rvg-tile.is-active .rvg-badge--on { display: inline-flex; color: #fff; background: rgb(var(--c)); border-color: rgb(var(--c)); }
.rvg-tile.is-empty:not(.is-active) .rvg-icon { opacity: .8; }

.rvg-tile-bottom { display: flex; flex-direction: column; gap: 5px; }
.rvg-name { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.rvg-count {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.rvg-count b { color: #fff; font-weight: 800; }

/* ---------- filter bar: purple-family chips instead of yellow / blue / pink ---------- */
.rv10-bar .rv10-chip[data-tone] { --c: 168, 85, 247; }
.rv10-bar .rv10-chip[data-tone="scripts"] { --c: 168, 85, 247; }
.rv10-bar .rv10-chip[data-tone="external"] { --c: 139, 120, 255; }
.rv10-bar .rv10-chip[data-tone="utility"] { --c: 214, 80, 240; }
.rv10-bar .rv10-chip[data-tone="accounts"] { --c: 192, 160, 255; }
.rv10-bar .rv10-chip[data-tone="x0"] { --c: 168, 85, 247; }
.rv10-bar .rv10-chip[data-tone="x1"] { --c: 139, 120, 255; }
.rv10-bar .rv10-chip[data-tone="x2"] { --c: 214, 80, 240; }
.rv10-bar .rv10-chip[data-tone="x3"] { --c: 120, 140, 255; }
.rv10-bar::before { background: linear-gradient(90deg, transparent, rgba(217, 70, 239, .75), rgba(168, 85, 247, .85), rgba(99, 102, 241, .75), transparent) !important; }
.rv10-bar .rv10-chip[hidden] { display: none !important; }
.rv10-bar .rv10-toggle[aria-pressed="true"] { border-color: rgba(168, 85, 247, .6); }
.rv10-bar .rv10-toggle[aria-pressed="true"] .rv10-switch { background: #a855f7; box-shadow: 0 0 14px rgba(168, 85, 247, .7); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .rvg-head { grid-template-columns: 1fr; }
  .rvg-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .rvg-tile { min-height: 148px; padding: 14px; border-radius: 18px; }
  .rvg-name { font-size: 22px; }
  .rvg-icon { width: 38px; height: 38px; font-size: 16px; }
  .rvg-badge { font-size: 9px; padding: 4px 7px; letter-spacing: .05em; }
  .rvg-search kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rvg-tile, .rvg-icon { transition: none; animation: none; }
}

/* ==========================================================================
   /products left Filters box: Sort by, Game > store categories, Price, Status.
   Built by revive-v10.js (initCatalog). Purple family, same surface as the bar.
   ========================================================================== */
.rvf-layout { display: block; }
.rvf-layout.has-filters {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.rvf-main { min-width: 0; }
/* 4 products per row next to the box; the top chip bar is replaced by the box */
.rv10-catalog .rvf-layout.has-filters .rv10-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rvf-layout.has-filters .rv10-bar { display: none; }
.rvf-subs.rvf-subs--flat { margin-left: 0; padding-left: 0; border-left: 0; }

.rvf {
  padding: 18px 16px 20px;
  border-radius: 22px;
  border: 1px solid var(--rv10-line, rgba(255, 255, 255, .09));
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(168, 85, 247, .12), transparent 60%),
    var(--rv10-surface, #0e0e15);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9);
}
.rvf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rvf-title {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0; border: 0; background: none; cursor: default;
  font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--rv10-text, #f8f8fc);
}
.rvf-title i { color: #a855f7; font-size: 14px; }
.rvf-caret { display: none; font-size: 12px; color: var(--rv10-muted, #9d9dad); transition: transform .2s; }
.rvf-clear {
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: #e4d3ff;
  background: rgba(168, 85, 247, .14); border: 1px solid rgba(168, 85, 247, .4);
}
.rvf-clear:hover { background: rgba(168, 85, 247, .26); color: #fff; }
.rvf-clear[hidden] { display: none; }

.rvf-sec { margin-top: 20px; }
.rvf-sec h3 {
  margin: 0 0 9px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rv10-muted, #9d9dad);
}

.rvf-dd { position: relative; }
.rvf-dd-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; cursor: pointer;
  padding: 11px 14px; border-radius: 14px; text-align: left;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--rv10-text, #f8f8fc);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--rv10-line, rgba(255, 255, 255, .09));
  transition: border-color .18s, background .18s;
}
.rvf-dd-btn:hover, .rvf-dd.is-open .rvf-dd-btn { border-color: rgba(168, 85, 247, .5); background: rgba(168, 85, 247, .08); }
.rvf-dd-caret { display: block; flex: none; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid #9d9dad; border-bottom: 2px solid #9d9dad; transform: rotate(45deg); transition: transform .2s; }
.rvf-dd.is-open .rvf-dd-caret { transform: rotate(-135deg); margin-top: 3px; }
.rvf-dd-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; border-radius: 14px;
  background: #14141d; border: 1px solid rgba(168, 85, 247, .35);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4);
}
.rvf-dd-list[hidden] { display: none; }
.rvf-dd-list li {
  padding: 9px 11px; border-radius: 9px; cursor: pointer; outline: 0;
  font-size: 13.5px; font-weight: 600; color: #c5c5d3;
}
.rvf-dd-list li:hover, .rvf-dd-list li:focus { background: rgba(255, 255, 255, .06); color: #fff; }
.rvf-dd-list li.is-selected { background: rgba(168, 85, 247, .18); color: #fff; }

/* shared row look */
.rvf-gbtn, .rvf-sub, .rvf-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  border: 1px solid transparent; background: none; color: var(--rv10-text, #f8f8fc);
  transition: background .18s, border-color .18s, color .18s;
}
.rvf-gbtn { padding: 9px 10px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.rvf-gbtn em, .rvf-sub em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--rv10-muted, #9d9dad); }
.rvf-gbtn:hover, .rvf-sub:hover, .rvf-opt:hover { background: rgba(255, 255, 255, .05); }
.rvf-game.is-soon .rvf-gbtn { opacity: .55; }
.rvf-game.is-soon .rvf-gbtn em { color: #a78bfa; }
.rvf-gbtn[aria-pressed="true"] { background: rgba(168, 85, 247, .16); border-color: rgba(168, 85, 247, .45); color: #fff; }
.rvf-gbtn[aria-pressed="true"] em { color: #e4d3ff; }

/* categories dropping down under each game, with a guide line like the reference */
.rvf-subs { margin: 2px 0 8px 16px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .09); }
.rvf-sub { padding: 7px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #c5c5d3; }
.rvf-sub i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.rvf-sub span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvf-sub--child { margin-left: 14px; width: calc(100% - 14px); font-weight: 500; font-size: 13px; }
.rvf-sub.is-active { color: #fff; background: rgba(168, 85, 247, .16); border-color: rgba(168, 85, 247, .45); }
.rvf-sub.is-active i { background: #a855f7; box-shadow: 0 0 10px rgba(168, 85, 247, .9); }

.rvf-opt { padding: 9px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 600; justify-content: flex-start; }
.rvf-opt.is-active { background: rgba(168, 85, 247, .16); border-color: rgba(168, 85, 247, .45); color: #fff; }

.rvf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rvf-pill {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #c5c5d3;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--rv10-line, rgba(255, 255, 255, .09));
  transition: background .18s, border-color .18s, color .18s;
}
.rvf-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--st); box-shadow: 0 0 8px var(--st); }
.rvf-pill:hover { color: #fff; border-color: rgba(255, 255, 255, .22); }
.rvf-pill.is-active { color: #fff; background: rgba(168, 85, 247, .18); border-color: rgba(168, 85, 247, .55); }
.rvf :focus-visible { outline: 2px solid var(--rv10-accent, #a855f7); outline-offset: 2px; }

@media (max-width: 1279px) {
  .rv10-catalog .rvf-layout.has-filters .rv10-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rv10-catalog .rvf-layout.has-filters .rv10-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .rvf-layout.has-filters { grid-template-columns: 1fr; gap: 16px; }
  .rvf { padding: 14px 14px 16px; }
  .rvf-title { cursor: pointer; width: 100%; justify-content: flex-start; }
  .rvf-caret { display: inline-block; margin-left: auto; }
  .rvf.is-collapsed .rvf-body { display: none; }
  .rvf.is-collapsed .rvf-caret { transform: rotate(-90deg); }
  .rvf-head { gap: 12px; }
}
@media (max-width: 640px) {
  .rv10-catalog .rvf-layout.has-filters .rv10-grid { grid-template-columns: 1fr; }
}
