/* ── Explore: the public directory ────────────────────────
   A minimal typographic index: serif names, one line each, hairlines and
   air. On wide screens a whisper-quiet rail lists every loaded AI by name;
   below ~1024px the rail disappears and the single column stands alone.
   Everything inherits the theme tokens, so light/dark just works. */

.explore-wrap {
  display: grid;
  grid-template-columns: minmax(150px, 15%) 1fr;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.explore-rail {
  padding: 76px 18px 40px 2px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.explore-rail-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  padding-bottom: 10px;
}

.explore-rail-item {
  border: none;
  background: transparent;
  text-align: left;
  padding: 3px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--subtle);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.explore-rail-item:hover { color: var(--text); }
.explore-rail-more { padding-top: 8px; font-size: 12px; color: var(--subtle); opacity: 0.7; }

.explore-col {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.explore-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.explore-sub { font-size: 15px; color: var(--subtle); }

.explore-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px 10px;
  border-bottom: 1px solid var(--line-hi);
  transition: border-color 0.18s var(--ease);
}

.explore-search-row:focus-within { border-color: var(--accent); }
.explore-search-icon { color: var(--subtle); display: grid; place-items: center; }
.explore-search-icon svg { width: 17px; height: 17px; }

.explore-search {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--text);
  padding: 2px 0;
}

.explore-search::placeholder { color: var(--subtle); }
.explore-search::-webkit-search-cancel-button { -webkit-appearance: none; }

.explore-cats { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }

.explore-cat {
  border: none;
  background: transparent;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--subtle);
  cursor: pointer;
  transition: color 0.16s var(--ease);
}

.explore-cat:hover { color: var(--text); }
.explore-cat[aria-pressed="true"] { color: var(--text); font-weight: 500; }

.explore-list { display: flex; flex-direction: column; padding-top: 12px; }

/* Rows are real links, full-bleed to a soft rounded hover surface. */
.explore-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 -20px;
  padding: 28px 22px;
  border-top: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.explore-item:hover { background: var(--surface); }
.explore-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.explore-item-main { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }

.explore-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}

.explore-verified { color: var(--good); display: grid; place-items: center; }
.explore-verified svg { width: 15px; height: 15px; }

.explore-desc { font-size: 15.5px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.explore-item-meta { font-size: 12.5px; color: var(--subtle); padding-top: 2px; }

/* The page's only button, revealed by the row it belongs to. */
.explore-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 600;
  flex: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.explore-item:hover .explore-go,
.explore-item:focus-visible .explore-go { opacity: 1; transform: none; }
.explore-go svg { width: 14px; height: 14px; }

.explore-empty {
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}

.explore-empty h3 { font-size: 19px; color: var(--text); }
.explore-empty p { font-size: 14.5px; }

.explore-more { align-self: center; margin-top: 10px; }

@media (max-width: 1023px) {
  .explore-wrap { display: block; }
  .explore-rail { display: none; }
}

@media (max-width: 700px) {
  .explore-col { padding-top: 26px; gap: 14px; }
  .explore-item { margin: 0 -12px; padding: 22px 12px; gap: 12px; }
  /* Rows are tapped whole on touch; the hover pill has no hover to live on. */
  .explore-go { display: none; }
}
