/* ═══════════════════════════════════════════════════════════════════════════
   RAN UNIVERSE — social.css
   Social platform: feed, post cards, profile header, bio effects, comments.
   Depends on: theme.css (CSS custom properties)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.social-page {
  min-height: 100vh;
  background: var(--bg-base);
  padding-bottom: var(--space-3xl);
}

.social-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.social-container--wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Profile header ─────────────────────────────────────────────────────── */
.profile-banner {
  height: 80px;
  background: linear-gradient(135deg,
    rgba(232,197,71,.35) 0%,
    rgba(110,72,170,.3) 50%,
    rgba(232,197,71,.2) 100%);
  position: relative;
  overflow: hidden;
}

.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-card) 100%);
}

.profile-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.profile-header-body {
  padding: 0 var(--space-xl) var(--space-xl);
}

.profile-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: -48px;
  margin-bottom: var(--space-md);
}

.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.profile-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-bright));
  color: #1a1206;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  background: var(--gold-accent);
  color: #1a1206;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .7rem;
  transition: transform var(--trans-fast), background var(--trans-fast);
}
.profile-avatar-edit:hover { transform: scale(1.15); background: var(--gold-bright); }

.profile-actions { display: flex; gap: 8px; align-items: center; padding-top: 52px; }

.profile-display-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.profile-display-name--vip {
  background: linear-gradient(90deg, var(--gold-bright), #ff9f43, var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-char-name {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-char-name::before {
  content: '⚔️';
  font-size: .75rem;
}

.profile-bio {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  max-width: 520px;
  word-break: break-word;
}

.profile-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
}
.stat-item--clickable { cursor: pointer; }
.stat-item--clickable:hover .stat-num,
.stat-item--clickable:hover .stat-label {
  color: var(--gold-accent);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  transition: color var(--trans-fast);
  line-height: 1;
}

.stat-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color var(--trans-fast);
}


/* ── Premium badge (formerly "VIP") ─────────────────────────────────────────── */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: linear-gradient(90deg, #b8860b, var(--gold-accent), #b8860b);
  background-size: 200%;
  animation: vip-shimmer 3s linear infinite;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 800;
  color: #1a1206;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Admin badge ─────────────────────────────────────────────────────────────── */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: linear-gradient(90deg, #7b2d8b, #a855c8, #7b2d8b);
  background-size: 200%;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

@keyframes vip-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── Buttons (social) ───────────────────────────────────────────────────── */
.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--trans-fast);
  border: none;
  white-space: nowrap;
}
.btn-follow--follow {
  background: var(--gold-accent);
  color: #1a1206;
}
.btn-follow--follow:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-follow--following {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-follow--following:hover {
  background: rgba(220,38,38,.12);
  color: #f87171;
  border-color: rgba(220,38,38,.3);
}

/* ── Post composer ──────────────────────────────────────────────────────── */
.composer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.composer-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.composer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.composer-area {
  flex: 1;
  min-height: 72px;
  max-height: 480px;
  background: none;
  border: none;
  outline: none;
  resize: none;
  overflow-y: hidden;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%;
  transition: height 0.1s ease;
}

.composer-area::placeholder { color: var(--text-muted); }

.composer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-md) 0;
}

/* Image previews in composer */
.composer-images {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.composer-images--1 { grid-template-columns: 1fr; }
.composer-images--2 { grid-template-columns: 1fr 1fr; }
.composer-images--3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.composer-images--3 .ci-thumb:first-child { grid-row: span 2; }
.composer-images--4 { grid-template-columns: 1fr 1fr; }

.ci-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-elevated);
  cursor: pointer;
}

.ci-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ci-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  opacity: 0;
  transition: opacity var(--trans-fast);
}
.ci-thumb:hover .ci-remove { opacity: 1; }

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.composer-tool-btn {
  min-width: 34px; height: 34px;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans-fast);
  font-size: .85rem;
}
.composer-tool-btn:hover { background: var(--bg-elevated); color: var(--gold-accent); }
.composer-tool-btn:disabled { opacity: .4; cursor: not-allowed; }

.composer-char-count {
  font-size: .75rem;
  color: var(--text-muted);
  margin-right: var(--space-sm);
}
.composer-char-count--warn { color: var(--warning); }
.composer-char-count--over { color: var(--error); }

/* ── Post card — seamless (Twitter/X style) ──────────────────────────────── */
.post-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
  box-shadow: none;
  animation: fade-in .2s ease both;
  padding: var(--space-sm) 0 0;
}
.post-card:last-child { border-bottom: none; }

.post-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0 var(--space-lg) 4px;
}

.post-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
  cursor: pointer;
  margin-top: 2px;
}

.post-avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-dim));
  color: #1a1206;
  font-weight: 900;
  font-size: .9rem;
}

.post-author { flex: 1; min-width: 0; }

.post-display-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}
.post-display-name:hover { color: var(--gold-accent); }

