/* ComputingArts Comments Styles */

#comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.comments-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.comments-loading,
.comments-error,
.no-comments {
  color: #666;
  font-style: italic;
}

.comments-list {
  margin-bottom: 2rem;
}

.comment {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #007acc;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.comment-author {
  color: #333;
}

.comment-date {
  color: #888;
  font-size: 0.85rem;
}

.comment-content {
  color: #444;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.reply-btn {
  background: none;
  border: none;
  color: #007acc;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.reply-btn:hover {
  text-decoration: underline;
}

.reply-form-container {
  margin-top: 1rem;
}

.comment-form-wrapper {
  margin-top: 2rem;
}

.comment-form-wrapper h4 {
  margin-bottom: 1rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #007acc;
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.1);
}

.comment-form textarea {
  resize: vertical;
  min-height: 100px;
}

.comment-form button[type="submit"] {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form button[type="submit"]:hover {
  background: #005fa3;
}

.comment-form button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .comment {
    background: #1e1e1e;
    border-left-color: #4fc3f7;
  }
  
  .comment-author {
    color: #e0e0e0;
  }
  
  .comment-content {
    color: #ccc;
  }
  
  .comment-form input,
  .comment-form textarea {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
  }
}
