// ============================================
// Material Symbols Outlined — base class
// Equivalent to what Google Fonts ships alongside @font-face
// ============================================

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

// ============================================
// OVERRIDES — Icons
// ============================================

.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;

  &--xs {
    width: 1rem;
    height: 1rem;
  }
  &--sm {
    width: 1.25rem;
    height: 1.25rem;
  }
  &--md {
    width: 1.5rem;
    height: 1.5rem;
  }
  &--lg {
    width: 2rem;
    height: 2rem;
  }
  &--xl {
    width: 2.5rem;
    height: 2.5rem;
  }

  &--muted {
    color: $text-muted;
  }
  &--primary {
    color: $primary;
  }
  &--inverse {
    color: $color-text-inverse;
  }
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: radius(full);
  background-color: $bg-muted;
  color: $body-color;
  flex-shrink: 0;

  .icon {
    width: 50%;
    height: 50%;
  }

  &--sm {
    width: 2rem;
    height: 2rem;
  }
  &--lg {
    width: 3.5rem;
    height: 3.5rem;
  }
  &--xl {
    width: 4.5rem;
    height: 4.5rem;
  }

  &--primary {
    background-color: rgba($primary, 0.1);
    color: $primary;
  }

  &--dark {
    background-color: $gray-900;
    color: $color-text-inverse;
  }

  &--square {
    border-radius: radius(md);
  }
}
