/* ============================================================
   ELHASSANE STUDIO - AI Construction Manager
   الملف: public/css/task-comments.css - أنماط التعليقات
   ============================================================ */

.comment-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.dark .comment-item {
  background: #1a1a2e;
  border-color: #374151;
}

.comment-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.comment-reply {
  margin-right: 40px;
  border-right: 3px solid #3b82f6;
  border-radius: 0 12px 12px 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.dark .comment-avatar {
  background: #1e40af;
}

.comment-name {
  font-weight: 600;
  font-size: 14px;
}

.comment-time {
  font-size: 11px;
  color: #94a3b8;
}

.comment-edited {
  font-size: 10px;
  color: #94a3b8;
  font-style: italic;
}

.comment-body {
  font-size: 14px;
  line-height: 1.7;
  color: #1a202c;
}

.dark .comment-body {
  color: #e2e8f0;
}

.comment-body .mention-highlight {
  color: #3b82f6;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  padding: 0 4px;
  border-radius: 4px;
}

.dark .comment-body .mention-highlight {
  background: rgba(59, 130, 246, 0.2);
}

.comment-mentions {
  font-size: 11px;
  color: #3b82f6;
  margin-top: 4px;
}

.comment-actions {
  display: flex;
  gap: 4px;
}

.comment-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.comment-actions button:hover {
  background: #f1f5f9;
}

.dark .comment-actions button:hover {
  background: #2d2d5a;
}

.comment-replies {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.dark .comment-replies {
  border-color: #374151;
}

#mentionHint {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
