/* --- Global Avatar Component (Reusable) --- */
.avatar {
    display: inline-block;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: var(--card-media-bg);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sizes */
.avatar--sm { width: 32px; height: 32px; }
.avatar--md { width: 40px; height: 40px; }
.avatar--lg { width: 64px; height: 64px; }
.avatar--xl { width: 120px; height: 120px; }


/* Editable avatar */
.avatar--editable {
    position: relative;
    cursor: pointer;
}

.avatar-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.5);
    color: #fff;

    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;

    opacity: 0;
    transition: opacity 0.25s ease;
}

.avatar--editable:hover img {
    opacity: 0.6;
}

.avatar--editable:hover .avatar-overlay {
    opacity: 1;
}