/* ==========================================================================
   IC7 Game — games.html + game-details.html
   Only what main.css does not already provide.
   ========================================================================== */

/* ---------- Filter + search toolbar (games.html) ---------- */
.lib-tools {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Active state for the .btn--ghost filter chips */
.filters .btn[aria-pressed='true'] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-accent);
  box-shadow: var(--shadow-glow-accent);
}

.filters .btn__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.72;
}

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

.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.search__input {
  width: 100%;
  padding: 13px var(--space-5) 13px 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-primary);
  transition: border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

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

.search__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 18px rgba(230, 30, 45, 0.18);
}

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

.lib-count {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.lib-count strong {
  font-family: var(--font-mono);
  color: var(--color-gold);
}

.lib-empty {
  padding: var(--space-16) var(--space-6);
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
}

/* ---------- Game detail hero (game-details.html) ---------- */
.gd-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.gd-head__tagline {
  max-width: 60ch;
  font-size: 1.06rem;
  margin-bottom: var(--space-6);
}

.gd-split {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

.gd-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.gd-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gd-note {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (min-width: 992px) {
  .gd-split { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-10); }
}
