@use 'pix-design-tokens/typography';

.evaluation-results-tab__trainings {
  position: relative;

  &--with-modal {
    padding: 0 var(--pix-spacing-4x) var(--pix-spacing-4x);
  }

  &--with-modal .evaluation-results-tab__trainings-content {
    filter: blur(2px);
  }
}

.evaluation-results-tab__trainings-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--pix-spacing-6x);
  margin-top: var(--pix-spacing-8x);
}

.evaluation-results-tab__share-results-modal {
  position: absolute;
  inset: -1rem 0 0;
  z-index: 1;

  &::before {
    position: absolute;
    background-color: var(--pix-primary-900);
    border-radius: 1.5rem;
    opacity: 0.4;
    content: '';
    inset: 0;
  }
}

.evaluation-results-tab-share-results-modal__content {
  @extend %pix-body-m;

  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: var(--pix-spacing-8x);
  align-items: center;
  max-width: 36rem;
  padding: var(--pix-spacing-8x);
  text-align: center;
  background-color: var(--pix-neutral-0);
  border: 1px solid var(--pix-neutral-100);
  border-radius: 1.5rem;
  transform: translate(-50%, -50%);
}
