/**
 *
 * Caixa de assinatura: autor, datas, tempo de leitura e acoes de compartilhamento.
 * handler: pp-author-box
 * deps: pp-layout
 * version: 1.0.0
 *
 * @package theme-single
 *
 */

.author-box {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-4) 0;
}
.author-box__profile {
  display: flex;
  flex: 1 1 100%;
  min-width: 0;
  align-items: center;
  gap: var(--space-4);
}

.author-box__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__avatar--square {
  width: auto;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__content {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.author-box__name {
  color: var(--color-text-strong);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--line-tight);
  text-transform: uppercase;
}

.author-box__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--line-base);
}

.author-box__action--comments {
  min-width: 76px;
}
.author-box__reading-time {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  border-radius: 6px;
  padding: 0 var(--space-4);
  background: #eff1f4;
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: var(--line-tight);
  white-space: nowrap;
}

.author-box__reading-time .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 1.6;
}

.author-box__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-5);
  max-width: 100%;
  flex-wrap: wrap;
}

.author-box__actions-list {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-3);
}

.author-box__action {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--color-white);
  line-height: var(--line-tight);
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

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

.author-box__action:active {
  transform: translateY(1px);
}

.author-box__action .icon {
  flex: 0 0 auto;
}

.author-box__action--whatsapp {
  background: #25d366;
}

.author-box__action--whatsapp .icon {
  width: 24px;
  height: 24px;
}

.author-box__action--share {
  appearance: none;
  background: #b73477;
}

.author-box__action--share .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.author-box__action--comments {
  gap: var(--space-2);
  min-width: 76px;
  padding: 0 var(--space-3);
  background: #8e2a97;
  font-size: var(--text-md);
  font-weight: 700;
}

.author-box__action--comments .icon {
  width: 24px;
  height: 23px;
  stroke-width: 1.7;
}

@media (min-width: 768px) {
  .author-box {
    flex-wrap: nowrap;
    gap: var(--space-5);
  }
}
