@import '~styles/mixins';
@import '~styles/adminMixins';

.Header {
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: $color_header;
  z-index: 5;
  color: white;
  min-width: 700px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: $height_global_header;
  border-bottom: 2px solid #ededed;

  &.staging {
    border-top: 4px solid $color-primary;
  }

  .left {
    text-align: left;
    display: flex;
    align-items: center;
    height: 100%;

    .nav {
      display: flex;
      align-items: center;
      height: 100%;

      .nav-item {
        cursor: pointer;
        padding: 10px 18px;
        color: black;
        display: flex;
        align-items: center;
        letter-spacing: 0.3px;
        height: 100%;
        margin-bottom: -4px;
        border-bottom: 2px solid transparent;

        &:hover {
          border-color: rgba($color: black, $alpha: 0.1);
        }

        .icon {
          font-size: 13px;

          &.icon-left {
            margin-right: 10px;
          }

          &.icon-right {
            margin-left: 10px;
          }
        }

        &.nav-item-active {
          border-color: $color_primary;
          background-color: rgba(255, 255, 255, 0.1);
          font-weight: bold;
        }
      }
    }
  }

  .right {
    padding-right: $default_spacing_h;
    text-align: right;
  }

  .logo-text {
    padding-left: $default_spacing_h;
    font-size: 18px;
    font-weight: bold;
    min-width: $nav_width;
    color: $color_primary;

    .subname {
      text-transform: uppercase;
      display: inline-block;
      margin-left: 3px;
      vertical-align: bottom;
      color: $color_header_subname;
      font-size: 60%;
      letter-spacing: -0.5px;
    }

    .name {
      color: $color_header_name;
    }

    .small {
      display: inline-block;
      margin-left: 3px;
      font-size: 14px;
      font-weight: bold;
      margin-left: 10px;
      color: $color_header_subname;
    }
  }

  .logo-img {
    display: flex;
    align-items: center;
    padding-left: $default_spacing_h;
    min-width: $nav_width;
    height: $height_global_header - 20px;

    img {
      max-width: $nav_width * 0.9;
      max-height: 100%;
    }
  }

  .content-submenu {
    margin-top: 3px;
    z-index: 4;
  }

  .submenu {
    min-width: 200px;
    width: max-content;

    .account-data {
      border-bottom: 1px solid $color_border;
      padding: 4px 0;
    }

    .links {
      padding: 4px 0;
    }

    .item {
      // border-top: 1px solid $color_border;
      color: $color_dark;
      display: flex;
      align-items: center;
      padding: 10px 20px;
      cursor: pointer;
      justify-content: flex-start;
      text-align: left;

      span {
        margin: 0 20px;
        display: block;
      }

      &.active {
        font-weight: bold;
      }

      &.logout {
        color: $color-red;
      }

      &:hover {
        cursor: pointer;
        background-color: rgba($color: $color-grey, $alpha: 0.1);
      }

      &:first-child {
        border-top: none;
      }
    }
  }

  .content-drop {
    font-size: 14px;
    display: flex;
    align-items: center;
    color: black;

    .icon {
      width: 35px;
      height: 35px;
      background-color: rgba($color: $color_primary, $alpha: 0.2);
      border-radius: 35px;
      display: flex;
      justify-content: center;
      margin-left: 10px;
      font-size: 24px;
      font-weight: bold;
      user-select: none;
      color: $color_primary;

      .circle {
        color: white;
        position: relative;
        left: 0.5px;
      }
    }

    .info {
      text-align: left;

      .name {
        font-weight: bold;
      }

      .type {
        font-size: 12px;
      }
    }

    .arrow {
      margin-left: 10px;
      transition: 0.3s all;
      transform-origin: center;
      height: 0;
      display: flex;
      align-items: center;

      &.active {
        transform: rotate3d(1, 0, 0, 180deg);
      }
    }
  }

  &.white {
    color: black;
    background-color: white;

    .content-drop {
      color: black;
    }
  }
}
