/* Comment styling */
.comment-item {
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.comment-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.reply-item {
  padding: 8px;
  border-left: 2px solid #e0e0e0;
}

.comment-avatar img {
  object-fit: cover;
}

.comment-like-btn {
  padding: 0;
  background: transparent;
  border: none;
  color: #6c757d;
  transition: color 0.2s;
}

.comment-like-btn:hover {
  color: #dc3545;
}

.comment-reply-btn {
  padding: 0;
  background: transparent;
  border: none;
  color: #6c757d;
  transition: color 0.2s;
}

.comment-reply-btn:hover {
  color: #0d6efd;
}

.heart-animation {
  animation: heart-pulse 0.5s ease-in-out;
}

@keyframes heart-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.comment-sort-container {
  background-color: #f8f9fa;
}

/* Reply form styling */
.reply-form-container {
  margin-top: 8px;
}

.reply-form-container input {
  border-radius: 20px;
  padding-left: 15px;
}

.reply-submit-btn {
  border-radius: 20px;
}

/* Comments container max height with scrolling */
.comments-container {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.comments-container::-webkit-scrollbar {
  width: 6px;
}

.comments-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.comments-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}
