/* ======================================================
   AUTHOR — AJUSTE VISUAL LINKEDIN STYLE
====================================================== */

.x-author-wrapper {
  background: #f3f2ef;
  padding: 40px 0 80px;
}

/* CONTAINER */
.x-author-container {
  max-width: 1128px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 0 16px;
}

/* CARDS */
.x-author-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* SIDEBAR */
.x-author-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px; /* separa perfil e social */
  position: sticky;
  top: 100px;
}

.x-author-card h1 {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 6px;
}

.x-author-role {
  font-size: 14px;
  color: #666666;
  margin-bottom: 16px;
}

.x-author-count strong {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
}

.x-author-count span {
  font-size: 13px;
  color: #777777;
}

/* FOTO CENTRALIZADA */
.x-author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px auto;
}

/* MAIN */
.x-author-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* TÍTULOS DAS SEÇÕES */
.x-author-card h2,
.x-author-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111111 !important;
  margin-bottom: 16px;
}

/* BIO */
.x-author-bio {
  font-size: 15px;
  color: #333333 !important;
  line-height: 1.6;
}

/* POSTS */
.x-author-post {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
  align-items: center;
}

.x-author-post:first-child {
  border-top: none;
}

.x-author-post img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.x-author-post-category {
  font-size: 12px;
  font-weight: 500;
  color: #0a66c2; /* azul linkedin */
  margin-bottom: 6px;
  display: block;
}

.x-author-post h4 {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 6px 0;
}

.x-author-post-date {
  font-size: 12px;
  color: #777777;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .x-author-container {
    grid-template-columns: 1fr;
  }

  .x-author-sidebar {
    position: relative;
    top: 0;
  }
}

/* ================= SOCIAL CARD ================= */

.x-author-social-card {
  margin-top: 16px;
}

.x-author-social-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #000;
}

.x-author-social-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.4;
}

.x-author-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;

  text-decoration: none;
  margin-bottom: 10px;

  transition: 0.2s ease;
}

/* X */
.x-author-x {
  background: #000;
  color: #fff;
}

.x-author-x:hover {
  background: #222;
}

/* Instagram */
.x-author-instagram {
  background: linear-gradient(45deg,#405de6,#c13584,#fd1d1d);
  color: #fff;
}

.x-author-instagram:hover {
  opacity: 0.9;
}

/* RESET DE COR DENTRO DA PAGE */
.page .x-author-wrapper {
  color: #111 !important;
}

.page .x-author-wrapper p,
.page .x-author-wrapper span,
.page .x-author-wrapper div {
  color: #333 !important;
}

.page .x-author-wrapper h2,
.page .x-author-wrapper h3 {
  color: #111 !important;
}

.x-author-card {
  margin: 0;
}

.x-author-rating {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.x-rating-stars {
  color: #f5b301;
  font-size: 18px;
  letter-spacing: 2px;
}

.x-rating-info {
  font-size: 14px;
  color: #555;
}

.x-rating-info strong {
  font-size: 18px;
  color: #000;
}

/* REMOVE FUNDO AZUL DA PAGE NA PÁGINA DE AUTOR */
.page {
  background: #f3f2ef !important;
  padding-bottom: 40px;
}

body .page {
  background: #f3f2ef !important;
}
