/* Glampfire boosts as reaction pills. Replaces Campfire's boosts.css. */
.boosts {
  margin-block-start: 4px;
}

.boost {
  align-items: center;
  background-color: var(--gf-surface) !important;
  block-size: 28px;
  border: 1px solid var(--gf-border);
  border-radius: 999px;
  gap: 5px;
  padding: 0 9px 0 3px;

  &:hover { border-color: var(--gf-border-strong); }

  .btn:not(.avatar) { font-size: 11px; }

  &:has(.input--boost):focus-within {
    border-color: var(--gf-mention);
    box-shadow: 0 0 0 3px var(--gf-mention-soft);
  }
}

.boost__avatar {
  --avatar-size: 20px;

  inline-size: auto;

  img {
    outline: 1px solid oklch(0% 0 0 / 0.1);
    outline-offset: -1px;
  }
}

.btn:is(.boost__action) {
  --btn-background: transparent;
  --btn-border-color: var(--gf-border);
  --btn-size: 28px;
  --hover-size: 0;

  img { block-size: 16px; inline-size: 16px; opacity: 0.6; }
  &:hover { --btn-border-color: var(--gf-border-strong); }
  &:hover img { opacity: 1; }
}

.btn:is(.boost__delete) {
  --btn-size: 20px;

  display: none;

  .expanded & { display: flex; }
}

.boost__form {

  &.expanded {
    animation: boost 0.2s both;
    transform: translate3d(0, 0, 0);
  }

  .boost__form-label:focus { outline: none; }

  .input--boost {
    --hover-size: 0;
    --input-background: transparent;
    --input-border-size: 0;
    --input-padding: 0;
    --outline-size: 0;

    box-shadow: none;
    display: inherit;
    max-inline-size: 16ch;
    min-inline-size: 2em;
    outline: 0;
  }
}

.boost--deleting { animation: scale-fade-out 0.2s both; }

/* Quick reactions in the message menu */
.quick-boosts {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(4, 1fr);
}

.boost-character { font-size: 1.25rem; }
