@use "../../../../../styles" as *;

.settings-page {
  width: 100%;
  height: calc(100% - $header-height);
  position: absolute;
  left: 0;
  top: $header-height;
  background-color: rgba($col-dark, 60%);
  z-index: 1000;
  opacity: 2;
  transition: opacity 550ms;
  .settings {
    padding: 50px 30px;
    width: 50%;
    height: 100%;
    position: relative;
    background: linear-gradient(
      to bottom right,
      $col-dark,
      $col-dark,
      $col-lightBlack
    );
    animation: pop-left 500ms ease-in-out 0s 1 normal both;
    display: flex;
    flex-direction: column;
    .close-btn {
      position: relative;
      left: calc(100% - 20px);
      display: flex;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      .line {
        display: block;
        position: absolute;
        height: 4px;
        width: 20px;
        background: $col-orange;
        top: 50%;
        left: 50%;
        transition: 200ms;
        border-radius: 20px;
        transform-origin: center center;
      }
      span.line:nth-of-type(1) {
        transform: translate(-50%, -50%) rotate(45deg);
      }
      span.line:nth-of-type(2) {
        transform: translate(-50%, -50%) rotate(-45deg);
      }
      input[type="checkbox"] {
        display: none;
      }
      &:active {
        border: 1px solid $col-orange;
        scale: 1.2;
        .line {
          border: 1px solid $col-orange;
          background-color: transparent;
        }
      }
    }
    .profile-info {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: $gap-15;
      margin-bottom: 130px;
      .img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        overflow: hidden;
        background-color: $col-white;
        border: 3px solid $col-darkGray;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .user-name {
        color: transparent;
        color: $col-gray;
        font-weight: 500;
      }
    }
    .settings-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: $gap-15;
      li {
        font-weight: 600;
        transition: 300ms;
        &:first-child {
          color: $col-darkGray;
          font-weight: 500;
        }
        &:not(:first-child) {
          color: $col-lightBlack;
          margin-left: 15px;
          &:hover {
            color: $col-orange;
            margin-left: 20px;
          }
        }
      }
    }
    .app-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: $gap-15;
      justify-content: flex-end;
      h3 {
        color: $col-darkGray;
      }
      span {
        color: $col-orange;
        font-weight: 600;
      }
    }
    &:has(#close:checked) {
      animation: hide-left 500ms ease-in-out 0s 1 normal both;
    }
  }
  &:has(#close:checked) {
    opacity: 0;
  }
}

@keyframes pop-left {
  0% {
    left: -100%;
  }
  100% {
    left: 0%;
  }
}
@keyframes hide-left {
  0% {
    left: 0%;
  }
  100% {
    left: -100%;
  }
}
