/* Games Sticky Filter Bar */
.games-filters {
  position: sticky;
  top: 96px; /* 60px header + 36px topbar */
  background-color: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  z-index: var(--z-dropdown);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: top var(--transition-fast);
}

.games-filters__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .games-filters {
    top: 108px; /* 72px header + 36px topbar */
  }
  .games-filters__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Category pills */
.games-filters__categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .games-filters__categories {
    padding-bottom: 0;
    overflow-x: visible;
  }
}

.filter-pill {
  white-space: nowrap;
  background-color: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
  background-color: var(--color-gold-muted);
}

.filter-pill.active {
  background-color: var(--color-gold-primary);
  color: #0D0D0D;
  border-color: var(--color-gold-primary);
  font-weight: var(--fw-semi);
}

/* Search input */
.games-filters__search {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .games-filters__search {
    max-width: 320px;
  }
}

.games-filters__search input {
  width: 100%;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-input);
  font-size: var(--fs-small);
}

.games-filters__search input:focus {
  outline: none;
  border-color: var(--color-gold-primary);
}

/* Sort dropdown */
.games-filters__sort {
  width: 100%;
}

@media (min-width: 768px) {
  .games-filters__sort {
    width: auto;
    min-width: 160px;
  }
}

.games-filters__sort select {
  width: 100%;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-input);
  font-size: var(--fs-small);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 40px;
}

.games-filters__sort select:focus {
  outline: none;
  border-color: var(--color-gold-primary);
}

/* Games Grid */
.games__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .games__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.games__load-more {
  text-align: center;
  margin-bottom: 64px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background-color: var(--color-bg-card);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  color: var(--color-text-secondary);
}

.no-results h3 {
  color: var(--color-gold-light);
  margin-bottom: 8px;
}

/* Library About Text block styling */
.games__about-library {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
  line-height: 1.7;
}

.games__about-library h2 {
  font-size: var(--fs-h2);
  color: var(--color-gold-primary);
  margin-bottom: 24px;
  text-align: center;
}

.games__about-library p {
  margin-bottom: 20px;
}

.games__about-library p:last-child {
  margin-bottom: 0;
}
