/**
 *
 * Caixa de compartilhamento ao final do artigo.
 * handler: pp-share-box
 * deps: pp-layout
 * version: 1.0.0
 *
 * @package theme-single
 *
 */

.share-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-surface-muted);
  border-bottom: 1px solid var(--color-surface-muted);
}

.share-box__title {
  margin: 0;
  color: var(--color-heading-muted);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--line-tight);
}

.share-box__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-box__item {
  flex: 0 0 auto;
}

.share-box__button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--color-white);
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.share-box__button:hover,
.share-box__button:focus-visible {
  color: var(--color-white);
  filter: brightness(0.94);
}

.share-box__button:active {
  transform: translateY(1px);
}

.share-box__button .icon {
  width: 20px;
  height: 20px;
}

.share-box__button--whatsapp {
  background: #25d366;
}

.share-box__button--facebook {
  background: #1877f2;
}

.share-box__button--x {
  background: #111111;
}

.share-box__button--linkedin {
  background: #0a66c2;
}

.share-box__button--email {
  background: #4f7f99;
}

.share-box__button--copy {
  background: #c62808;
}

.share-box__button--copied {
  background: var(--color-success);
}

@media (min-width: 640px) {
  .share-box {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-5);
  }

  .share-box__list {
    justify-content: flex-end;
  }
}
