/* ============================================================
   AUTHORS PAGE — authors.css
   Inherits all design tokens from index.css (:root).
   Covers: hero · grid · author card · empty state
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   AUTHORS HERO
   ───────────────────────────────────────────────────────────── */
.authors-hero {
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 5% clamp(48px, 7vw, 80px);
  text-align: center;
}

/* Reuse the grid-dot overlay pattern from the homepage hero */
.authors-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Ambient orb — top-right */
.authors-hero::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(67,160,71,.26) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.authors-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  animation: heroUp .70s var(--ease-out) both;
}

/* Breadcrumb */
.authors-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.authors-breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.authors-breadcrumb a:hover { color: rgba(255,255,255,.90); }
.authors-breadcrumb-sep { color: rgba(255,255,255,.30); }

/* Title */
.au-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -.03em;
}
.au-title em {
  font-style: normal;
  color: var(--amber-bright);
}

/* Subtitle */
.au-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255,255,255,.68);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────────────────────────── */
.authors-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 5%;
}

/* ─────────────────────────────────────────────────────────────
   AUTHORS GRID
   ───────────────────────────────────────────────────────────── */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ─────────────────────────────────────────────────────────────
   AUTHOR CARD
   ───────────────────────────────────────────────────────────── */
.author-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s;
  box-shadow: var(--shadow-card);
}

/* Top accent strip — matches listing-card pattern */
.author-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green-bright);
  border-radius: 0;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #D1FAE5;
}

/* Avatar image */
.author-card-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
  flex-shrink: 0;
  margin-bottom: 4px;
  transition: border-color .22s;
}
.author-card:hover .author-card-avatar {
  border-color: var(--green-bright);
}

/* Placeholder initial when no image */
.author-card-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
  box-shadow: 0 4px 16px rgba(27,94,32,.22);
}

/* Name */
.author-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-text);
  margin: 4px 0 0;
  line-height: 1.3;
}
.author-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.author-card-name a:hover { color: var(--green-deep); }
.author-card-name a:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Position / job title */
.author-card-position {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}

/* Bio */
.author-card-bio {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--muted-text);
  line-height: 1.65;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats row */
.author-card-stats {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: var(--light-text);
}
.author-card-stats svg {
  color: var(--green-bright);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────────────────────────── */
.no-authors {
  text-align: center;
  padding: 80px 0;
  color: var(--light-text);
}
.no-authors-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.no-authors-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--muted-text);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .authors-grid { gap: 16px; }
  .hide-on-mobile { display: none; }
}

@media (max-width: 600px) {
  .authors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .author-card { padding: 24px 16px 20px; }
  .author-card-avatar,
  .author-card-placeholder { width: 72px; height: 72px; }
  .author-card-placeholder { font-size: 1.6rem; }
}

@media (max-width: 400px) {
  .authors-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .authors-hero-inner { animation: none !important; }
  .author-card,
  .author-card-avatar { transition: none !important; }
}