/* Base username styling - pill with emoji at start, no empty space */
.username-hover {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px 6px 8px;
    background: #000;
    border: 2px solid #444;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 6px;
    min-height: 0;
    height: auto;
    position: relative; /* Required for hover popup positioning */
}

/* Hover effect for all username pills */
.username-hover:hover {
    background: #111;
    border-color: #666;
    text-decoration: none;
}

/* Mentions in post content - more compact */
.post-content .username-hover {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px 4px 6px;
    background: #000;
    border: 2px solid #444;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-size: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 4px;
    min-height: 0;
    height: auto;
}

/* Hover effect for mentions in post content */
.post-content .username-hover:hover {
    background: #111;
    border-color: #666;
    text-decoration: none;
}

/* Emoji styling - 32px for normal pills, 28px for mentions */
.username-hover .emoji-avatar {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    display: block;
}

.username-hover .username-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Compact version for mentions */
.post-content .username-hover .emoji-avatar {
    font-size: 28px;
}

.post-content .username-hover .username-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Post header username pills - standard size */
.post-header .username-hover,
.user-card .username-hover,
.user-info .username-hover {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: #000;
    border: 2px solid #444;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 32px;
    overflow: hidden;
}

/* Hover effect for post header username pills */
.post-header .username-hover:hover,
.user-card .username-hover:hover,
.user-info .username-hover:hover {
    background: #111;
    border-color: #666;
    text-decoration: none;
}

/* Special handling for emoji display - we'll need to restructure the HTML */
.username-hover .emoji-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #000;
    border-radius: 50%;
    margin: 2px;
    font-size: 16px;
    flex-shrink: 0;
}

.username-hover .username-text {
    padding: 0 12px 0 0;
    font-weight: 500;
    white-space: nowrap;
}

/* Compact version for mentions */
.post-content .username-hover .emoji-avatar {
    width: 22px;
    height: 22px;
    font-size: 14px;
}

.post-content .username-hover .username-text {
    padding: 0 10px 0 0;
} 