@use "../../scss/globals.scss";

.library-filter-options {
  &__container {
    display: flex;
    align-items: center;
    gap: calc(globals.$spacing-unit);
    flex-wrap: wrap;
  }

  &__option {
    display: flex;
    align-items: center;
    gap: calc(globals.$spacing-unit);
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all ease 0.2s;
    white-space: nowrap; /* prevent label and count from wrapping */
    border: 1px solid rgba(0, 0, 0, 0.06);

    &:hover {
      color: rgba(255, 255, 255, 0.9);
      background: rgba(255, 255, 255, 0.08);
    }

    &.active {
      color: #000;
      background: #fff;
      svg,
      svg * {
        fill: currentColor;
        color: currentColor;
      }

      .library-filter-options__count {
        background: #ebebeb;
        color: rgba(0, 0, 0, 0.9);
      }
    }
  }

  &__label {
    font-weight: 500;
    white-space: nowrap;
  }

  &__count {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    transition: all ease 0.2s;
  }
}
