/* ==========================================================================
   2J Game — pages/games.css
   Slot catalogue toolbar, filters and provider cards.
   ========================================================================== */

.games-toolbar {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

/* --- Search --- */
.games-search { position: relative; }

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

.games-search__input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-tint);
  border: 1px solid var(--color-border-strong);
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

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

.games-search__input::-webkit-search-cancel-button { cursor: pointer; }

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

/* --- Filter chips --- */
.games-filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.games-filters::-webkit-scrollbar { height: 4px; }
.games-filters::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 4px; }

.filter-chip {
  flex: 0 0 auto;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}

.filter-chip:hover {
  border-color: var(--color-gold-hairline);
  color: var(--color-gold-deep);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: var(--color-charcoal);
  border-color: var(--color-gold);
  color: var(--color-gold-bright);
  box-shadow: 0 4px 14px rgba(28, 28, 30, 0.2);
}

/* --- Result count --- */
.games-count {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* --- Empty state --- */
.games-empty {
  margin-top: var(--space-7);
  padding: var(--space-7);
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-strong);
  background: var(--color-surface-tint);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* --- Provider cards --- */
.provider-card {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.provider-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold-bright), var(--color-gold-deep));
  transform: scaleY(0.25);
  transform-origin: top;
  transition: transform var(--dur-base) var(--ease-out);
}

.provider-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold-hairline);
  box-shadow: var(--shadow-card);
}

.provider-card:hover::before { transform: scaleY(1); }

.provider-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-text-primary);
}

.provider-card__text {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-text-secondary);
}

@media (min-width: 900px) {
  .games-toolbar {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    grid-template-areas:
      "search filters"
      "count  filters";
    align-items: center;
    column-gap: var(--space-5);
  }
  .games-search  { grid-area: search; }
  .games-filters { grid-area: filters; }
  .games-count   { grid-area: count; }
}
