/* ==========================================================
   🧩 Urdu News Point — Comment System PRO+
   Modules: Badges | Profile Hover | Reactions
   Author: Malik Masood
   RTL + Responsive + Polished Animation Design
========================================================== */

/* --- 1️⃣ Badges (Admin / Verified / Reader / New) --- */

.comment-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  margin-inline-start: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  vertical-align: middle;
  transition: transform 0.2s, box-shadow 0.2s;
}

.comment-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.comment-badge.admin {
  background: linear-gradient(145deg, #ef4444, #b91c1c);
}
.comment-badge.verified {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
}
.comment-badge.reader {
  background: linear-gradient(145deg, #059669, #047857);
}
.comment-badge.new {
  background: linear-gradient(145deg, #f59e0b, #d97706);
}


/* Hover trigger */
.urdu-author {
  position: relative;
  cursor: pointer;
}
.urdu-author:hover + .comment-profile-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- 3️⃣ Reactions (Full Polish Version) --- */

.comment-reactions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
  direction: rtl;
}

.comment-reactions .react {
  position: relative;
  cursor: pointer;
  text-align: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.comment-reactions .react span {
  font-size: 22px;
  display: block;
  line-height: 1;
}

.comment-reactions .react b.count {
  font-size: 12px;
  color: #555;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1;
}

.comment-reactions .react:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.comment-reactions .react.active {
  background: #fee2e2;
  color: #dc2626;
  box-shadow: 0 0 10px rgba(220,38,38,0.3);
}

.comment-reactions.locked .react:not(.active) {
  opacity: 0.4;
  pointer-events: none;
}

/* Tooltips */
.comment-reactions .react:hover::after {
  content: attr(title);
  position: absolute;
  top: -34px;
  background: #111;
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0.9;
  pointer-events: none;
}

/* Reaction summary (optional) */
.reaction-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  color: #374151;
}

.reaction-summary span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* --- 4️⃣ Responsive Polish --- */
@media (max-width:600px){
  .comment-reactions {
    justify-content: space-around;
    gap: 7px;
  }
  .comment-reactions .react {
    width: 45px;
    height: 45px;
  }
  .comment-reactions .react span { font-size: 20px; }
  .comment-profile-card {
    width: 180px;
  }
}

