@use '../../styles/variables' as *;

.empty-state {
  --empty-orb: #{$neutral-100};
  --empty-ring-fill: #{rgba($brand-blue, 0.055)};
  --empty-ring-stroke: #{$neutral-300};
  --empty-core: #{$brand-blue-soft};
  --empty-highlight: #{$white};
  --empty-mouth: #{$neutral-550};

  min-height: 220px;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 32px;
  box-sizing: border-box;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  color: $color-text-muted;
  text-align: center;
}

.empty-state__illustration {
  width: 170px;
  max-width: min(170px, 58vw);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  svg {
    width: 100%;
    height: auto;
    overflow: visible;
    display: block;
  }
}

.empty-state__content {
  max-width: 360px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-state strong {
  color: $color-text-heading;
  font-size: $font-size-18;
  font-weight: 650;
  line-height: 1.22;
}

.empty-state small {
  color: $color-text-muted;
  font-size: $font-size-13;
  font-weight: 500;
  line-height: 1.4;
}

.empty-state__actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.empty-state--not-found {
  --empty-mouth: #{$neutral-600};
}

[data-theme='dark'] {
  .empty-state {
    --empty-orb: #{$color-surface-muted};
    --empty-ring-fill: #{rgba($color-primary-rgb, 0.09)};
    --empty-ring-stroke: #{$color-surface-active};
    --empty-core: #{$color-primary-muted};
    --empty-highlight: #{$color-primary-hover};
    --empty-mouth: #{$color-text-soft};
  }
}
