@import '../../scss/mixin';

.aside {
  background: var(--neutral-100);
  border-right: 1px solid var(--neutral-400);

  @include bp(md) {
    flex: 0 0 360px;
    width: 360px;
  }
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  border-bottom: 1px solid var(--neutral-400);
  height: 60px;
  padding: 12px;

  @include bp(md) {
    padding: 18px 24px;
    flex: 0 0 80px;
    height: 80px;
  }
}

.logo {
  @include btn();
  gap: 8px;
}

.menu {
  @include btn();

  @include bp(md) {
    display: none;
  }
}

.content {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;

  @include bp(md) {
    flex: 1 0 calc(100% - 80px);
    height: calc(100% - 80px);
    display: flex;
    overflow: hidden;
  }
}

.scrollable {
  width: 100%;
  position: absolute;
  top: 100%;
  height: auto;
  z-index: 10;
  background: var(--neutral-100);
  border-bottom: 1px solid var(--neutral-400);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);

  @include bp(md) {
    display: block;
    position: relative;
    top: unset;
    flex: 0 0 calc(100% - 116px);
    height: calc(100% - 116px);
    max-height: calc(100vh - 330px);
    border-bottom: none;
  }
}

.actions {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid var(--neutral-400);
  padding-bottom: 60px;

  @include bp(md) {
    display: flex;
  }
}

.actionsMobile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid var(--neutral-400);

  .button {
    gap: 8px;
    width: 100%;
    padding: 8px 8px;
  }

  .icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;

    svg {
      width: 16px;
      height: 16px;
    }
  }

  @include bp(md) {
    display: none;
  }
}

.button {
  @include btn();
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 4px 24px;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: var(--neutral-700);
  cursor: pointer;

  &:hover {
    .icon {
      svg {
        transform: scale(1.05);
      }
    }
  }
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--neutral-200);

  svg {
    width: 24px;
    height: 24px;
    transition: transform ease-in-out 350ms;
  }
}

.active {
  .content {
    display: flex;
  }
}
