/* Comments */
.comments_section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #3c3d3f;
}

.comments_section h3 {
  margin: 0 0 12px;
  color: rgb(240, 130, 222);
  font-size: 18px;
}

.comment_form {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.comment_form textarea {
  resize: vertical;
  font-family: inherit;
}

.comment_submit_btn {
  align-self: flex-end;
  padding: 6px 14px;
  font-size: 14px;
}

.comments_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment_item {
  padding: 10px 14px;
  background: #1e1f21;
  border: 1px solid #3c3d3f;
  border-radius: 8px;
  animation-name: commentIn;
  animation-duration: 0.3s;
  animation-timing-function: ease;
}

/* Keyframe animation adapted from
   https://www.w3schools.com/css/css3_animations.asp */
@keyframes commentIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.comment_header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment_author {
  font-size: 14px;
  font-weight: bold;
}

.comment_date {
  margin-right: auto;
  color: #888888;
  font-size: 11px;
}

.delete_comment_btn {
  padding: 0 4px;
  border: none;
  background: none;
  color: #ff4d4d;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.delete_comment_btn:hover {
  color: #ff1a1a;
}

.comment_body {
  color: #d0d0d0;
  font-size: 13px;
  overflow-wrap: break-word;
}

.no_comments {
  padding: 12px 0;
  color: #888888;
  font-size: 13px;
  text-align: center;
}

.comment_pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.page_btn {
  padding: 6px 10px;
  font-size: 12px;
}