.post-char-name {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.post-time {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.post-menu-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans-fast);
  flex-shrink: 0;
  font-size: 1.1rem;
  letter-spacing: .05em;
}
.post-menu-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* Post body text */
.post-body {
  padding: 2px var(--space-lg) var(--space-xs);
  font-size: .875rem;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: break-word;
}
/* Collapsed state: max-height works for ALL content including lists/block elements */
.post-body--collapsed {
  max-height: 5.8em;  /* ~4 lines at 1.45 line-height */
  overflow: hidden;
}

/* Read more / collapse toggle */
.post-read-more {
  display: block;
  color: var(--gold-accent);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 var(--space-lg) var(--space-xs);
  background: none;
  border: none;
  text-align: left;
}
.post-read-more:hover { opacity: .8; }

/* Post image — single: natural ratio, max 290px tall */
.post-images { margin: var(--space-xs) 0; overflow: hidden; }

.post-images--1 {
  display: block;
  cursor: pointer;
  background: var(--bg-elevated);
  max-height: 290px;
  overflow: hidden;
}
.post-images--1 img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: opacity .2s;
}
.post-images--1 img:hover { opacity: .9; }

/* 2–4 images: square grid */
.post-images--2,
.post-images--3,
.post-images--4 { display: grid; gap: 2px; }
.post-images--2 { grid-template-columns: 1fr 1fr; }
.post-images--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-images--3 .pi:first-child { grid-row: span 2; }
.post-images--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.pi { aspect-ratio: 1; max-height: 230px; overflow: hidden; cursor: pointer; background: var(--bg-elevated); }
.pi img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; display: block; }
.pi:hover img { transform: scale(1.04); }

/* Post actions bar */
.post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--space-md) var(--space-sm);
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  border: none;
  background: none;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--trans-fast);
}

.post-action-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }

.post-action-btn--liked {
  color: #f87171;
}
.post-action-btn--liked:hover { background: rgba(248,113,113,.1); }

.post-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Comment section ─────────────────────────────────────────────────────── */
.comments-section {
  padding: 0 var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-sm);
}

.comment-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  animation: fade-in .2s ease both;
}

.comment-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: #1a1206;
}

.comment-bubble {
  flex: 1;
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  word-break: break-word;
}

.comment-author {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 2px;
}

.comment-body {
  font-size: .85rem;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: 4px;
}

.comment-time {
  font-size: .7rem;
  color: var(--text-muted);
}

.comment-reply-btn,
.comment-delete-btn {
  font-size: .7rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  transition: color var(--trans-fast);
}
.comment-reply-btn:hover { color: var(--gold-accent); }
.comment-delete-btn:hover { color: #f87171; }

/* Nested replies */
.comment-replies {
  margin-left: 40px;
  border-left: 2px solid var(--border-subtle);
  padding-left: var(--space-sm);
}

/* Comment input */
.comment-input-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding-top: var(--space-sm);
}

.comment-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text-primary);
  outline: none;
  resize: none;
  min-height: 38px;
  transition: border-color var(--trans-fast);
}
.comment-input:focus { border-color: var(--gold-accent); }
.comment-input::placeholder { color: var(--text-muted); }

.comment-submit-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--gold-accent);
  color: #1a1206;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--trans-fast);
}
.comment-submit-btn:hover { background: var(--gold-bright); transform: scale(1.05); }
.comment-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Bio rich effects (VIP) ─────────────────────────────────────────────── */
.bio-rainbow {
  background: linear-gradient(90deg,
    #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: bio-rainbow 3s linear infinite;
  font-weight: inherit;
}

@keyframes bio-rainbow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.bio-tw-wrap {
  display: inline;
}

.bio-tw-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--gold-accent);
  animation: bio-cursor 0.7s step-end infinite;
  margin-left: 1px;
}

@keyframes bio-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Bio toolbar (edit profile, VIP) ────────────────────────────────────── */
.bio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 8px;
}

.bio-tb-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: .75rem;
  transition: all var(--trans-fast);
  min-width: 28px;
  text-align: center;
}
.bio-tb-btn:hover { background: var(--gold-dim); border-color: var(--gold-accent); color: var(--gold-accent); }

.bio-tb-hint {
  font-size: .7rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── Setup wizard (first-time profile creation) ─────────────────────────── */
.setup-wizard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  text-align: center;
  max-width: 480px;
  margin: var(--space-2xl) auto;
}

.setup-wizard-icon { font-size: 3rem; margin-bottom: var(--space-md); }
.setup-wizard-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: var(--text-primary); margin-bottom: var(--space-sm); }
.setup-wizard-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: var(--space-xl); }

.dn-input-wrap {
  position: relative;
  margin-bottom: var(--space-md);
}

.dn-status {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .75rem;
  font-weight: 700;
}
.dn-status--ok   { color: var(--success); }
.dn-status--taken { color: var(--error); }
.dn-status--checking { color: var(--text-muted); }

/* ── Follow/Followers modal ─────────────────────────────────────────────── */
.follow-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity var(--trans-fast);
}
.follow-list-item:hover { opacity: .8; }
.follow-list-item:last-child { border-bottom: none; }

