/* autor.css — estilos da página /autor/{slug}
 *
 * Reusa os tokens globais (var(--accent), var(--surface), etc.) e
 * algumas classes utilitárias de outras páginas (t-eyebrow, btn).
 * Estrutura própria com prefixo author-* pra evitar colisão.
 */

.author-page {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

/* =========================
 * HERO
 * ========================= */
.author-hero {
  position: relative;
  padding: 120px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.author-hero-glow {
  position: absolute;
  left: -10%; top: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 25%, transparent) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}
.author-hero-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.author-hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.author-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-hero-initials {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 72px;
  font-weight: 500;
  color: var(--accent);
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 12%, var(--surface)) 0%, var(--surface) 100%);
  letter-spacing: -0.02em;
}
.author-hero-body { display: flex; flex-direction: column; gap: 12px; }
.author-hero-name {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 4px 0 0;
}
.author-hero-role {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}
.author-hero-tagline {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--fg-2);
  margin: 4px 0 8px;
  max-width: 600px;
}

/* Chips de contato (LinkedIn, e-mail) */
.author-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
.author-chip:hover {
  border-color: color-mix(in oklch, var(--accent) 50%, var(--border));
  background: color-mix(in oklch, var(--accent) 6%, var(--surface));
  color: var(--accent);
}
.author-chip svg { color: var(--fg-2); }
.author-chip:hover svg { color: var(--accent); }

@media (max-width: 800px) {
  .author-hero { padding: 96px 0 48px; }
  .author-hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .author-hero-avatar { width: 140px; height: 140px; }
  .author-hero-initials { font-size: 52px; }
}

/* =========================
 * BIO + STATS
 * ========================= */
.author-bio-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.author-bio-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.author-bio-text { display: flex; flex-direction: column; gap: 16px; }
.author-bio-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 8px;
}
.author-bio-text p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}

.author-expertise { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.author-expertise-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.author-expertise-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.author-expertise-tag {
  font-size: 12px;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-2);
}

.author-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: sticky;
  top: 96px;
}
.author-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.author-stat:first-child { padding-top: 0; }
.author-stat:last-of-type { border-bottom: 0; padding-bottom: 16px; }
.author-stat-num {
  font-size: 24px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.author-stat-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.author-stats-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.author-stats-cta:hover { opacity: 0.92; transform: translateY(-1px); }

@media (max-width: 900px) {
  .author-bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .author-stats { position: static; }
}

/* =========================
 * POSTS GRID
 * ========================= */
.author-posts { padding: 80px 0; border-bottom: 1px solid var(--border); }
.author-posts-head { max-width: 720px; margin-bottom: 40px; }
.author-posts-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 0;
}
.author-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .author-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .author-posts-grid { grid-template-columns: 1fr; } }

.author-post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}
.author-post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--border));
}
.author-post-cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
}
.author-post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.author-post-card:hover .author-post-cover img { transform: scale(1.04); }
.author-post-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.author-post-cat {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.author-post-body h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
.author-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: auto;
}
.author-post-meta .dot {
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--fg-muted);
  opacity: 0.6;
}

/* =========================
 * CTA
 * ========================= */
.author-cta { padding: 80px 0 96px; }
.author-cta-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 56px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 10%, var(--surface)) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 80px -40px color-mix(in oklch, var(--accent) 30%, #000);
}
.author-cta-title {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.author-cta-copy {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
  max-width: 480px;
}
.author-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.author-cta-actions .btn { justify-content: center; }
@media (max-width: 800px) {
  .author-cta-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
}

