/* Stat Wrapper - HORIZONTAL */
.stat__wrapper--h {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: nowrap;

  .stat {
    align-items: center;
    flex: 1;

    &:first-child {
      padding-right: 0.5rem;
    }

    &:not(:first-child) {
      border-left: 1px solid var(--light-gray);
      padding-left: calc(0.5rem - 1px);
    }
  }
}

/* Stat Wrapper - VERTICAL */
.stat__wrapper--v {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  &.stat__wrapper__list--nested {
    border-top: 1px solid var(--light-gray);
    padding-top: 0.5rem;
  }

  .stat {
    flex: 1;
  }
}

.stats__cube {
  border-radius: var(--border-radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.5rem;
  grid-gap: 0.5rem;

  &.stats__cube-two {
    grid-template-columns: repeat(2, 1fr);
  }

  &.stats__cube-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Stats (Individual Component) */
.stat {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.stat--s {
  h2, h3 {
    background: linear-gradient(to right, var(--theme-color-darker), var(--theme-color) 40%, var(--theme-color-darker));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .stat__number-wrapper {
    position: relative;

    .stat__polarity {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(100%);

      &.stat__polarity--positive {
        color: var(--success);

        &::before {
          content: " +" attr(size-difference);
        }
      }

      &.stat__polarity--negative {
        color: var(--danger);

        &::before {
          content: "" attr(size-difference);
        }
      }
    }
  }
}

.stat--l {

  h1, h2 {
    background: linear-gradient(to right, var(--theme-color-darker), var(--theme-color) 40%, var(--theme-color-darker));
    /*background: linear-gradient(to right, var(--brand-yellow-lighter), var(--brand-yellow) 40%, var(--brand-yellow-lighter));*/
    font-weight: 800;
    margin: 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  h1 {
    font-size: 3.5rem;
    line-height: 4rem;
  }

  h2 {
    font-size: 3rem;
    line-height: 3.5rem;
  }


  &.stat--minimize h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  &.stat--minimize h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

.ryalto-branding {
  .stat--l {
    h1, h2 {
      background: linear-gradient(to right, var(--brand-turquoise-darker), var(--brand-turquoise) 40%, var(--brand-turquoise-darker));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
}

.stat--left {
  text-align: left;
}

.stat--inline {
  align-items: center;
  flex-direction: row;
}

.activity-stat-published{
  background-color: var(--success-lightest)
}

.activity-stat-unpublished{
  background-color: var(--light-gray)
}
