/* Avatar base styles */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

/* Avatar sizes */
.avatar-xs {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

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

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

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

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

/* Avatar image (when using img tag) */
img.avatar {
  background: none;
}

/* Avatar group - for displaying multiple avatars */
.avatar-group {
  display: flex;
  align-items: center;
  gap: -8px;
}

.avatar-group .avatar {
  border: 2px solid var(--bg-white, #fff);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .avatar-group .avatar {
    border-color: var(--color-dark, #212529);
  }
}
