/* Clip landing page - structural/page-specific rules only. Shared
   header/footer/button/typography styles come from styles.css, loaded
   before this file, so this only needs to define what's unique to a
   single clip page: the card, the claim dialog, comments. Every class
   name here matches what clip.js targets - restyled, not renamed. */

main {
    width: min(calc(100% - 40px), 680px);
    margin: 0 auto;
    padding: 48px 0 90px;
}

.card {
    padding: 24px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--border);
    border-radius: 19px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.profile-link {
    color: inherit;
    text-decoration: none;
}

.profile-link:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--ink);
    font-weight: 800;
    font-size: 13.5px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.avatar {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg);
    font-size: 11px;
    font-weight: 800;
}

blockquote.quote {
    margin: 0 0 18px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
}

.commentary {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.source-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.source-box a {
    color: var(--accent-2);
    font-weight: 800;
    text-decoration: none;
}

.source-box a:hover {
    text-decoration: underline;
}

.meta {
    margin-bottom: 16px;
    color: var(--subtle);
    font-size: 12.5px;
}

.claim-banner {
    padding: 11px 15px;
    background: rgba(240, 192, 105, 0.1);
    border: 1px solid rgba(240, 192, 105, 0.28);
    border-radius: 12px;
    color: #f0c069;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn.claim {
    background: rgba(240, 192, 105, 0.08);
    color: #f0c069;
    border: 1px solid rgba(240, 192, 105, 0.3);
}

.btn.claim:hover {
    background: rgba(240, 192, 105, 0.14);
}

.comments-section {
    margin-top: 28px;
}

.comments-section h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 15px;
}

/* Each comment is its own bordered card (avatar + name + time on top,
   body below) instead of a flat hairline-divided list - matching the
   extension's own clip-card look. */

.comments {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-delete {
  margin-left: auto;

  padding: 3px 9px;

  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;

  color: var(--ink-dim);

  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.comment-delete:hover {
  border-color: var(--alert);
  color: var(--alert);
}

.comment-delete:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 800;
}

.comment-author { color: var(--ink); font-weight: 800; font-size: 14px; }

.comment-time {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.comment-body {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  /* a long unbroken string (a pasted link, no-space text, etc.) wraps
     inside the card instead of overflowing it */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* System comments (e.g. "a rights claim was filed on this clip") post
   under a ClipRoots-owned identity instead of a user profile - flagged
   visually with the same amber tone already used for claim banners so
   it reads as moderation activity, not a real user's avatar/initials. */

.comment.comment-system {
  background: rgba(240, 192, 105, 0.06);
  border-color: rgba(240, 192, 105, 0.28);
}

.comment-avatar-system {
  background: linear-gradient(135deg, #f0c069, #d99a3d);
  color: #1a1408;
  font-size: 14px;
}

.comment-system .comment-author { color: #f0c069; }

.comments-empty {
  padding: 32px 0;
  color: var(--ink-dim);
  font-size: 14px;
  text-align: center;
}

/* ---------- comment composer / sign-in ---------- */

#comment-composer { margin-top: 4px; }

.comment-form, .signin-form {
  padding: 16px 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.comment-textarea {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.signin-email {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  color: var(--ink);
  font: inherit;
}

.comment-textarea:focus, .signin-email:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.comment-signed-in-as, .signin-hint {
  color: var(--ink-dim);
  font-size: 12.5px;
}

.signin-status, .comment-error {
  margin: 10px 0 0;
  font-size: 12.5px;
}
.comment-error { color: var(--alert); }
.signin-status { color: var(--ink-dim); }

.signin-accounts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.signin-show-accounts { margin-top: 8px; }

/* ---------- report a complaint / issue dialog ---------- */

.clip-claim-row { margin-top: 4px; }

dialog.claim-dialog {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: transparent;
  color: var(--ink);
}
dialog.claim-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.claim-dialog-inner {
  width: min(calc(100vw - 48px), 420px);
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border-radius: 19px;
}

.claim-dialog-inner h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
}

.claim-dialog-subtext {
  margin: 0 0 18px;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.55;
}

.claim-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
