/* ── Social page ── */

/* Centred inside the .feed page column; kept narrower than the feed
   because it is mostly a search box and short row cards. `width: 100%`
   is load-bearing: without it the flex column would shrink the view to
   fit-content and it would drift off the shared page axis. */
.social-view {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 4px 0;
}

.social-view h2 {
  font-size: 1.4rem;
  margin: 0 0 20px;
}

.social-search {
  margin-bottom: 16px;
}

.social-search input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-sizing: border-box;
}

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

.social-section {
  margin-bottom: 20px;
}

.social-section h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.social-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}

.social-tab:hover {
  color: var(--text);
}

.social-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}

.social-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.social-actions {
  display: flex;
  gap: 8px;
}

.social-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.social-btn.accept,
.social-btn.follow {
  background: var(--text);
  color: var(--surface);
}

.social-btn.accept:hover,
.social-btn.follow:hover {
  opacity: 0.85;
}

.social-btn.ignore,
.social-btn.unfollow {
  background: var(--surface-alt);
  color: var(--text-muted);
}

.social-btn.ignore:hover,
.social-btn.unfollow:hover {
  background: var(--border);
}

.social-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Block: the standing refusal (specs/social.allium, UserBlocks). Muted until
   it is armed, because it is never a row's primary action — it sits beside
   Unfollow, Remove or Ignore and is the heavier version of each. The armed
   half takes the danger colour the comment removal's does, and for the same
   reason: neither has an undo that puts anything back. */
.social-btn.block {
  background: var(--surface-alt);
  color: var(--text-muted);
}

.social-btn.block:hover {
  background: var(--border);
  color: var(--danger);
}

/* Report: the other thing to do about a person, beside Block and never
   instead of it (specs/social.allium, ReportComposer). Muted like Block,
   because it is never a row's primary action — and it opens a dialog rather
   than doing anything, so it needs no armed state of its own. */
.social-btn.report {
  background: var(--surface-alt);
  color: var(--text-muted);
}

.social-btn.report:hover {
  background: var(--border);
  color: var(--text);
}

.social-btn.block.danger {
  background: var(--surface-alt);
  color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

/* A followed account whose library the server refused this reader on the last
   feed load. Shaped like the pending badge — the same "this row is not doing
   what it usually does" note — but warned rather than muted, because it is
   about something outside the reader's control. */
.social-badge.unavailable {
  margin-left: auto;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid var(--warning);
  color: var(--warning);
  background: var(--surface-alt);
}

/* A follower whose AKE handshake (follow_confirm) is still outstanding: the
   relationship is not yet active and no Sharing Key has been uploaded. */
.social-badge.pending {
  margin-left: auto;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid var(--border-strong);
  color: var(--text-subtle);
  background: var(--surface-alt);
}

.social-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-subtle);
  font-size: 0.9rem;
}
