/* ============================================================
   STRAATZAKEN026 — Avatar Styles
   ============================================================ */

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

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

/* Avatar Sizes */
.avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 36px;
}

.avatar-2xl {
    width: 128px;
    height: 128px;
    font-size: 48px;
}

/* Avatar with status */
.avatar-status {
    position: relative;
}

.avatar-status::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.avatar-status.online::after {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.avatar-status.offline::after {
    background: #6b7280;
}

.avatar-status.away::after {
    background: #f59e0b;
}

/* Avatar group (stacked) */
.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid var(--card-bg);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* Animation on load */
@keyframes avatarFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.avatar-animated {
    animation: avatarFadeIn 0.3s ease forwards;
}

/* Hover effect */
.avatar-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.avatar-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
