/* fcc-shout-comments — Shout-backed comment panel shared styles.
 * Paired with /shared/fcc-shout-comments.js.
 * Relies on CSS vars (--panel, --text, --accent, etc.) with sensible fallbacks.
 */

/* Comments button — consistent across all consumers */
.commentBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--dim, #9aa3b2);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.commentBtn:hover {
  background: var(--panel2, #15171a);
  color: var(--text, #e5e5e5);
}

/* Backdrop + panel */
.fcc-cmt-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 9499;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.fcc-cmt-backdrop.visible { opacity: 1; pointer-events: all; }

.fcc-cmt-panel {
  position: fixed; top: 0; right: 0;
  width: min(420px, 90vw);
  height: 100dvh;
  background: var(--panel, #111214);
  color: var(--text, #e5e5e5);
  border-left: 1px solid var(--border, #2a2a2a);
  z-index: 9500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.5);
  font-family: var(--sans, system-ui, sans-serif);
}
.fcc-cmt-panel.open { transform: translateX(0); }

/* Header */
.fcc-cmt-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line, #1e1e1e);
  flex-shrink: 0;
}
.fcc-cmt-title {
  font-size: .9rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fcc-cmt-close {
  background: none;
  border: none;
  color: var(--dim, #9aa3b2);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.fcc-cmt-close:hover { color: var(--text, #e5e5e5); }

/* Compose */
.fcc-cmt-compose {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line, #1e1e1e);
  flex-shrink: 0;
}
.fcc-cmt-compose-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.fcc-cmt-charcount {
  font-size: .7rem;
  color: var(--muted, #6b7280);
}
.fcc-cmt-textarea {
  width: 100%;
  min-height: 56px;
  background: var(--panel2, #15171a);
  border: 1.5px solid var(--border, #2a2a2a);
  border-radius: .35rem;
  padding: .45rem .55rem;
  font-size: .8rem;
  color: var(--text, #e5e5e5);
  font-family: var(--sans, system-ui, sans-serif);
  resize: vertical;
  box-sizing: border-box;
}
.fcc-cmt-textarea:focus {
  border-color: var(--accent, #c7d2fe);
  outline: none;
}
.fcc-cmt-send {
  padding: .35rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  background: var(--accent, #c7d2fe);
  color: var(--bg, #0c0d0f);
  border: none;
  border-radius: .3rem;
  cursor: pointer;
  font-family: var(--sans, system-ui, sans-serif);
}
.fcc-cmt-send:hover { background: var(--accent2, #e0e7ff); }
.fcc-cmt-send:disabled { opacity: .65; cursor: default; }

/* Feed */
.fcc-cmt-feed {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 1rem;
}
.fcc-cmt-empty {
  font-size: .85rem;
  color: var(--muted, #6b7280);
  padding: 1rem;
  text-align: center;
}
.fcc-cmt-card {
  padding: .6rem 0;
  border-bottom: 1px solid var(--line, #1e1e1e);
}
.fcc-cmt-card:last-child { border-bottom: none; }
.fcc-cmt-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}
.fcc-cmt-author {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent, #c7d2fe);
  text-decoration: none;
}
.fcc-cmt-author:hover { text-decoration: underline; }
.fcc-cmt-time {
  font-size: .68rem;
  color: var(--muted, #6b7280);
}
.fcc-cmt-body {
  font-size: .85rem;
  color: var(--text, #e5e5e5);
  line-height: 1.5;
}
.fcc-cmt-body a { color: var(--accent, #c7d2fe); }
.fcc-cmt-actions {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.fcc-cmt-stats {
  font-size: .72rem;
  color: var(--muted, #6b7280);
}
/* Report / Block / Mute open the shout's own page on Shout, where those
   controls live. Quiet by default: present for anyone who needs them,
   never competing with the comment itself. */
.fcc-cmt-safety {
  display: inline-flex;
  gap: 10px;
  margin-left: auto;
}
.fcc-cmt-safety-link {
  font-size: .72rem;
  color: var(--muted, #6b7280);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.fcc-cmt-safety-link:hover,
.fcc-cmt-safety-link:focus-visible {
  color: var(--text, #e5e5e5);
  border-bottom-color: currentColor;
}
