/* Comment styles for public pages */
.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--lm-border-color);
}
.comment-item:last-child {
  border-bottom: none;
}
body[data-theme="dark"] .comment-item {
  border-bottom-color: var(--dm-border-color);
}

.comment-avatar-link {
  flex-shrink: 0;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.comment-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lm-border-color);
  color: var(--lm-text-muted-color);
  font-weight: 600;
  font-size: 16px;
}
body[data-theme="dark"] .comment-avatar-placeholder {
  background: var(--dm-border-color);
  color: var(--dm-text-muted-color);
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

a.comment-author {
  font-weight: 600;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
}
a.comment-author:hover {
  text-decoration: underline;
}

a.comment-username {
  color: var(--lm-text-muted-color);
  font-size: 13px;
  text-decoration: none;
}
a.comment-username:hover {
  text-decoration: underline;
}
body[data-theme="dark"] a.comment-username {
  color: var(--dm-text-muted-color);
}

.comment-date {
  color: var(--lm-text-muted-color);
  font-size: 13px;
}
.comment-date::before {
  content: "\00b7";
  margin-right: 6px;
}
body[data-theme="dark"] .comment-date {
  color: var(--dm-text-muted-color);
}

.comment-content {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

#comments-list {
  margin: 0;
  padding: 0;
}
