/* ==========================================================================
   Author archive page
   ========================================================================== */

#page-author {
  position: relative;
  width: 100%;
  background: #fff;
  padding-top: 120px;
}

/* ==========================================================================
   Perfil do autor
   ========================================================================== */

/* Breadcrumb */
#page-author .author-breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 40rem;
  padding-top: 24rem;
}

#page-author .author-breadcrumb a {
  color: #9900FF;
}

#page-author .author-breadcrumb a:hover {
  text-decoration: underline !important;
}

#page-author .author-breadcrumb .breadcrumb-sep {
  margin: 0 8rem;
  color: #9ca3af;
}

#page-author .author-breadcrumb .breadcrumb-current {
  color: #1d1434;
}

/* Perfil */
#page-author .section-author-profile {
  padding: 0 0 72rem;
}

#page-author .author-profile {
  display: flex;
  align-items: flex-start;
  gap: 64rem;
}

@media (max-width: 767px) {
  #page-author .author-profile {
    flex-direction: column;
    gap: 32rem;
  }
}

/* Avatar */
#page-author .author-avatar {
  flex-shrink: 0;
  width: 300rem;
  height: 300rem;
  border-radius: 4rem;
  overflow: hidden;
  background: #d1d5db;
}

@media (max-width: 1023px) {
  #page-author .author-avatar {
    width: 160rem;
    height: 160rem;
  }
}

@media (max-width: 767px) {
  #page-author .author-avatar {
    width: 120rem;
    height: 120rem;
    border-radius: 50%;
  }
}

#page-author .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info */
#page-author .author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16rem;
  padding-top: 8rem;
}

#page-author .author-name {
  color: #252525;
  font-size: 40rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

@media (max-width: 1023px) {
  #page-author .author-name {
    font-size: 32rem;
  }
}

@media (max-width: 767px) {
  #page-author .author-name {
    font-size: 28rem;
  }
}

#page-author .author-bio {
  color: #6b7280;
  font-size: 16rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

/* LinkedIn badge */
#page-author .author-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding: 8rem 16rem;
  border: 1.5px solid #9900FF;
  border-radius: 4rem;
  color: #9900FF;
  font-size: 14rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 4rem;
}

#page-author .author-linkedin:hover {
  background: #9900FF;
  color: #fff;
}

#page-author .author-linkedin svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Posts grid do autor
   ========================================================================== */

#page-author .section-author-posts {
  padding: 64rem 0 80rem;
}

#page-author .author-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32rem 24rem;
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  #page-author .author-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  #page-author .author-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Título da seção de posts */
#page-author .author-posts-title {
  display: flex;
  align-items: center;
  gap: 12rem;
  color: #252525;
  font-size: 32rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 40rem;
}

#page-author .author-posts-title-icon {
  width: 24rem;
  height: 24rem;
  display: block;
  flex-shrink: 0;
  margin-left: 32px;
}

/* Post cards — replicando estilos de #page-blog para #page-author */
#page-author .post-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s;
}

#page-author .post-card:hover {
  opacity: 0.85;
}

#page-author .post-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

#page-author .post-card-image {
  width: 100%;
  aspect-ratio: 395/239;
  overflow: hidden;
  background: #e0e7ec;
  border-radius: 8px;
}

#page-author .post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#page-author .post-card-tag {
  display: inline-block;
  padding: 6rem 10rem;
  background: #F6EBFF;
  color: #9900FF;
  font-size: 12rem;
  font-weight: 600;
  border-radius: 4px;
  margin: 16rem 0 16rem 0;
}

#page-author .post-card-date {
  color: #9ca3af;
  font-size: 14rem;
  margin-left: 16rem;
}

#page-author .post-card-title {
  color: #1d1434;
  font-size: 18rem;
  font-weight: 400;
  line-height: 1.35;
  padding: 0;
}

/* Load more */
#page-author .author-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56rem;
}

#page-author .button-outline {
  display: inline-block;
  padding: 14rem 32rem;
  border: 1px solid #DDE0E3;
  border-radius: 6px;
  background: #fff;
  color: #9900FF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#page-author .button-outline:hover {
  background: #9900FF;
  color: #fff;
  border-color: #9900FF;
}

#page-author .button-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#page-author .author-no-posts {
  color: #6b7280;
  font-size: 16rem;
  text-align: center;
  padding: 40rem 0;
}