/* ==========================================================================  
   Página do Autor — author.css
   ========================================================================== */

/* Container principal */
.author-page.container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 2rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

/* --------------------------------------------------------------------------  
   1. Header do Autor — avatar, nome, credenciais, contatos
   -------------------------------------------------------------------------- */
.author-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-bg-alt);
  /* garante que nada fique cortado */
  overflow: visible;
}

.author-avatarpage {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.author-header .author-details {
  flex: 1;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin: 0 0 .25rem;
  color: var(--color-heading);
}

.author-credentials {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0 0 1rem;
}

/* Contatos (e-mail + sociais) */
.author-contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-link);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.author-contacts a:hover {
  background: var(--color-link);
  color: #fff;
}

/* FORÇA OS ÍCONES A SEMPRE APARECEREM */
.author-contacts i {
  display: inline-block;
  font-size: 1.25rem;
  color: inherit;
  line-height: 1;
}

/* --------------------------------------------------------------------------  
   2. Biografia
   -------------------------------------------------------------------------- */
.author-bio {
  grid-column: 1 / -1;
  margin: 2rem auto;
  max-width: 800px;
  font-size: 1rem;
  line-height: var(--line-height);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------  
   3. Artigos do Autor
   -------------------------------------------------------------------------- */
.author-articles {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

.author-articles h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  color: var(--color-heading);
  position: relative;
}

.author-articles h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--color-link);
  border-radius: 2px;
}

/* Grid de cards */
.author-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

/* Cartão individual */
.author-post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.author-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

/* Miniatura */
.post-card-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Conteúdo */
.post-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0;
}

.post-card-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color .2s;
}

.post-card-title a:hover {
  color: var(--color-link);
}

.post-card-date {
  font-size: .875rem;
  color: var(--color-meta-alt);
}

.post-card-excerpt {
  font-size: .95rem;
  color: var(--color-text);
  line-height: var(--line-height);
  margin-top: auto;
}

/* Mensagem “nenhum artigo” */
.no-posts-author {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1rem;
  color: var(--color-text);
  padding: 2rem 0;
}

/* 1) evita scroll lateral indesejado */
.author-page.container {
  overflow-x: hidden;
}

