/* @mention tags in rendered comments */
.comment-mention,
a.comment-mention {
  color: #0095f6;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.comment-mention:hover,
a.comment-mention:hover {
  text-decoration: underline;
}

/* Live @mention autocomplete */
.mention-autocomplete {
  position: fixed;
  z-index: 10050;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}
.mention-autocomplete.hidden { display: none; }

/* Alias class requested for mention popup */
.mention-dropdown {
  position: fixed;
  z-index: 10050;
}
.mention-dropdown.hidden { display: none; }

.mention-autocomplete-empty {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.mention-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--text, #050505);
}
.mention-autocomplete-item:hover,
.mention-autocomplete-item.active {
  background: var(--bg-page, #f0f2f5);
}
.mention-autocomplete-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--jtb-yellow-soft, #fff3bf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.mention-autocomplete-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mention-autocomplete-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mention-autocomplete-meta strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mention-autocomplete-meta small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

html[data-theme="dark"] .mention-autocomplete {
  background: rgba(36, 37, 38, 0.96);
  border-color: #3a3b3c;
}
html[data-theme="dark"] .mention-autocomplete-item:hover,
html[data-theme="dark"] .mention-autocomplete-item.active {
  background: #3a3b3c;
}
html[data-theme="dark"] .comment-mention,
html[data-theme="dark"] a.comment-mention {
  color: #4db5ff;
}
