/* ===========================
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;
  }
}

/* ===========================
AUTHORS INDEX DIRECTORY
=========================== */

.authors-dir-hero {
  text-align: center;
  padding: 80px 0 40px;
  background: radial-gradient(circle at top, rgba(0, 80, 160, 0.05), transparent 60%);
  margin-bottom: 40px;
}

.authors-dir-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.authors-dir-hero p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.author-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.author-grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  text-decoration: none;
}

.author-grid-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0, 80, 160, 0.15), rgba(0, 80, 160, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-grid-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.author-grid-placeholder {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.author-grid-card h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--text);
}

.author-grid-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.author-grid-bio {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-grid-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.author-grid-stat {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-grid-social {
  display: flex;
  gap: 10px;
}

.author-grid-social .icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.author-grid-card:hover .author-grid-social .icon {
  opacity: 1;
}

/* Make icons click through to social without triggering card link if needed.
   Wait, links inside links are invalid HTML.
   We will render social icons just visually on the card or not have them be links inside the card link.
*/