/* 2) wrapper que unifica nome/creds/contatos */
.author-details {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* --------------------------------------------------------------------------
   Responsividade extra (mobile)
   -------------------------------------------------------------------------- */
@media (max-width: var(--bp-md)) {
  .author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .author-avatarpage {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }

  .author-details {
    width: 100%;
  }

  .author-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 1rem auto;
  }

  .author-contacts a {
    margin: .25rem;
  }

  .author-contacts i {
    display: inline-block;
    font-size: 1.5rem;
  }

  .author-articles h2 {
    font-size: 1.5rem;
  }

  .author-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================  
   Design Premium 2026 - Author Page Updates
   ========================================================================== */

.author-header-2026 {
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.author-header-inner {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.author-avatar-wrap {
    flex-shrink: 0;
}

.author-avatar-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.author-details-2026 {
    flex: 1;
}

.author-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.author-meta-item {
    font-size: 0.9rem;
    color: #444;
}

.author-meta-item strong {
    color: var(--color-heading);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.author-social-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.author-social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eee;
    color: #555;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.author-social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.author-social-btn.email:hover { background: #ea4335; }
.author-social-btn.twitter:hover { background: #1da1f2; }
.author-social-btn.facebook:hover { background: #1877f2; }
.author-social-btn.linkedin:hover { background: #0a66c2; }
.author-social-btn.instagram:hover { background: #e1306c; }
.author-social-btn.link:hover { background: var(--color-link); }

.author-bio-2026 {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.author-bio-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.section-title-2026 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .author-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-avatar-img {
        width: 140px;
        height: 140px;
    }
    
    .author-meta-grid {
        text-align: left;
    }
    
    .author-social-row {
        justify-content: center;
    }
}

/* ==========================================================================  
   Perfil editorial do autor — reforço de E-E-A-T
   ========================================================================== */
.author-page-2026.container {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}
.author-hero-2026 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.author-hero-main,
.author-trust-panel,
.author-latest-coverage {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}
.author-hero-main { display: flex; gap: 1.5rem; padding: 1.5rem; }
.author-hero-avatar img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.author-kicker {
  display: inline-flex;
  margin-bottom: .65rem;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #16a34a;
}
.author-title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 900;
}
.author-role-line {
  margin: .5rem 0 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 700;
}
.author-bio-intro { margin-top: 1rem; color: #334155; font-size: 1.02rem; line-height: 1.72; }
.author-bio-intro p { margin: 0; }
.author-beats-row,
.focus-nav-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.author-beats-row { margin-top: 1rem; }
.author-beat-pill,
.focus-nav-links a,
.author-story-badge {
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  color: #0f172a;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
}
.author-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.15rem; }
.author-primary-link,
.author-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.05rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}
.author-primary-link { background: #16a34a; color: #fff; }
.author-secondary-link { background: #eef2ff; color: #1e40af; }
.author-trust-panel { padding: 1.25rem; }
.author-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.author-trust-item {
  padding: .95rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.author-trust-item--wide { grid-column: 1 / -1; }
.author-trust-label {
  display: block;
  color: #64748b;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.author-trust-item strong { display: block; font-size: .96rem; line-height: 1.45; color: #0f172a; }
.author-focus-nav { margin-top: 1rem; }
.focus-nav-label {
  display: block;
  margin-bottom: .55rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #16a34a;
}
.author-proof-list { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.author-proof-list p { margin: .45rem 0 0; line-height: 1.55; color: #334155; }
.author-latest-coverage { padding: 1.5rem; }
.author-section-header { margin-bottom: 1.25rem; }
.author-section-header h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.author-section-header p { margin: .45rem 0 0; color: #64748b; max-width: 720px; }
.author-lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.author-lead-thumb img,
.author-latest-thumb img {
  width: 100%; height: auto; display: block; border-radius: 16px; aspect-ratio: 16/9; object-fit: cover;
}
.author-lead-content h3 { margin: .8rem 0 .55rem; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; }
.author-lead-content h3 a,
.author-latest-info h3 a { color: #0f172a; text-decoration: none; }
.author-lead-content time,
.author-latest-info time { color: #64748b; font-size: .9rem; font-weight: 700; }
.author-lead-content p { margin: .8rem 0 0; color: #334155; font-size: 1rem; line-height: 1.7; }
.author-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.author-latest-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}
.author-latest-info h3 { margin: .45rem 0; font-size: 1.15rem; line-height: 1.28; }
@media (max-width: 991px) {
  .author-hero-2026,
  .author-lead-story { grid-template-columns: 1fr; }
  .author-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .author-hero-main { flex-direction: column; align-items: flex-start; }
  .author-trust-grid,
  .author-latest-grid { grid-template-columns: 1fr; }
  .author-title { font-size: 2rem; }
}
.author-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.author-pagination-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #475569;
  font-size: .95rem;
  font-weight: 700;
}
.author-pagination-status strong {
  color: #0f172a;
  font-weight: 900;
}
.author-pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}
.author-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .72rem 1rem;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(22,163,74,.16);
}
.author-page-link--ghost {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #dbe2ea;
  box-shadow: none;
}
@media (max-width: 680px) {
  .author-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
  .author-pagination-links {
    width: 100%;
    justify-content: flex-start;
  }
}

.author-role-line--secondary {
  font-size: .92rem;
  font-weight: 600;
  color: #64748b;
}
.author-proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin-top: .75rem;
}
.author-proof-links strong {
  color: #334155;
  margin-right: .15rem;
}
.author-proof-links a {
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  color: #1e293b;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}
.author-proof-links a:hover {
  border-color: #16a34a;
  color: #166534;
}
