/* ============================================================
   IC7 Game — Games listing page
   ============================================================ */

/* ---------- Filter toolbar ---------- */
.games-toolbar {
  position: sticky;
  top: calc(var(--header-h) - 6px);
  z-index: var(--z-sticky);
  padding-block: var(--sp-4);
  background: rgba(10,10,12,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-6);
}

.games-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Search field */
.games-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
}

.games-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.games-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 0.94rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-med);
}
.games-search input::placeholder { color: var(--color-text-muted); }
.games-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow-red);
}

/* Category pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.pill {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--dur-med) var(--ease-out);
}

.pill:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.pill.is-active {
  background: var(--grad-crimson);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow-red);
}

/* Count line */
.games-count {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-5);
}

/* Empty state */
.games-empty {
  text-align: center;
  padding: var(--sp-9) var(--sp-4);
}
.games-empty svg {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  color: var(--color-text-muted);
}
.games-empty h3 { margin-bottom: var(--sp-2); }

/* Load more */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 5vw, 56px);
}

/* Categories teaser row above the grid.
   No bottom margin — the sticky toolbar directly below provides the spacing. */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
}

.cat-tile {
  position: relative;
  overflow: hidden;
  padding: var(--sp-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--grad-surface);
  text-align: center;
  transition: all var(--dur-med) var(--ease-out);
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow-red);
}
.cat-tile__icon {
  width: 40px; height: 40px;
  margin: 0 auto var(--sp-3);
  color: var(--color-accent-hot);
}
.cat-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}
.cat-tile__count { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 2px; }
