/**
 * Styles pour l'autocomplétion des mentions @username
 */

.mention-autocomplete-dropdown {
  position: absolute;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
  min-width: 280px;
  display: none;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

.mention-item:last-child {
  border-bottom: none;
}

.mention-item:hover,
.mention-item.selected {
  background: #f3f4f6;
}

.mention-item.selected {
  background: #e8f5e9;
}

.mention-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mention-info {
  flex: 1;
  min-width: 0;
}

.mention-name {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-username {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Style pour les mentions dans le texte affiché */
.mention-link {
  color: #a064e0;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.mention-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Animation d'apparition */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mention-autocomplete-dropdown[style*="display: block"] {
  animation: fadeInDown 0.2s ease-out;
}

/* Scrollbar personnalisée */
.mention-autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.mention-autocomplete-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.mention-autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: #a064e0;
  border-radius: 10px;
}

.mention-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: #8b4fc9;
}
