/* The logged-in web Search tab — three sub-tabs (Discover/People/
   Hashtags), matching mobile's search.tsx shape minus the Marketplace/
   Spin-the-Wheel shortcuts that also live on that screen (out of scope
   here) and minus the chip-based multi-tag hashtag input (simplified to
   the same single-debounced-box shape as People, per explicit scope).
   Discover reuses feed.css's .feed-card list rendering rather than
   mobile's PostThumbGrid — a deliberate simplification for reuse, not a
   missed detail; flagged in the accompanying report. Loads after
   app-shell.css and feed.css. */

.search-main {
  max-width: 560px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
}

.search-tab-btn {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sub);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.search-tab-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.search-panel {
  padding-top: 4px;
}

.search-input-row {
  padding: 14px 16px 6px;
}

.search-input {
  width: 100%;
  height: 42px;
  font-family: Barlow, system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--red);
}

.search-empty {
  text-align: center;
  padding: 60px 24px;
}

.search-empty-heading {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}

.search-empty-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sub);
  margin: 0;
}

.search-loading-more {
  text-align: center;
  padding: 16px;
  font-size: 12.5px;
  color: var(--sub);
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}

.search-result-avatar-img,
.search-result-avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.search-result-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}

.search-result-username {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.search-results-meta {
  padding: 8px 16px;
  font-size: 12.5px;
  color: var(--sub);
}

.search-results-meta strong {
  color: var(--ink);
}
