@import (reference) '../styles/custom.less';
@import (reference) '../styles/modules/variables.less';

.UserHeader {
  background-color: #f3f4f6;
  background-size: cover;
  background-position: center;
  position: relative;

  &__more {
    position: absolute;
    top: 5px;
    right: 25px;
    font-size: 36px !important;
    color: @primary-color;

    &:hover {
      cursor: pointer;
      color: darken(@primary-color, 15%);
    }
  }

  &--cover {
    background-color: darken(@primary-color, 25%) !important;

    .UserHeader__rank,
    .UserHeader__rank & > i,
    .UserHeader__handle,
    .UserHeader__more,
    .UserHeader__user__username,
    .UserHeader__follows-you {
      color: #ffffff !important;
      text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    }
  }

  &__handle {
    .UserHeader__follows-you {
      display: none;
    }

    @media @small {
      .UserHeader__follows-you {
        display: inline-block;
        margin-left: 5px;
      }
    }
  }

  &__follows-you--mobile {
    position: relative;
    top: -30px;
    text-align: center;

    @media @small {
      display: none;
    }
  }

  &__follows-you-cover-text-color {
    color: @white;
  }
}

.UserHeader__container {
  display: flex;
  margin: 0 auto;
  max-width: 1011px;
  padding: 30px 16px;
  align-items: center;
  flex-direction: column;
  a {
    position: relative;
  }
  &--active {
    position: absolute;
    left: 75px;
    bottom: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: @green;
  }
}

.UserHeader__user {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  margin: 0;
}

.UserHeader__row {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.UserHeader__handle {
  position: relative;
  top: -30px;
  color: #99aab5;

  &-rank-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}

.UserHeader__rank {
  align-self: center;
  margin-top: -62px;
  margin-left: 15px;

  & > i {
    font-size: 18px !important;
    vertical-align: -1px;
    margin-right: 4px;
  }
}

.UserHeader__user__username {
  margin-right: -8px;
  font-weight: 700;
  font-size: 28px;
  color: #353535;

  .ant-tag {
    margin-left: 8px;
    vertical-align: 4px;
    text-shadow: none;
  }
}

.UserHeader__user__buttons {
  display: flex;
}

.UserHeader__user__button {
  position: relative;
  top: 40px;
  margin-left: 10px;

  &-follows-you {
    top: 52px;
  }
}

@media @small {
  .UserHeader__container {
    padding: 30px 0 30px 16px;
    align-items: initial;
    flex-direction: initial;
  }

  .UserHeader__user {
    padding-bottom: 0;
    margin: 0 20px;

    &__username {
      font-size: 32px;
    }
  }

  .UserHeader__row {
    align-items: initial;
    flex-direction: initial;
  }

  .UserHeader__rank {
    margin-top: -4px;
    margin-left: 0;
  }

  .UserHeader__handle {
    top: -8px;

    &-rank-container {
      display: block;
      flex-direction: initial;
      justify-content: initial;
    }
  }

  .UserHeader__more {
    position: static;
  }

  .UserHeader__user__button {
    top: 12px;
  }
}

@media @large {
  .UserHeader__container {
    padding: 30px 0;
  }
}

@import 'UserHeader-nightmode';
