/* ════════════════════════════════════════════════════════════
   D10 LEAKS: /reviews
   Layered on legal.css, which supplies the tokens, nav, footer
   and music control. Only the review grid lives here.
   ════════════════════════════════════════════════════════════ */

/* ── controls ────────────────────────────────────────────────── */
.rv-controls {
  margin: 26px 0 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}

.rv-search {
  position: relative; flex: 1 1 260px; min-width: 0; max-width: 420px;
  display: flex; align-items: center;
}
.rv-search-ico {
  position: absolute; left: 14px; width: 15px; height: 15px;
  color: var(--muted); pointer-events: none;
}
.rv-search input {
  width: 100%; padding: 12px 38px 12px 39px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.03); color: var(--silver);
  font-family: 'Space Grotesk', sans-serif; font-size: .9rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.rv-search input::placeholder { color: var(--muted); }
.rv-search input:focus {
  outline: none; border-color: rgba(255,20,40,.45); background: rgba(255,255,255,.05);
}
.rv-search input::-webkit-search-cancel-button { display: none; }
.rv-clear {
  position: absolute; right: 10px;
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: 1rem; line-height: 1;
}
.rv-clear:hover { color: var(--silver); background: rgba(255,255,255,.07); }

.rv-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-filter {
  padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.rv-filter:hover { color: var(--silver); border-color: var(--line); background: rgba(255,255,255,.04); }
.rv-filter.on { color: #fff; border-color: rgba(255,20,40,.55); background: rgba(255,20,40,.14); }

/* ── grid ────────────────────────────────────────────────────── */
.rv-grid {
  display: grid; gap: 16px;
  /* min(280px, 100%) rather than a bare 280px: on a 272px-wide content
     column a hard 280px minimum makes every track wider than its container. */
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  align-items: start;
}

.rv-item {
  position: relative;
  /* A grid item's automatic minimum size is its max-content width, so one
     long unbroken token (a 30-character Discord name, a pasted URL) pushed
     the whole column past the viewport. Reviews are member-written, so this
     is a matter of when, not if. */
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.012) 44%, rgba(255,255,255,0) 100%),
    rgba(13,14,19,.5);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 40px -20px rgba(0,0,0,.8);
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.rv-item:hover { transform: translateY(-3px); border-color: rgba(255,20,40,.3); }

.rv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0; }
.rv-head > div { min-width: 0; }
.rv-name, .rv-role, .rv-text { overflow-wrap: anywhere; }
.rv-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,20,40,.8), rgba(122,10,20,.9));
  display: grid; place-items: center; overflow: hidden;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #fff;
}
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-name { font-size: .95rem; font-weight: 500; color: var(--silver); }
.rv-role {
  font-family: 'IBM Plex Mono', monospace; font-size: 8.5px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
.rv-stars { color: var(--ice); font-size: .82rem; letter-spacing: .12em; margin-bottom: 9px; }
.rv-text  { font-size: .92rem; line-height: 1.65; color: var(--mid); }
.rv-date {
  margin-top: 13px; font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

.rv-empty { padding: 40px 2px; color: var(--muted); font-size: .95rem; }

/* ── mobile ──────────────────────────────────────────────────── */
@media (max-width: 900px) and (pointer: coarse) {
  /* Same rule as everywhere else on this site: no blurred layers on touch,
     they are re-sampled every scroll frame. */
  .rv-item { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16,17,22,.92); }
}

@media (max-width: 560px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-controls { gap: 10px; }
  .rv-search { flex: 1 1 100%; max-width: none; }
}
