/* =========================================================================
   Follows — styled to harmonize with the profile + feed Cartographic
   Utility aesthetic: mono caps, sharp corners, paper/ink tokens.
   ========================================================================= */

/* ---- Follow / Unfollow button ---- */
.follow-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.follow-btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.follow-btn--primary:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}
.follow-btn--outlined {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 7px 13px;
}
.follow-btn--outlined:hover:not(:disabled) { border-color: var(--ink); }
.follow-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---- "Follows you" chip next to the @username wordmark ---- */
.follow-you-chip {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-3);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---- Profile follow counts row — full-width row under the main header. ---- */
.profile-follow-counts {
  display: flex;
  gap: 18px;
  flex-basis: 100%;
  margin-top: 2px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.profile-follow-counts button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  letter-spacing: inherit;
  text-transform: inherit;
}
.profile-follow-counts button:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---- Unfollow confirmation popover ---- */
.follow-confirm {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--shadow-md);
  /* Above the follow-list overlay so an unfollow confirm triggered from a
     list row renders on top of its own overlay. */
  z-index: 1200;
  font: 500 13px/1.45 var(--font-sans);
  color: var(--ink);
  min-width: 200px;
}
.follow-confirm__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}
.follow-confirm__primary {
  appearance: none;
  border: 0;
  background: var(--danger);
  color: #fff;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.follow-confirm__secondary {
  appearance: none;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.follow-confirm__secondary:hover { border-color: var(--ink); }

/* ---- Follow list overlay (followers/following) ---- */
.follow-list-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.follow-list-modal {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  width: min(480px, 100%);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.follow-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font: 700 13px/1.2 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
}
.follow-list-back {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  cursor: pointer;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.follow-list-back:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.follow-list-body {
  overflow-y: auto;
  padding: 4px 0;
}
.follow-list-empty,
.follow-list-error,
.follow-list-loading {
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.follow-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.follow-list-row:last-child { border-bottom: 0; }
.follow-list-row__name {
  color: var(--ink);
  font: 600 14px/1.2 var(--font-mono);
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.follow-list-row__name:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .follow-list-overlay {
    padding: 0;
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .follow-list-modal {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
}