.follow-list-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.follow-list-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-primary);
}

.follow-list-char {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Feed tabs ───────────────────────────────────────────────────────────── */
.feed-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: var(--space-lg);
  gap: 4px;
}

.feed-tab {
  flex: 1;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  border: none;
  background: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans-fast);
  text-align: center;
}
.feed-tab.active {
  background: var(--bg-elevated);
  color: var(--gold-accent);
  box-shadow: var(--shadow-sm);
}

/* ── Lightbox (image zoom) ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fade-in .2s ease both;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(0,0,0,.8);
}

.lightbox-close {
  position: fixed;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans-fast);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ── Empty / loading states ─────────────────────────────────────────────── */
.feed-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-muted);
}
.feed-empty-icon { font-size: 3rem; margin-bottom: var(--space-md); }
.feed-empty-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-secondary); }

.post-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.sk-line {
  height: 14px;
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--border) 50%, var(--bg-elevated) 100%);
  background-size: 200%;
  border-radius: 99px;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  margin-bottom: 10px;
}

.sk-line--short { width: 40%; }
.sk-line--med   { width: 65%; }
.sk-line--long  { width: 90%; }

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

/* ── Modal overlay (social pages) ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fade-in 0.2s ease both;
}

/* ── Social navbar drawer (mobile) ──────────────────────────────────────── */
/* Fixes the duplicate nav links showing on desktop in social pages */
.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.navbar-links .nav-link {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 4px;
  transition: color var(--trans-fast);
}
.navbar-links .nav-link:hover,
.navbar-links .nav-link.active { color: var(--gold-accent); }

.navbar-drawer {
  display: none;  /* Hidden by default — only show on mobile */
  flex-direction: column;
  padding: var(--space-md) var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border);
  gap: 4px;
}
.navbar-drawer.open { display: flex; }
.navbar-drawer a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--trans-fast);
}
.navbar-drawer a:hover,
.navbar-drawer a.active { color: var(--gold-accent); background: var(--gold-dim); }

.hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hamburger svg { width: 18px; height: 18px; }

/* ── Profile avatar z-index fix ─────────────────────────────────────────── */
/* Ensures avatar renders above the banner gradient overlay */
#prof-avatar-wrap,
.profile-avatar-row { position: relative; z-index: 1; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .social-container, .social-container--wide {
    padding: 0 var(--space-sm);
  }
  .profile-header-body { padding: 0 var(--space-md) var(--space-lg); }
  .profile-stats { gap: var(--space-lg); }
  .composer { padding: var(--space-md); }
  .post-header, .post-body, .post-actions { padding-left: var(--space-md); padding-right: var(--space-md); }
  .comments-section { padding-left: var(--space-md); padding-right: var(--space-md); }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN POST TOOLBAR  (.apt)
   ═══════════════════════════════════════════════════════════ */
.apt {
  background: linear-gradient(135deg, rgba(123,45,139,.12) 0%, rgba(168,85,200,.08) 100%);
  border: 1px solid rgba(168,85,200,.3);
  border-radius: var(--radius-lg);
  padding: 8px 10px 6px;
  margin-bottom: 8px;
}
.apt-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.apt-row::-webkit-scrollbar { display: none; }
.apt-group {
  display: flex;
  align-items: center;
  gap: 2px;
}
.apt-sep {
  width: 1px;
  height: 20px;
  background: rgba(168,85,200,.25);
  margin: 0 4px;
  flex-shrink: 0;
}
.apt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.apt-btn:hover {
  background: rgba(168,85,200,.18);
  color: #c678e8;
  border-color: rgba(168,85,200,.35);
}
.apt-btn:active { transform: scale(.93); }
.apt-size-sm { font-size: 0.7rem; }
.apt-size-lg { font-size: 0.85rem; }
.apt-rainbow { font-size: 0.9rem; }
.apt-stream  { color: #a855c8; }
.apt-hint {
  display: block;
  font-size: 0.63rem;
  color: rgba(168,85,200,.7);
  margin-top: 5px;
  letter-spacing: .02em;
}
.apt-preview-btn {
  width: auto !important;
  padding: 0 10px !important;
  gap: 4px;
  color: rgba(168,85,200,.9) !important;
  border-color: rgba(168,85,200,.3) !important;
  background: rgba(168,85,200,.08) !important;
  font-size: 0.72rem;
}
.apt-preview-btn:hover {
  background: rgba(168,85,200,.22) !important;
  color: #c678e8 !important;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN RICH POST CONTENT
   ═══════════════════════════════════════════════════════════ */
.post-text-small { font-size: 0.8em; }
.post-text-big   { font-size: 1.25em; }

.post-list {
  margin: 6px 0 6px 20px;
  padding: 0;
  line-height: 1.7;
}
.post-list li { margin-bottom: 2px; }
.post-list li:last-child { margin-bottom: 0; }

/* Make admin posts stand out subtly */
.post-card.post-card--admin .post-body,
.mini-post.mini-post--admin .mini-post-body {
  line-height: 1.6;
}
