
/* ===============================
   SKELETON LOADER
================================ */
.comment-skeleton {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  opacity: 0.7;
  animation: pulse 1.2s infinite;
}
.skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}
.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.skeleton-lines .line {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
}
.skeleton-lines .line.short { width: 30%; }
.skeleton-lines .line.long  { width: 70%; }

@keyframes pulse { 0%,100%{opacity:0.6;} 50%{opacity:1;} }


/* REACTION ANIMATION */
.reaction-bar span {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}
.reaction-bar span.active { transform: scale(1.2); }

.comment-actions span {
  margin-right: 12px;
  cursor: pointer;
}
.comment-actions span:hover {
  text-decoration: underline;
}
.reaction-bar span.active {
  background: rgba(13,110,253,.12);
  border-radius: 20px;
  padding: 2px 6px;
}

/* ======================================================
   COMMENT AVATARS
====================================================== */
#feed .d-flex > img.rounded-circle {
  width: 32px;               /* fixed width */
  height: 32px;              /* fixed height */
  object-fit: cover;         /* maintain aspect ratio */
  border-radius: 50%;        /* perfect circle */
  flex-shrink: 0;            /* prevent shrinking */
  vertical-align: top;       /* align to top of flex container */
}

/* Nested reply avatars */
#feed .d-flex > div > #replies-${c.id} img.rounded-circle,
#feed .d-flex > div > .d-flex > img.rounded-circle {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: top;
}

/* Comment container tweaks */
#feed [id^="comment-"] {
  align-items: flex-start; /* ensures avatars align at top */
}

/* Reply indentation */
#feed [id^="replies-"] {
  margin-left: 40px;       /* clean offset for nested comments */
}

/* Input boxes */
#feed input.form-control-sm {
  border-radius: 12px;
  padding-right: 40px;     /* space for send button */
}

/* Reply send button adjustment */
#feed button.position-absolute {
  top: 50%;
  transform: translateY(-50%);
}
/*Coment css*/
.comment-link:hover { text-decoration: underline; }

