@import 'src/globals/breakpoints';

@function get-breakpoint($name) {
  @return map-get($ads-breakpoints-scales, $name);
}

.container {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  max-width: 25rem;

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

  &.align-center {
    text-align: center;
  }

  &.align-right {
    text-align: right;
  }

  &.align-justified {
    text-align: justify;
  }

  &.badge-wrapper {
    flex-shrink: 0;
  }

  &.text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
}

.show-case-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.show-case-left {
  flex: 1;
}

.show-case-right {
  display: grid;
  flex: 1;
  gap: 3.125rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.standard {
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.columns .container {
  justify-content: flex-start;
  max-width: 100%;
}

.featured {
  display: flex;
  flex-direction: row;

  @media (min-width: get-breakpoint('medium')) {
    flex-direction: row;
  }
}

.columns {
  gap: 1rem;

  @media (min-width: get-breakpoint('medium')) {
    grid-template-columns: 1fr 1fr;
  }
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  @media (min-width: get-breakpoint('medium')) {
    flex-wrap: nowrap;
  }
}

.responsive {
  width: 100%;

  @media (max-width: get-breakpoint('small')) {
    .container {
      flex-direction: column;
      gap: 1rem;
      max-width: 100%;
    }

    .badge-wrapper {
      margin-bottom: 8px;
    }

    .text-wrapper {
      gap: 0.5rem;
    }
  }

  @media (min-width: get-breakpoint('small')) and (max-width: get-breakpoint('medium')) {
    .container {
      flex-direction: column;
      gap: 20px;
      max-width: 90%;
    }

    .badge-wrapper {
      margin-bottom: 0.625rem;
    }

    .text-wrapper {
      gap: 0.625rem;
    }
  }

  @media (max-width: get-breakpoint('medium')) {
    .container {
      flex-direction: row;
      gap: 1.5rem;
    }

    .badge-wrapper {
      margin-bottom: 0;
    }

    .text-wrapper {
      gap: 0.75rem;
    }
  }
}

.container.large-title {
  max-width: 51.938rem;

  @media (max-width: get-breakpoint('small')) {
    max-width: 100%;
  }
}
