/**
 * @file
 * Styles for standard comment display (book_comments and ebook_comments).
 */

.book-comment,
.ebook-comment {
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.book-comment:hover,
.ebook-comment:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Comment Header */
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  font-size: 15px;
  color: #14171a;
}

.comment-date {
  font-size: 13px;
  color: #657786;
}

/* Comment Tags */
.comment-tags {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Tag styles - using CSS classes from terms */
.comment-tag.tag-back-to-work {
  background-color: #fff3e0;
  color: #ef6c00;
}

.comment-tag.tag-rejected {
  background-color: #ffebee;
  color: #c62828;
}

/* Comment Content */
.comment-content {
  color: #14171a;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
  word-wrap: break-word;
}

.comment-content p {
  margin-bottom: 1em;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

/* Comment Actions */
.comment-actions {
  border-top: 1px solid #e1e8ed;
  padding-top: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.comment-reply-icon {
  font-size: 1rem;
  color: #666;
  margin-right: 0.25rem;
}

.comment-actions .links {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-actions a {
  color: #657786;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.comment-actions a:hover {
  color: #1da1f2;
}

/* Nested comments (replies) */
.indented {
  margin-left: 30px;
  padding-left: 20px;
  border-left: 2px solid #e1e8ed;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .book-comment,
  .ebook-comment {
    background: #15202b;
    border-color: #38444d;
  }
  
  .comment-author {
    color: #ffffff;
  }
  
  .comment-date {
    color: #8899a6;
  }
  
  .comment-content {
    color: #ffffff;
  }
  
  .comment-actions {
    border-top-color: #38444d;
  }
  
  .comment-actions a {
    color: #8899a6;
  }
  
  .comment-actions a:hover {
    color: #1da1f2;
  }
  
  .indented {
    border-left-color: #38444d;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .book-comment,
  .ebook-comment {
    padding: 12px 16px;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .indented {
    margin-left: 15px;
    padding-left: 10px;
  }
}
