.mention {
padding: 0 4px;
border-radius: 4px;
font-weight: 500;
cursor: pointer;
transition: background 0.1s ease;
}

.mention-user {
background: rgba(88, 101, 242, 0.3);
/* color is set inline for special users (youtubers, user 5566, etc.) */
text-decoration: none;
}

.mention-user:hover {
background: rgba(88, 101, 242, 0.5);
}

.mention-followers {
background: linear-gradient(135deg, rgba(250, 176, 5, 0.3), rgba(245, 127, 23, 0.3));
color: #ffd54f;
font-weight: 600;
}

.mention-followers:hover {
background: linear-gradient(135deg, rgba(250, 176, 5, 0.5), rgba(245, 127, 23, 0.5));
color: #ffecb3;
}

.mention-followers::before {
content: '📢 ';
font-size: 0.85em;
}

.mention-dropdown {
position: fixed;
background: rgba(30, 35, 50, 0.95);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
z-index: 9999;
max-height: 240px;
overflow-y: auto;
opacity: 0;
transform: translateY(-8px);
pointer-events: none;
transition: opacity 0.15s ease, transform 0.15s ease;
}

.mention-dropdown.show {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

.mention-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
cursor: pointer;
transition: background 0.15s ease;
}

.mention-item:hover,
.mention-item.selected {
background: rgba(74, 158, 255, 0.15);
}

.mention-item.mention-disabled {
opacity: 0.5;
cursor: not-allowed;
}

.mention-item.mention-disabled:hover {
background: transparent;
}

.mention-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
}

.mention-icon {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
background: rgba(74, 158, 255, 0.2);
border-radius: 50%;
}

.mention-special .mention-icon {
background: rgba(255, 193, 7, 0.2);
}

.mention-info {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}

.mention-name {
font-size: 14px;
font-weight: 500;
color: #fff;
}

.mention-desc {
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
}

.mention-limit {
font-size: 10px;
color: #ff6b6b;
background: rgba(255, 107, 107, 0.15);
padding: 2px 6px;
border-radius: 4px;
}

.mention-limit-notice {
padding: 8px 12px;
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mention-counter {
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
}

.mention-counter.at-limit {
color: #ff6b6b;
}

.mention-dropdown::-webkit-scrollbar {
width: 6px;
}

.mention-dropdown::-webkit-scrollbar-track {
background: transparent;
}

.mention-dropdown::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
}
