@charset "UTF-8";
/* Компонент Avatar - Аватар пользователя */
/* ===== БАЗОВЫЕ СТИЛИ ===== */
/* Базовый класс аватара */
.avatar {
  background: rgb(52, 180, 255);
  background-image: url("./pattern-2.svg");
  background-size: 240px 240px;
  background-repeat: repeat;
  background-position: 0 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 240px;
  height: 240px;
  overflow: hidden;
}

/* SVG иконка по умолчанию */
.avatar__svg {
  width: 112px;
  height: 132px;
  position: relative;
  z-index: 1;
}

/* Изображение аватара */
.avatar__image {
  width: 100%;
  height: 100%;
  font-family: "object-fit:cover";
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

/* Фокус для доступности */
.avatar:focus {
  outline: 2px solid var(--color-primary-orange);
  outline-offset: 2px;
}

/* ===== МОДИФИКАТОРЫ РАЗМЕРОВ ===== */
/* Большой аватар (по умолчанию) */
.avatar_large {
  width: 240px;
  height: 240px;
}

.avatar_large .avatar__svg {
  width: 112px;
  height: 132px;
}

/* Средний аватар */
.avatar_medium {
  width: 120px;
  height: 120px;
}

.avatar_medium .avatar__svg {
  width: 56px;
  height: 66px;
}

/* Маленький аватар */
.avatar_small {
  width: 80px;
  height: 80px;
}

.avatar_small .avatar__svg {
  width: 40px;
  height: 47px;
}

/* Очень большой аватар */
.avatar_xl {
  width: 320px;
  height: 320px;
}

.avatar_xl .avatar__svg {
  width: 150px;
  height: 176px;
}

/* Мобильный аватар */
.avatar_mobile {
  width: 64px;
  height: 64px;
}

.avatar_mobile .avatar__svg {
  width: 30px;
  height: 35px;
}

/* ===== МОДИФИКАТОР ПАТТЕРНА ===== */
/* Аватар с паттерном */
.avatar_pattern {
  background: rgb(52, 180, 255) url("./pattern-2.svg") center/cover;
  background-blend-mode: multiply;
}

.avatar_pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("./pattern-2.svg") center/120px 120px;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease;
}

.avatar_pattern:hover::before {
  opacity: 0.25;
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

.avatar_pattern:active::before {
  opacity: 0.3;
  transform: scale(1.01);
}

/* Адаптивные размеры паттерна для разных аватаров */
.avatar_small.avatar_pattern::before {
  background-size: 32px 32px;
}

.avatar_medium.avatar_pattern::before {
  background-size: 48px 48px;
}

.avatar_mobile.avatar_pattern::before {
  background-size: 80px 80px;
}

.avatar_xl.avatar_pattern::before {
  background-size: 96px 96px;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet */
@media (max-width: 768px) {
  .avatar {
    width: 120px;
    height: 120px;
  }
  .avatar__svg {
    width: 56px;
    height: 66px;
  }
  .avatar_large {
    width: 120px;
    height: 120px;
  }
  .avatar_large .avatar__svg {
    width: 56px;
    height: 66px;
  }
  .avatar_large.avatar_pattern::before {
    background-size: 80px 80px;
  }
  .avatar_medium .avatar__svg {
    width: 40px;
    height: 47px;
  }
  .avatar_medium.avatar_pattern::before {
    background-size: 64px 64px;
  }
  .avatar_xl {
    width: 200px;
    height: 200px;
  }
  .avatar_xl .avatar__svg {
    width: 93px;
    height: 110px;
  }
  .avatar_xl.avatar_pattern::before {
    background-size: 72px 72px;
  }
}
/* Mobile */
@media (max-width: 480px) {
  .avatar__svg,
  .avatar_large .avatar__svg,
  .avatar_medium .avatar__svg {
    width: 30px;
    height: 35px;
  }
  .avatar_medium.avatar_pattern::before {
    background-size: 64px 64px;
  }
  .avatar_xl {
    width: 120px;
    height: 120px;
  }
  .avatar_xl .avatar__svg {
    width: 56px;
    height: 66px;
  }
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .avatar,
  .avatar_pattern::before {
    transition: none;
  }
}
/*# sourceMappingURL=maps/avatar.css.map */
