/* ==========================================================================
   User Profile Page
   ========================================================================== */

.user-profile-page h3 {
    margin-bottom: 0;
}

.user-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(var(--app-white-rgb), 0.05);
}

.user-profile-avatar--default {
    padding: 16px;
    background: rgba(var(--app-white-rgb), 0.08);
}

/* Stacked below the avatar on phones (flex-column up to sm): keep long
   usernames and meta rows inside the card instead of pushing it wider. */
.user-profile-identity {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.user-profile-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.user-profile-emblem {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.user-profile-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.user-profile-friend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(var(--app-white-rgb), 0.03);
    color: inherit;
    text-decoration: none;
}

.user-profile-friend:hover {
    background: rgba(var(--app-white-rgb), 0.06);
    color: inherit;
}

.user-profile-friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-friend-avatar--default {
    padding: 6px;
    background: rgba(var(--app-white-rgb), 0.08);
}

.user-profile-friend-meta {
    min-width: 0;
    flex: 1;
}

.user-profile-friend-meta > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
