/* =====================================================
   post-author-box.css  ·  Caja de autor al final del post
   (template-parts/post-author-box.php — solo en single.php;
    no tiene nada que ver con author.css)
   ===================================================== */

.post-author-box {
  --grafito:        #34383D;
  --grafito-suave:  #5E636A;
  --naranja:        #F26B1D;
  --fondo-claro:    #F5F4F2;
  --blanco:         #FFFFFF;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: calc(100% - 2 * max(6vw, 20px));
  max-width: 880px;
  margin: 0 auto 96px;
  padding: 56px 56px 48px;
  border-radius: 24px;
  background: var(--blanco);
  box-shadow:
    0 1px 2px rgba(38, 41, 45, .06),
    0 12px 32px -12px rgba(38, 41, 45, .18);
  text-align: center;
  color: var(--grafito);
}
.post-author-box *,
.post-author-box *::before,
.post-author-box *::after { box-sizing: border-box; }

/* Avatar (va dentro de un enlace a la página del autor) */
.post-author-box > a {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  text-decoration: none;
  transition: transform .3s;
}
.post-author-box > a:hover { transform: scale(1.04); }
.post-author-box > a:focus-visible {
  outline: 3px solid #FF8238;
  outline-offset: 6px;
}
.post-author-box img {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 4px var(--blanco),
    0 0 0 7px var(--naranja);
}

/* Nombre + bio */
.post-author-box-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.post-author-box-name { margin: 0; }
.post-author-box-name a {
  color: var(--grafito);
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--naranja);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .25s;
}
.post-author-box-name a:hover { color: var(--naranja); }
.post-author-box-name a:focus-visible {
  outline: 3px solid #FF8238;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Biografía */
.post-author-box-bio {
  max-width: 62ch;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.8;
  color: var(--grafito-suave);
}
/* Si el autor no tiene biografía, no deja espacio vacío */
.post-author-box-bio:empty { display: none; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .post-author-box { margin-bottom: 72px; padding: 48px 40px 40px; }
}
@media (max-width: 767px) {
  .post-author-box {
    width: calc(100% - 40px);
    margin-bottom: 56px;
    padding: 40px 22px 32px;
    border-radius: 20px;
  }
  .post-author-box img { width: 88px; height: 88px; }
  .post-author-box-bio { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .post-author-box * { transition: none !important; }
}