/* ============================================================================
SLOP.game — additive homepage styles (nav search, browse chrome, card grid).
========================================================================== */

/* ---------------------------------------------------------------- nav search */
.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(17, 18, 26, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 8px rgba(17, 18, 26, 0.05);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.nav-search:focus-within {
  border-color: var(--el);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--ring);
}
.nav-search svg { width: 16px; height: 16px; color: var(--soft); flex-shrink: 0; }
.nav-search input {
  border: none;
  outline: none;
  background: none;
  min-width: 0;
  width: clamp(130px, 14vw, 190px);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
  color: var(--ink);
}
.nav-search input::placeholder { color: var(--soft); opacity: 0.65; }

/* ---------------------------------------------------------------- xp pill */
.xp-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--wh); border: var(--bw) solid var(--ink); border-radius: 100px; padding: 4px 12px 4px 5px; box-shadow: var(--sh); }
.xp-pill .lvl { width: 26px; height: 26px; border-radius: 50%; background: var(--pk); color: #fff; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 12px; }
.xp-pill .xpb { width: 52px; height: 8px; border-radius: 100px; background: rgba(26,26,46,.12); overflow: hidden; }
.xp-pill .xpb i { display: block; height: 100%; background: var(--mt); border-radius: 100px; transition: width .5s ease; }
.xp-pill .xpn { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; color: var(--soft); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 720px) {
/* keep search on desktop/tablet only in the bar; drawer handles mobile */
.nav-search-bar input { width: 100%; font-size: 13px; }
}

/* ============================================================================
Browse section chrome + card report button
========================================================================== */

/* ---- section sub-heads ---- */
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.pop-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; }
.pop-sub { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--soft); }
.sort-row { display: flex; gap: 6px; }
.sbtn { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12.5px; color: var(--soft); background: var(--wh); border: 2.5px solid var(--ink); border-radius: 100px; padding: 7px 16px; cursor: pointer; transition: transform .12s; }
.sbtn:hover { transform: translate(-1px,-1px); }
.sbtn.active { background: var(--ink); color: var(--y); }

.gcat { display: inline-block; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; color: var(--el); background: rgba(43,107,255,.1); border-radius: 100px; padding: 3px 9px; margin-bottom: 6px; }

/* ---- report button on cards ---- */
.greport { position: absolute; bottom: 12px; left: 12px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); border: 2px solid var(--ink); font-size: 12px; line-height: 1; opacity: 0; transition: opacity .15s, transform .12s; box-shadow: var(--sh); }
.gcard:hover .greport { opacity: 1; }
.greport:hover { transform: scale(1.1); background: var(--y); }
