drawer-navigation {
  width: 100%; height: 5rem;

  display: inline-flex;
  flex: 1;
  position: relative;
  z-index: 10;
}

drawer-section {
  &:not(:last-of-type) {
    padding-right: 1rem;
  }

  &:not(:hover) {
    drawer-title::after {
      background-color: transparent;
    }

    drawer-wrap {
      display: none;
    }
  }

  &:hover {
    drawer-title::after {
      background-color: $lbry-teal-4;
    }
  }
}

drawer-title {
  height: 100%;
  align-items: center;
  cursor: default;
  display: flex;
  line-height: 3;
  position: relative;

  &::after {
    width: 100%; height: 1px;
    bottom: -1px; left: 0;

    content: "";
    position: absolute;
    z-index: 1;
  }
}

drawer-wrap {
  width: 100%;
  top: 5rem; left: 0;

  background-color: $lbry-white;
  border-top: 1px solid $lbry-gray-1;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: absolute;

  &::after {
    width: 100vw; height: calc(100vh - 5rem);
    top: 5rem; left: 0;

    background-color: $lbry-black;
    content: "";
    opacity: 0.3;
    pointer-events: none;
    position: absolute;
    z-index: -1;
  }
}

drawer-children {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

drawer-child {
  padding: var(--spacing-s);
  border: 2px solid;
  transition: all 0.2s;

  &:not(:hover) {
    border-color: transparent;
  }

  &:hover {
    border-color: $lbry-gray-1;
    padding-left: var(--spacing-m);

    > a {
      color: $lbry-teal-4;
    }
  }

  &:not([full-width]) {
    width: 50%;
  }

  &[full-width] {
    width: 100%;
  }

  span {
    display: flex;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}