/* BBclubs Mentions System Styles */

/* Base mention styling */
.mention {
    font-weight: normal;
    text-decoration: none;
    padding: 1px 3px;
    border-radius: 3px;
    background-color: rgb(255 255 255 / 10%);
    transition: background-color 0.2s ease;
}
.mention:hover {
    background-color: rgb(255 255 255 / 20%);
}

/* Mentions suggestion popup */
.mentions-suggestions {
    position: fixed;
    background: white;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    min-width: 160px;
    max-width: 200px;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

/* Individual suggestion item */
.mention-suggestion {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    background: white;
    transition: background-color 0.15s ease;
}

.mention-suggestion:hover,
.mention-suggestion.selected {
    background: #f0f8ff !important;
}

.mention-suggestion:last-child {
    border-bottom: none;
}

/* Avatar styling */
.mention-avatar {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.avatar-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    color: #666;
    font-size: 12px;
}

/* Mention info section */
.mention-info {
    flex: 1;
    min-width: 0;
}

/* Handle styling */
.mention-handle {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Anonymous user styling */
.mention-handle.anonymous {
    font-size: 12px !important;
    color: #666666 !important;
    font-weight: normal !important;
}

