/* Overrides quill-mention's built-in light-theme CSS (quill.mention.min.css)
   to match the site's dark/gold design language. Loaded after it, same as
   every other quill/*.css override in this folder. */

.mention-suggestion-container {
    background: var(--bg-card, #141414);
    border: 1px solid var(--border-glass, rgba(212, 168, 83, 0.2));
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    width: 260px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 9001;
}

.ql-mention-loading {
    padding: 10px 14px;
    color: var(--text-muted, var(--text-secondary));
    font-size: 13px;
}

.mention-suggestion-list {
    margin: 0;
    padding: 4px;
    list-style: none;
}

.mention-suggestion-list-item {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-primary, #f0ece2);
    font-size: 13px;
    line-height: 1.4;
}

.mention-suggestion-list-item.selected,
.mention-suggestion-list-item:hover {
    background: rgba(212, 168, 83, 0.14);
    color: var(--accent-primary, #d4a853);
}

.mention-suggestion-list-item.disabled {
    opacity: 0.5;
    cursor: default;
}

.mention-suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mention-suggestion-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.mention-suggestion-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Inline mention badge, as rendered inside comment/message/chat bodies --- */
.mention {
    display: inline;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(212, 168, 83, 0.12);
    color: var(--accent-primary, #d4a853);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    unicode-bidi: isolate;
}

.mention:hover {
    background: rgba(212, 168, 83, 0.22);
    text-decoration: underline;
}

.mention .ql-mention-denotation-char {
    margin-left: 1px;
}
