/**
 * Comment Mentions Autocomplete Styles
 */

.mention-autocomplete {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    min-width: 200px;
}

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

.mention-item:hover,
.mention-item.selected {
    background: var(--bg-hover);
}

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

.mention-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mention-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.mention-role {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.mention-role.badge-admin {
    background: #dc2626;
    color: white;
}

.mention-role.badge-vip {
    background: #d97706;
    color: white;
}

.mention-role.badge-editor {
    background: #7c3aed;
    color: white;
}

/* Mentioned user highlighting in comments */
.comment-text .user-mention {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.comment-text .user-mention:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mention-autocomplete {
        max-width: calc(100vw - 40px);
        max-height: 150px;
    }
    
    .mention-item {
        padding: 6px 10px;
    }
    
    .mention-avatar {
        width: 28px;
        height: 28px;
    }
    
    .mention-username {
        font-size: 0.8rem;
    }
    
    .mention-role {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

/* Scrollbar styling */
.mention-autocomplete::-webkit-scrollbar {
    width: 6px;
}

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

.mention-autocomplete::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.mention-autocomplete::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
