/* --- Comment Section --- */
#comments-section {
  width: 90%;
  max-width: 1024px;
  margin: 2rem auto;
  font-family: 'Inter', sans-serif;
  color: #111;
}

#comments-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid #333;
  padding-bottom: 0.5rem;
}

/* --- Comment Form --- */
#comment-form,
.reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

#comment-form textarea,
.reply-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  min-height: 60px;
  font-size: 0.95rem;
  background: #fafafa;
  color: #111;
  transition: border 0.2s, box-shadow 0.2s;
}

#comment-form textarea:focus,
.reply-form textarea:focus {
  border-color: #555;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  outline: none;
}

#comment-form button,
.reply-form button {
  align-self: flex-start;
  background: #111;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
}

#comment-form button:hover,
.reply-form button:hover {
  background: #333;
}

/* --- Single Comment --- */
.comment {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #555;
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.comment .comment-replies {
  margin-left: 2rem;
  margin-top: 0.75rem;
  border-left: 1px solid #ddd;
  padding-left: 1rem;
}

/* --- Buttons --- */
.reply-btn,
.reaction-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: #555;
  margin-right: 0.5rem;
  transition: color 0.2s;
}

.reply-btn:hover,
.reaction-btn:hover {
  color: #111;
}

/* --- Reactions --- */
.reaction-count {
  font-size: 0.8rem;
  color: #777;
  margin-left: 0.2rem;
}

/* --- Pagination --- */
.comments-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.comments-pagination .page-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s;
}

.comments-pagination .page-btn:hover {
  background: #f0f0f0;
  border-color: #888;
}

/* --- Mention styling --- */
.mention {
  font-weight: 500;
  background: var(--bg-transp);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.highlight-comment--flash {
  background: var(--bg-transp);
  transition: background 1s ease;
}
