/* ========================================
   Avatar System
   ======================================== */

/* Avatar display — any size, used everywhere */
.avatar-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.avatar-svg svg {
  width: 100%;
  height: 100%;
}

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

/* Avatar edit pencil on profile */
.profile-avatar-wrap {
  position: relative;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-avatar-wrap:hover .profile-avatar-edit {
  background: #212121;
  border-color: #212121;
  color: #fff;
}

/* Avatar Picker */
.avatar-picker {
  margin-top: 16px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.avatar-picker h3 {
  margin: 0 0 16px;
  font-size: 14px;
}

.avatar-picker__preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.avatar-picker__preview-svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.avatar-picker__section {
  margin-bottom: 16px;
}

.avatar-picker__section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 600;
}

.avatar-picker__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.avatar-picker__option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.avatar-picker__option:hover {
  transform: scale(1.1);
}

.avatar-picker__option.selected {
  border-color: #212121;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #212121;
}

.avatar-picker__option--jersey {
  border-width: 2px;
}

.avatar-picker__option--accessory {
  background: #f5f5f5;
  font-size: 16px;
}

.avatar-picker__option--accessory.selected {
  background: #E8F5E9;
}

/* Photo upload option */
/* Sticky save button */
.avatar-picker__sticky-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 0 4px;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
  z-index: 1;
}

.avatar-picker__photo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: #777;
  font-family: inherit;
  transition: all 0.15s;
}

.avatar-picker__photo-btn:hover {
  border-color: #212121;
  color: #333;
}
