@import '../../theme/mixins';

.Sidebar {
  position: fixed;
  top: 88px;
  max-width: 293px;
  height: 100vh;
  width: 100%;
  margin-bottom: 30px;
  padding: 0;
  right: 0;
}

.MyProfile {
  height: 62px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  &Wrapper {
    flex-direction: row;
    height: 100%;
    margin-bottom: 12px;
    max-height: 50px;
    width: 100%;
    padding-left: 5px;
  }
}

.Avatar {
  flex: none;
  display: block;
  align-self: center;

  a {
    display: block;
    width: 50px;
    height: 50px;
  }

  img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
}

.UserInfo {
  margin-left: 14px;
  overflow: hidden;
  flex-direction: column;
  flex-shrink: 1;
  justify-content: center;

  &Username {
    flex-direction: row;
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    a {
      color: var(--color-main)!important;
      font-weight: 600;
    }
  }

  &FullName {
    display: inline-block;
    font-size: 12px;
    line-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-neutral-02)
  }
}

.RecommendedBlock {
  margin: 12px 0;
  padding: 12px var(--spacing-m);
  @include whiteBox();

  h4 {
    font-weight: 600;
    color: var(--color-neutral-02)
  }

  &Wrapper {
    padding: 8px 0;
    max-height: 380px;
    overflow-y: auto;
  }
}

.NoRecommend {
  color: var(--color-neutral-02);
  font-weight: 400;
  font-size: var(--small-font);
  text-align: center;
  margin: 16px 0;
}

.About {
  font-size: calc(var(--small-font) - 1px);
  color: var(--color-neutral-01);

  .Nav {

    ul {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;

      li {
        a {
          color: var(--color-neutral-01)
        }

        &:after {
          content: '\00B7';
          margin: 0 .25em;
        }

        &:nth-last-child(1) {
          &:after {
            content: none;
          }
        }
      }
    }
  }
}

.Copyright {
  padding: 38px 0;
  text-transform: uppercase;
}
