@import "../../../../../public/css/mixins";
@import "../../../../../public/css/variables";
@import "~material-components-web/material-components-web";

:host {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

mat-dialog-content {
  min-height: 180px;
}

.profile-knok {
  min-height: inherit;

  &__header {
    position: relative;
    padding: 15px;
    box-shadow: 0 -1px 9px 0 rgba(0, 0, 0, 0.09);
    @include ng-theming {
      border-bottom: solid 1px theme-get('color-list-item-spacer');
    }
    @include ng-theming($if: night) {
      background-color: $knk-color-primary;
    }
  }

  &__top-gainer {
    font-family: Roboto;
    font-size: 24px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    @include ng-theming($if: default) {
      color: $knk-color-primary;
    }

    @include ng-theming($if: night) {
      color: #ffffff;
    }

    .material-icons {
      @include ng-theming($if: default) {
        color: $knk-color-primary;
      }

      @include ng-theming($if: night) {
        color: #ffffff;
      }
    }

    .material-icons,
    span {
      vertical-align: middle;
    }
  }

  &__btn-close {
    opacity: 0.5;
    cursor: pointer;
    font-size: 24px;
    @include ng-theming {
      color: theme-get('color-font');
    }
  }
}

.profile-knok-user {
  padding: 15px 30px;
  @include ng-theming($if: night) {
    background-color: theme-get('color-surface');
  }
  &__avatar {
    margin-right: 10px;
  }

  &__avatar-image {
    max-width: 66px;
    max-height: 66px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: contain;

    &--icon {
      font-size: 66px;
      color: $knk-color-primary;
    }
  }

  &__name {
    font-family: Roboto;
    font-size: 24px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 0.63;
    letter-spacing: normal;
    @include ng-theming {
      color: theme-get('color-ongoing-label');
    }
  }

  &__label {
    margin-bottom: 5px;
    opacity: 0.5;
    font-family: Roboto;
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    @include ng-theming {
      color: theme-get('color-ongoing-label');
    }

    &--opaque {
      opacity: 1;
      color: #333333;
    }
  }

  &__followers {
    font-family: Roboto;
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.3;
    letter-spacing: normal;
    color: #00baff;
  }

  &__raiting {
    font-family: Roboto;
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.3;
    letter-spacing: normal;
    color: #00baff;
    text-transform: uppercase;
  }

  &__rate {
    font-size: 24px;
    color: $knk-color-primary;
  }

  &--border-line {
    @include ng-theming {
      border-bottom: solid 1px theme-get('color-list-item-spacer');
    }
  }
}

.profile-knok-user-activity {
  @include ng-theming($if: night) {
    background-color: theme-get('color-surface');
  }
  &--border-line {
    @include ng-theming {
      border-bottom: solid 1px theme-get('color-list-item-spacer');
    }
  }

  &__tile {
    position: relative;
    margin: 0 30px 0 30px;
    padding: 20px 0 25px 0;

    &:after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      width: 1px;
      height: 100%;
      margin-right: -30px;
      @include ng-theming {
        border-right: solid 1px theme-get('color-filter-spacer');
      }
    }

    &--last:after,
    &:last-child:after {
      border-right: 0;
    }
  }

  &__label,
  &__record {
    font-family: Roboto;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
  }

  &__label {
    margin-bottom: 15px;
    opacity: 0.5;
    font-size: 13px;
    letter-spacing: 1px;
    @include ng-theming {
      color: theme-get('color-ongoing-label');
    }
    text-transform: uppercase;
  }

  &__record {
    font-size: 29px;
    letter-spacing: normal;
    @include ng-theming {
      color: theme-get('color-ongoing-label');
    }
  }
}

.profile-knok-user-history {
  @include ng-theming($if: night) {
    background-color: theme-get('color-surface');
  }
  &__chart {
    padding: 40px;
  }

  &__slab {
    position: relative;
    margin: 0 50px 0 20px;
    padding: 20px 0 25px 0;

    &:after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 1px;
      height: 100%;
      margin-left: -20px;
      @include ng-theming {
        border-left: solid 1px theme-get('color-filter-spacer');
      }
    }
  }

  &__circle {
    float: left;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #f6f9fd;

    &#{&}--success {
      background-color: #00baff;
    }

    &#{&}--avg {
      background-color: $knk-color-primary;
    }
  }

  &__label {
    overflow: hidden;
    margin-bottom: 5px;
    opacity: 0.5;
    font-size: 13px;
    letter-spacing: 1px;
    @include ng-theming {
      color: theme-get('color-ongoing-label');
    }
    text-transform: uppercase;
  }

  &__record {
    font-size: 32px;
    letter-spacing: normal;
    @include ng-theming {
      color: theme-get('color-ongoing-label');
    }

    &#{&}--success {
      @include ng-theming {
        color: #00baff;
      }
    }

    &#{&}--avg {
      @include ng-theming {
        color: $knk-color-primary;
      }
    }
  }
}

.knk-tab-group {
  @include knk-tab-group;

  &::ng-deep {
    .mat-tab-label {
      height: 46px;
      font-size: 14px;
    }

    .mat-ink-bar {
      height: 5px;
    }
  }
}

.knk-button {
  @include knk-button;

  &#{&}--follow {
    min-width: 120px;
    min-height: 30px;
    height: auto;
    letter-spacing: 1px;
    font-size: 14px;
    @include ng-theming($if: night) {
      border: 1px solid #ffffff;
    }
  }
}
