/* ==========================================================================
   Six Game — pages/games.css
   Slot catalogue: filter toolbar, pills, search, empty state.
   ========================================================================== */

.games-toolbar {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: var(--z-sticky);
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-sm) 0 var(--space-md);
  margin-bottom: var(--space-md);
  background: linear-gradient(180deg, var(--color-obsidian) 62%, rgba(10, 9, 8, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.games-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 340px;
}

.games-search__input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  font-size: var(--fs-sm);
  color: var(--color-ivory);
  background: rgba(10, 9, 8, 0.7);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.games-search__input::placeholder {
  color: var(--color-ivory-muted);
}

.games-search__input:focus {
  outline: none;
  border-color: var(--color-royal-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.games-search__icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--color-royal-gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.games-count {
  font-family: var(--font-accent);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ivory-muted);
  white-space: nowrap;
}

.games-count b {
  color: var(--color-royal-gold-lt);
  font-size: var(--fs-sm);
}

/* Filter pills — horizontally scrollable on narrow screens, never overflowing
   the page itself. */
.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.filters::-webkit-scrollbar {
  height: 4px;
}

.filters::-webkit-scrollbar-thumb {
  background: var(--color-border-gold-s);
  border-radius: 4px;
  border: 0;
}

.filter-pill {
  flex: none;
  scroll-snap-align: start;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-ivory-dim);
  background: rgba(29, 26, 21, 0.8);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-full);
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
}

.filter-pill:hover {
  color: var(--color-ivory);
  border-color: var(--color-border-gold);
  transform: translateY(-2px);
}

.filter-pill.is-active {
  color: #17130A;
  background: var(--gradient-gold);
  border-color: rgba(232, 199, 102, 0.6);
  box-shadow: var(--shadow-gold-glow);
}

.games-empty {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  border: 1px dashed var(--color-border-gold);
  border-radius: var(--radius-lg);
  color: var(--color-ivory-muted);
}

.games-empty h3 {
  color: var(--color-ivory);
  margin-bottom: 0.5rem;
}

/* Anchor targets for the theme links coming from the homepage tile rail */
.games-anchor {
  position: relative;
  top: calc(-1 * (var(--header-h) + 90px));
  display: block;
  height: 0;
  visibility: hidden;
}
