/* Mention link in posts */
a.mention {
	display: inline;
	padding: 0 0.2em;
	border-radius: 2px;
	font-weight: 600;
	text-decoration: none !important;
	background: rgba(220, 40, 40, 0.10);
	color: #e33a3a !important;
}

a.mention:hover {
	background: rgba(220, 40, 40, 0.18);
	text-decoration: underline !important;
}

/* Autocomplete dropdown */
.mention-dropdown {
	position: absolute;
	z-index: 10050;
	min-width: 240px;
	max-width: 320px;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	background: #2D2B4D;
	border: 1px solid #3f3c66;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	font-size: 13px;
	color: #f0eef8;
}

.mention-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 6px 8px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #f0eef8;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.mention-row:hover,
.mention-row.is-active {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.mention-avatar {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #3f3c66;
	color: #d8d4f0;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.mention-avatar img {
	width: 32px;
	height: 32px;
	object-fit: cover;
	display: block;
}

.mention-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.mention-name {
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #e33a3a;
}

.mention-handle {
	font-size: 11px;
	color: #b8b4d4;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mention-row:hover .mention-handle,
.mention-row.is-active .mention-handle {
	color: #ddd9f4;
}

.mention-row:hover .mention-name,
.mention-row.is-active .mention-name {
	color: #ff6b6b;
}
