@import 'src/css/quasar.variables.scss';

.wrapper--bridge-selection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin-top: 24px;
  position: relative;
  padding-left: 8px;
  padding-right: 8px;
  @media (min-width: $sm) {
    align-items: center;
    padding-left: 0px;
    padding-right: 0px;
  }
  @media (min-width: $xl) {
    margin-top: 0px;
    margin-bottom: 0px;
    align-items: end;
    margin-right: -40px;
    margin-top: -36px;
  }
}

.container--title {
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 24px;
  @media (min-width: $lg) {
    margin-bottom: 50px;
  }
}

.container--box {
  @media (min-width: $xl) {
    display: flex;
    flex-direction: column;
    margin-bottom: 36px;
    padding-right: 130px;
    padding-left: 48px;
    padding-top: 24px;
    box-shadow: 0px 2px 8px 0px #00000014;
  }
}

.container--bridges {
  @media (min-width: $md) {
    display: grid;
    column-gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
  }
}

.container--selection {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
  width: 100%;
  margin-top: 48px;
  @media (min-width: $md) {
    flex-direction: row;
    column-gap: 16px;
  }
}

.column--selection {
  width: 100%;
  button {
    width: 100%;
  }
  @media (min-width: $sm) {
    width: 240px;
    // Memo: to adjust the height to line up the buttons
    min-height: 300px;
  }
}

.button--bridge {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease 0s;
  padding: 16px;
  height: 240px;
  margin-bottom: 16px;
  border: 1px solid $gray-0;
  width: 100%;
}

.column--selection :is(button, a):not([disabled]).button--bridge:hover {
  border: 1px solid $astar-blue !important;
  transition: all 0.3s ease 0s;
}

.row--title {
  display: flex;
  column-gap: 8px;
  align-items: center;
  @media (min-width: $lg) {
    column-gap: 4px;
  }
  @media (min-width: $xl) {
    column-gap: 8px;
  }
}

.row--logo-bg {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0px;
  width: 100%;
}

.img--logo-bg {
  height: 64px;
  width: 64px;
  background-color: $gray-0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.img--logo {
  width: 32px;
  height: 32px;
}

.img--logo-stargate {
  width: 40px;
  height: 40px;
}

.img--logo-astr {
  height: 48px;
}

.img--logo-soneium {
  height: 32px;
}

.row--bridge-title {
  text-align: left;
}

.text--bridge-title {
  font-weight: 800;
  font-size: 24px;
  color: $navy-1;
}

.text--bridge-tag {
  font-weight: 1000;
  font-size: 24px;
  color: $navy-1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.text--bridge-identity {
  font-size: 14px;
}

.text--bridge {
  font-weight: 600;
  font-size: 12px;
  color: $navy-1;
  a {
    color: $astar-blue;
    &:hover {
      color: lighten($astar-blue, 10%);
    }
  }
}

.text--bridge-details {
  font-weight: 600;
  font-size: 14px;
  color: #596381;
  a {
    color: $astar-blue;
    &:hover {
      color: lighten($astar-blue-dark, 10%);
    }
  }
}

.box--ethereum-soneium {
  margin-right: -20px;
  z-index: 1;
}

.box-soneium-logo {
  background-color: white;
  z-index: 2;
  border-radius: 36px;
  padding-left: 3px;
}

.body--light {
  .button--bridge {
    background-color: white;
  }
}

.body--dark {
  .text--bridge-title,
  .text--bridge,
  .text--bridge-identity {
    color: $gray-0;
  }
  .text--bridge-details {
    a {
      color: $astar-blue-dark;
      &:hover {
        color: lighten($astar-blue-dark, 10%);
      }
    }
  }
  .button--bridge {
    border: 1px solid $navy-3;
    background-color: $navy-1;
    box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.8);
  }

  .container--box {
    @media (min-width: $xl) {
      background: rgba(8, 16, 41, 0.7);
      box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.8);
    }
  }

  .img--logo-bg {
    background-color: $navy-3;
  }
  .box-soneium-logo {
    background-color: $navy-1;
  }
}
