@import '@legends/styles/base.scss';

.wrapper {
  @include container;
  margin: 0 auto;

  @include breakpoint-down-from(medium-desktop) {
    padding-left: 3rem;
    padding-right: 3rem;
    margin: 0;
  }

  @include breakpoint-down-from(tablet) {
    padding-left: 0;
  }
}

.table {
  width: 100%;
  text-align: left;
  margin-bottom: 2rem;
  color: $secondaryText;
  border-collapse: collapse;

  td,
  th {
    vertical-align: top;

    &:nth-child(1) {
      flex: 2;
    }
    &:nth-child(2) {
      flex: 1.5;
    }
    &:nth-child(3) {
      flex: 1.5;
    }
    &:nth-child(4) {
      flex: 3.5;
    }
  }

  td {
    padding: 2rem 0 2rem;
    border-bottom: 0.0938rem solid $tertiaryBackground;
  }
  tr {
    display: flex;
  }

  thead {
    font-size: 1.25rem;
    color: rgb($secondaryText, 0.4);
    font-weight: 400;
  }

  tbody:before {
    content: ' ';
    display: block;
    margin: 0 0 1em;
  }

  .linksWrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem 0;
  }

  .link {
    text-decoration: underline;
    font-size: 1rem;
    font-weight: 400;
    color: $secondaryText;
    flex: 1;
  }

  .network {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-left: 1rem;
    vertical-align: super;
  }

  .xp {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 0.75rem;
    color: $whiteText;
  }

  .coin {
    vertical-align: sub;
  }

  .legendsWrapper {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    gap: 0.875rem;
  }

  .badge {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    color: $quinaryText;
    border-radius: $secondaryBorderRadius;
    background-color: $tertiaryBackground;
    font-size: 0.875rem;
    font-weight: 400;
  }

  .tooltip {
    margin-left: 0.5rem;
    font-size: 1rem;
    color: $primaryBackground;
    opacity: 1;
    background: $secondaryText;
  }

  .sword {
    margin-right: 0.75rem;
  }
}

.spinnerWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 11.25rem;
}
