@use "../../../../styles/font" as *;
@use "../../../../styles/variables" as *;

.user-card {
  padding: 20px 24px 16px;
  height: 100%;
  box-sizing: border-box;

  @media (max-width: $small) {
    padding: 18px 20px 14px;
  }
}

.user-card.mat-mdc-card-outlined {
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.user-card-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
}

.user-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  margin-right: 18px;

  @media (max-width: $small) {
    width: auto;
  }
}

.avatar-wrapper {
  width: 185px;
  height: 185px;
  border: 3px dotted $blue;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

  @media (max-width: $small) {
    width: 95px;
    height: 95px;
  }

  @media (min-width: $medium) and (max-width: $normal){
    width: 95px;
    height: 95px;
  }
}

.avatar-img {
  width: 164px;
  height: 164px;
  border-radius: 50%;

  @media (max-width: $small) {
    width: 85px;
    height: 85px;
  }

  @media (min-width: $medium) and (max-width: $normal){
    width: 85px;
    height: 85px;
  }
}

.avatar-badge-wrapper {
  margin-top: 14px;
}

.avatar-badge {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: auto;
  height: auto;
  min-width: 16px;
  border-radius: 4px;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.8px;
  color: $white;
  background-color: $pink;
  padding: 6px 10px;
}

.user-info-wrapper {
  width: 50%;

  @media (max-width: $small) {
    width: auto;
  }
}

.user-name {
  font-weight: $fw-bold;
  font-size: $fs-xl;
  line-height: 38px;
  margin-bottom: 14px;
}

.user-position {
  font-weight: $fw-normal;
  font-size: 12px;
  line-height: 14px;
  color: #27282C;
  opacity: 0.5;
  margin-bottom: 4px;
}

.user-site {
  font-weight: $fw-lighter;
  font-size: $fs-normal;
  line-height: 19px;
  color: $blue;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.user-skills-wrapper {
  margin-top: 18px;
  width: 230px;

  @media (min-width: 1280px) and (max-width: $xxl) {
    margin-top: 20px;
    width: auto;
  }
}

.user-skill {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
  min-width: 16px;
  height: auto;
  position: static;
  transform: none;
  border-radius: 4px;
  padding: 6px 10px;
  letter-spacing: normal;
}

.user-skill.blue {
  background-color: $blue-20;
  color: $blue;
}

.user-skill.yellow {
  background-color: $yellow-20;
  color: $yellow;
}

.user-skill.pink {
  background-color: $pink-20;
  color: $pink;
}

.user-skill.green {
  background-color: $green-20;
  color: $green;
}

.user-skills-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.icons-wrapper {
  display: flex;
  margin-top: 24px;

  @media (min-width: 1280px) and (max-width: $xxl) {
    margin-top: 18px;
  }
}

.icon {
  font-size: 16px;
  color: #9B9B9B;
  padding: 0;

  & + .icon {
    margin-left: 16px;
  }
}
