/* ===========================
AUTHOR PROFILE PAGE
=========================== */

.author-main {
  margin-top: 70px;
}

/* HERO */
.author-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  margin-bottom: 70px;
  align-items: center;
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      rgba(0, 80, 160, 0.15),
      rgba(0, 80, 160, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      rgba(0, 80, 160, 0.18),
      rgba(0, 80, 160, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary);
  border: 1px solid var(--border);
}

.author-intro h1 {
  font-size: 2.6rem;
  margin-bottom: 4px;
}

.author-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #fff;
  /* IMPORTANT for transparent images */
  border: 1px solid var(--border);
}


.author-role {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}

.author-bio {
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.7;
}

.author-meta {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.author-avatar:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

/* DETAILS */
.author-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 80px;
}

.author-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.author-card h2 {
  margin-bottom: 12px;
}

.author-card ul {
  margin-left: 18px;
}

.author-card li {
  margin-bottom: 8px;
  color: var(--muted);
}

/* ARTICLES */
.author-articles {
  margin-bottom: 70px;
}

.author-articles h2 {
  margin-bottom: 24px;
}

.author-article-list {
  display: grid;
  gap: 22px;
}

.author-article {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.author-article h3 {
  font-size: 1.2rem;
}

.author-article p {
  color: var(--muted);
  margin: 6px 0;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* CONTACT */
.author-contact {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* RESPONSIVE */
@media (min-width: 768px) and (max-width: 979px) {
  .author-intro h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 767px) {
  .author-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .author-avatar {
    margin: 0 auto 10px;
  }

  .author-intro h1 {
    font-size: 2.2rem;
  }

  .author-main {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .author-intro h1 {
    font-size: 1.8rem;
  }

  .author-avatar,
  .avatar-placeholder,
  .author-photo {
    width: 90px;
    height: 90px;
  }

  .author-card {
    padding: 20px;
  }
}