/* ───────────────────────────────────────────────────────────────────────────
   feed-comments.css
   ───────────────────────────────────────────────────────────────────────────
   Comment thread styling shared by every feed card type. Follows the shape
   people already recognise from Facebook and X: a quiet action row under the
   content, and — once opened — avatar-plus-bubble rows with the composer at
   the bottom. Dark palette throughout; nothing here introduces new colours,
   it all comes from bpc-brand.css variables.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Action row ──────────────────────────────────────────────────────────── */
.fc-actions {
  display: flex; align-items: center; gap: 4px;
  margin-top: 12px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.fc-action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none; cursor: pointer;
  padding: 8px 12px; border-radius: 8px;
  color: var(--dim); font-family: inherit; font-size: var(--fs-ui);
  line-height: 1; transition: background 0.15s, color 0.15s;
}
.fc-action-btn:hover { background: var(--surface); color: var(--off-white); }
.fc-action-btn.open { color: var(--off-white); }
.fc-action-icon { font-size: var(--fs-body-sm); line-height: 1; }
.fc-action-label { letter-spacing: 0.02em; }

/* Liked state — the heart fills with the brand red and the count comes with
   it, so the state is readable at a glance without relying on colour alone
   (the glyph itself changes weight via the scale). */
.fc-like.liked { color: var(--red); }
.fc-like.liked .fc-action-icon { transform: scale(1.12); }
.fc-like .fc-action-icon { transition: transform 0.12s ease; display: inline-block; }
.fc-like:active .fc-action-icon { transform: scale(0.9); }

/* Compact variant sits in a comment's meta row next to the timestamp. */
.fc-like-compact {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: var(--fs-caption); color: var(--dim);
  line-height: 1;
}
.fc-like-compact:hover { color: var(--off-white); }
.fc-like-compact.liked { color: var(--red); }
.fc-like-compact .fc-action-icon { font-size: var(--fs-small); }

/* ── Thread ──────────────────────────────────────────────────────────────── */
.fc-panel { margin-top: 4px; }
.fc-list { display: flex; flex-direction: column; gap: 10px; }
.fc-empty {
  color: var(--dim); font-size: var(--fs-ui); padding: 6px 2px 10px;
}

.fc-comment { display: flex; gap: 8px; align-items: flex-start; }
.fc-comment-main { min-width: 0; flex: 1; }

.fc-avatar,
.fc-avatar-ph {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; background: var(--surface); flex-shrink: 0;
}
.fc-avatar-ph {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-caption);
  color: var(--dim);
}
.fc-avatar-link { flex-shrink: 0; display: inline-flex; }

/* The bubble is what makes a comment read as a comment rather than another
   paragraph of the post. Rounded, slightly lifted off the card background. */
.fc-bubble {
  background: var(--surface);
  border-radius: 14px;
  padding: 8px 12px;
  display: inline-block; max-width: 100%;
  box-sizing: border-box;
}
.fc-author {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-small); letter-spacing: 0.03em;
  color: var(--white); margin-bottom: 2px;
}
.fc-body {
  font-size: var(--fs-ui); color: var(--off-white); line-height: 1.4;
  overflow-wrap: anywhere;
}

.fc-meta {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 0 0 12px;
}
.fc-time { font-size: var(--fs-caption); color: var(--dim); }
.fc-delete {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: var(--fs-caption); color: var(--dim);
}
.fc-delete:hover { color: var(--loss, var(--red)); }
.fc-delete:disabled { opacity: 0.5; cursor: default; }

/* ── Composer ────────────────────────────────────────────────────────────── */
.fc-composer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
}
.fc-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.15s;
}
.fc-field:focus-within { border-color: var(--border-light); }
.fc-input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--off-white); font-family: inherit; font-size: var(--fs-ui);
  padding: 7px 0;
}
.fc-input::placeholder { color: var(--dim); }
.fc-send {
  flex-shrink: 0;
  background: var(--red); color: #fff; border: none;
  border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 16px;
  transition: opacity 0.15s;
}
.fc-send:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 800px) {
  .fc-action-btn { padding: 10px 12px; font-size: var(--fs-ui); }
  .fc-send { padding: 9px 14px; }
}
