/* ==========================================================================
   IN7 GAME — Games catalogue
   Filter rail • search • category pills • results grid • empty state
   ========================================================================== */

.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.cat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border-radius: var(--r-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.cat-card:hover { transform: translateY(-4px); border-color: var(--color-gold); }

.cat-card[aria-pressed="true"] {
  border-color: transparent;
  background: var(--grad-black);
  box-shadow: 0 14px 32px rgba(11, 10, 11, 0.24);
}

.cat-card[aria-pressed="true"] .cat-card__name { color: #fff; }
.cat-card[aria-pressed="true"] .cat-card__count { color: var(--color-gold-light); }

.cat-card__ic {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cat-grad, var(--grad-crimson));
}

.cat-card__ic svg { width: 20px; height: 20px; }
.cat-card__txt { min-width: 0; line-height: 1.3; }
.cat-card__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--color-black); }
.cat-card__count { display: block; font-size: var(--fs-xs); color: var(--color-text-muted); }

/* --- Toolbar --- */
.gtools {
  position: sticky;
  top: 92px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--sp-6);
}

.gsearch {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

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

.gsearch input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.94rem;
  color: var(--color-text-primary);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.gsearch input::placeholder { color: var(--color-text-muted); }
.gsearch input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(203, 159, 42, 0.16);
}

.gselect {
  position: relative;
  flex: 0 1 auto;
}

.gselect select {
  appearance: none;
  -webkit-appearance: none;
  padding: 13px 42px 13px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  cursor: pointer;
}

.gselect::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

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

.gcount {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-left: auto;
  padding-right: 6px;
  white-space: nowrap;
}

.gcount b { color: var(--color-black); font-family: var(--font-display); }

@media (max-width: 620px) {
  .gtools { top: 82px; }
  .gcount { margin-left: 0; width: 100%; }
}

/* --- Results --- */
.gresults { min-height: 260px; }

.gempty {
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px dashed var(--color-border);
  background: var(--color-surface);
}

.gempty__ic {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-gold-tint);
  color: var(--color-gold);
}

.gempty__ic svg { width: 30px; height: 30px; }
.gempty h3 { margin-bottom: 8px; }
.gempty p { color: var(--color-text-muted); margin-inline: auto; }

.gmore { text-align: center; margin-top: var(--sp-7); }

/* --- Category intro panel --- */
.cat-intro {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--color-gold-tint), var(--color-surface));
  border: 1px solid var(--color-gold-light);
  margin-bottom: var(--sp-6);
}

.cat-intro[hidden] { display: none; }

.cat-intro__ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cat-grad, var(--grad-crimson));
}

.cat-intro__ic svg { width: 27px; height: 27px; }
.cat-intro h2 { font-size: var(--fs-h3); margin-bottom: 6px; }
.cat-intro p { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: 0; }

@media (max-width: 560px) {
  .cat-intro { grid-template-columns: 1fr; padding: var(--sp-5); }
}

/* --- Provider marquee --- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.provider {
  padding: 15px 12px;
  border-radius: var(--r-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  text-align: center;
  transition: all var(--dur-base) var(--ease-out);
}

.provider:hover { border-color: var(--color-gold); transform: translateY(-3px); }
.provider b { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--color-black); }
.provider span { font-size: var(--fs-xs); color: var(--color-text-muted); }
