/* =====================================================================
   author-box.css – Editorial Premium 2026
   Mobile-first (avatar + nome/redes lado a lado) 
   ===================================================================== */

.author-box {
  margin: 3rem auto;
  padding: 2.5rem 0;
  max-width: 840px; /* ALINHA PERFEITAMENTE com o texto do post no desktop */
  background: transparent;
  border-top: 2px solid var(--color-heading, #111); 
  border-bottom: 1px solid #eaeaea; 
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.author-box__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.author-box__avatar { flex-shrink: 0; }

.author-box__avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
  display: block;
}

.author-box:hover .author-box__avatar-img { filter: grayscale(0%); }

.author-box__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.author-box__name {
  font-family: var(--font-sans, sans-serif); /* Mantendo coesão de portal */
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0;
  color: var(--color-heading, #111);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.author-box__name::after,
.author-box__name::before { display: none !important; }

.author-box__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; 
  align-items: center;
  position: relative; 
  z-index: 10; 
}

.author-box__contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 10;
  padding: 8px; 
  margin: -8px; 
}

.author-box__contact-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  pointer-events: none; 
}

.author-box__contact-link--email svg { fill: none; }
.author-box__contact-link--email:hover { color: var(--color-link, #0066cc); transform: translateY(-2px); }
.author-box__contact-link--twitter:hover { color: var(--social-twitter, #0f1419); transform: translateY(-2px); }
.author-box__contact-link--facebook:hover { color: var(--social-facebook, #1877F2); transform: translateY(-2px); }
.author-box__contact-link--linkedin:hover { color: var(--social-linkedin, #0A66C2); transform: translateY(-2px); }
.author-box__contact-link--instagram:hover { color: var(--social-instagram, #E1306C); transform: translateY(-2px); }

.author-box__content { margin-bottom: 1.25rem; }

.author-box__bio {
  font-family: var(--font-serif, 'Libre Baskerville', serif); 
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

.author-box__footer { display: flex; }

.author-box__posts-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-heading, #111);
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-box__posts-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.author-box__posts-link:hover { color: var(--color-link, #0066cc); }
.author-box__posts-link:hover svg { transform: translateX(4px); }

@media (min-width: 768px) {
  .author-box { margin: 4rem auto; padding: 3rem 0; }
  .author-box__avatar-img { width: 80px; height: 80px; }
  .author-box__name { font-size: 1.4rem; }
  .author-box__contacts { gap: 1rem; }
  .author-box__bio { font-size: 1.1rem; line-height: 1.7; }
}

/* Modo escuro - Author Box */
@media (prefers-color-scheme: dark) {
  .author-box { border-top-color: #475569; border-bottom-color: #334155; }
  .author-box__name { color: #f8fafc; }
  .author-box__bio { color: #cbd5e1; }
  .author-box__posts-link { color: #f8fafc; }
  .author-box__posts-link:hover { color: var(--color-link, #60a5fa); }
}
/* =====================================================================
   Caixa de autor — versão editorial mais enxuta
   ===================================================================== */
.author-box {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1.75rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15,23,42,.04);
}
.author-box__kicker {
  display: inline-flex;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #16a34a;
}
.author-box__header { align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.author-box__avatar-img { width: 72px; height: 72px; filter: none; }
.author-box__name { font-size: 1.5rem; }
.author-box__role { margin: .2rem 0 0; color: #475569; font-size: .96rem; font-weight: 700; }
.author-box__beats-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.author-box__beat-pill {
  display: inline-flex;
  align-items: center;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  color: #0f172a;
  font-size: .82rem;
  font-weight: 800;
}
.author-box__bio { font-size: 1rem; line-height: 1.7; color: #334155; }
.author-box__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.author-box__trust { display: flex; flex-wrap: wrap; gap: .75rem; color: #64748b; font-size: .84rem; font-weight: 700; }
.author-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.author-box__posts-link {
  padding: .6rem .9rem;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.author-box__posts-link svg { display: none; }
.author-box__contact-link { color: #64748b; }
@media (max-width: 640px) {
  .author-box { padding: 1.25rem 1rem; }
  .author-box__footer { align-items: flex-start; }
}
