/* Paso 32 — Estilos para menciones renderizadas y dropdown de autocomplete. */

/* ------------------------------------------------------------------ */
/* Link de mención dentro de texto (filtro |render_mentions)          */
/* ------------------------------------------------------------------ */
.mention {
    color: var(--color-accent, #2563eb);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.mention:hover,
.mention:focus {
    color: var(--color-accent-hover, #1d4ed8);
    border-bottom-style: solid;
    text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Dropdown del autocomplete                                          */
/* ------------------------------------------------------------------ */
.mention-dropdown {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    background: #fff;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 0.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    max-height: 18rem;
    overflow-y: auto;
    z-index: 1000;
    min-width: 14rem;
}

.mention-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    color: var(--color-text, #222);
    font-size: 0.95rem;
}

.mention-dropdown__item:hover,
.mention-dropdown__item.is-active {
    background: rgba(37, 99, 235, 0.08);
}

.mention-dropdown__avatar {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mention-dropdown__avatar--placeholder {
    background: var(--color-border, #ddd);
    color: #555;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mention-dropdown__username {
    font-weight: 500;
}
