/* ============================================================
   COMMENTS — Salon Literary Design
   ============================================================ */

.new-comment {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--cream);
  border-radius: 3px;
  border: 1px solid var(--border-soft);
  border-top: 2px solid var(--border-warm);
}

.new-comment label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 14px;
  margin-bottom: 6px;
}

.new-comment select,
.new-comment textarea,
.new-comment input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.97rem;
  background: var(--vellum);
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}
.new-comment select:focus,
.new-comment textarea:focus,
.new-comment input[type="text"]:focus {
  border-color: var(--sepia);
  box-shadow: 0 0 0 3px rgba(139,94,53,0.1);
}

.new-comment button {
  margin-top: 12px;
  padding: 9px 22px;
  background: var(--ink-soft);
  color: var(--parchment);
  border: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease-spring);
}
.new-comment button:hover {
  background: var(--sepia);
  transform: translateY(-1px);
}

/* ============================================================
   COMMENTS LIST
   ============================================================ */
#commentsList { margin-top: 24px; }

.comment {
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  border-left: 2px solid var(--border-warm);
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--cream);
  transition: border-left-color 0.2s;
}
.comment:hover { border-left-color: var(--sepia); }

.comment.reply {
  margin-left: 28px;
  background: var(--vellum);
  border-left-color: var(--border);
}
.comment.reply:hover { border-left-color: var(--sepia-light); }

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.comment-author {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sepia);
  font-weight: 500;
}

.comment-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.comment-actions button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  padding: 3px 10px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.15s;
}
.comment-actions button:hover {
  background: var(--parchment-mid);
  border-color: var(--sepia);
  color: var(--sepia);
}

.delete-comment-form,
.delete-reply-comment-form {
  all: unset;
  display: inline;
}

.comment-body {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.comment-body.deleted {
  font-style: italic;
  color: var(--ink-muted);
  opacity: 0.6;
}

/* Reply input */
.reply-input {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--vellum);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
}
.reply-input textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--cream);
  resize: vertical;
  outline: none;
}
.reply-input textarea:focus {
  border-color: var(--sepia);
}
.reply-input button {
  margin-top: 8px;
  padding: 7px 16px;
  background: var(--ink-soft);
  color: var(--parchment);
  border: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.reply-input button:hover { background: var(--sepia); }

.hidden { display: none; }

.toggle-replies-btn {
  margin-top: 8px;
  background: transparent;
  color: var(--sepia-light);
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  transition: color 0.15s;
}
.toggle-replies-btn:hover {
  color: var(--sepia);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .comment-header { flex-direction: column; align-items: flex-start; }
  .comment-actions { flex-wrap: wrap; gap: 5px; }
  .comment.reply { margin-left: 14px; }
}
