/* Social: profiles, profile posts, follow/ignore, who's online. */

/* ---------- Tabs ---------- */
/* Tabs are styled in app.css (shadcn segmented tabs). */
.list-controls .tabs { margin-bottom: 0; }
.tab-panel:not(.is-active) { display: none; }

/* ---------- Profile header ---------- */
.member-header { flex-wrap: wrap; align-items: flex-start; }
.member-header-main { flex: 1; min-width: 240px; }
.member-header h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 6px; }
.member-stats dt { font-size: 0.8em; color: var(--text-muted); }
.member-stats dd { margin: 0; font-weight: 600; font-size: 1.1em; }
.member-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 10px; }
.member-buttons form { display: inline; margin: 0; }
.online-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.5em; font-weight: 600; padding: 2px 8px;
  border-radius: 10px; background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 40%, var(--border)); vertical-align: middle;
}
.online-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.avatar-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-grid a:hover { text-decoration: none; opacity: 0.85; }
.member-about { margin-bottom: 12px; }
.member-about-pairs { max-width: 420px; }

/* ---------- Member rows (follow lists, ignore list) ---------- */
.member-row { display: flex; gap: 12px; align-items: center; }
.member-row-main { flex: 1; min-width: 0; }
.member-row-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.member-row form { margin: 0; }
.member-cell { display: flex; gap: 10px; align-items: center; }

/* ---------- Profile posts ---------- */
.pp-form textarea { min-height: 64px; resize: vertical; }
.pp-form-buttons { margin-top: 8px; }
.pp-list { overflow: visible; }
.pp { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; background: var(--surface); }
.pp-list > .pp-item ~ .pp-item { border-top: 1px solid var(--border); }
.pp.is-moderated { background: color-mix(in srgb, var(--warning) 6%, var(--surface)); }
.pp.is-deleted > .pp-main > .pp-body { opacity: 0.6; }
.pp-main { min-width: 0; }
.pp-header { margin-bottom: 4px; }
.pp-body { margin-bottom: 6px; }
.pp-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.86em; color: var(--text-muted); }
.pp-time { color: var(--text-muted); }
.pp-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pp-actions a, .pp-actions button.linkish { color: var(--text-muted); font-size: inherit; }
.pp-actions a:hover, .pp-actions button.linkish:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; }
.pp-list > .pp-item ~ .pp-empty { display: none; }
details.pp-ignored { border-bottom: 0; }
details.pp-ignored[open] > summary { border-bottom: 1px dashed var(--border); }
.pp-more { padding: 12px 14px; text-align: center; border-top: 1px solid var(--border); }
.pp-edit { padding: 14px; background: var(--surface); }
.pp-edit.pp { display: block; }
.pp-edit textarea { margin-bottom: 8px; }
.pp-quote { padding: 10px 12px; margin-top: 6px; border-left: 3px solid var(--border); background: var(--quote-bg); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Reactions ---------- */
.pp-reactions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; min-height: 0; }
.pp-reactions:empty { display: none; }
.pp-reaction-summary { display: inline-flex; gap: 6px; align-items: center; }
.pp-reaction-emojis { letter-spacing: 1px; }
.pp-react > summary { color: var(--text-muted); }
.pp-react-menu { left: 0; right: auto; min-width: 170px; }
.pp-react-menu form { margin: 0; }
.pp-react-menu button.is-active { font-weight: 700; background: var(--surface-alt); }

/* ---------- Comments ---------- */
.pp-comments { margin-top: 8px; }
.pp-comments:empty { display: none; }
.pp-comment-list:empty { display: none; }
.pp-more-comments { display: block; font-size: 0.86em; padding: 6px 10px; background: var(--surface-alt); border-radius: var(--radius); margin-bottom: 4px; }
.pp-comment { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 8px 10px; background: var(--surface-alt); border-radius: var(--radius); margin-top: 4px; }
.pp-comment.is-moderated { background: color-mix(in srgb, var(--warning) 9%, var(--surface-alt)); }
.pp-comment.is-deleted .pp-comment-body { opacity: 0.6; }
.pp-comment-main { min-width: 0; }
.pp-comment-author { font-size: 0.92em; }
.pp-comment-body { font-size: 0.95em; }
.pp-comment.pp-edit { display: block; margin-top: 4px; border-bottom: 0; background: var(--surface-alt); }
details.pp-comment-ignored { margin-top: 4px; border: 0; }
details.pp-comment-ignored > summary { padding: 6px 10px; font-size: 0.86em; color: var(--text-muted); cursor: pointer; list-style: none; background: var(--surface-alt); border-radius: var(--radius); }
.pp-comment-form { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.pp-comment-form textarea { min-height: 34px; height: 34px; padding: 6px 10px; resize: none; transition: height .15s; }
.pp-comment-form textarea:focus, .pp-comment-form textarea:not(:placeholder-shown) { height: 68px; resize: vertical; }

/* ---------- Index widget ---------- */
.pp-recent-row { display: flex; gap: 10px; align-items: flex-start; }
.pp-recent-main { min-width: 0; }
.pp-recent-snippet { overflow-wrap: anywhere; }

/* ---------- Who's online ---------- */
.online-row { display: flex; gap: 12px; align-items: center; }
.online-main { flex: 1; min-width: 0; }
.online-anon { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }
.online-detail { overflow-wrap: anywhere; }
.online-totals { margin-top: 8px; }

@media (max-width: 650px) {
  .pp { grid-template-columns: 36px 1fr; padding: 10px 12px; }
  .pp-avatar .avatar { width: 36px; height: 36px; font-size: 16px; }
  .member-header .avatar--xl { width: 96px; height: 96px; font-size: 40px; }
  .member-row-stats { display: none; }
}

/* Alert texts (alerts/types/profile_post*.html). */
.alert-snippet { color: var(--text-muted); }
