/* ==========================================================================
   TRENDWRITES - AUTHOR PAGE STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AUTHOR HERO SECTION (3-column: avatar | bio | stats)
   -------------------------------------------------------------------------- */
.author-hero {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.author-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

/* Avatar */
.author-hero-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.author-hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(30,64,175,0.12);
}
.author-hero-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Center Bio */
.author-hero-bio-col {}
.author-hero-name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}
.author-hero-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.author-hero-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 1.25rem;
}
.author-hero-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.author-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-card);
  transition: all 0.2s;
}
.author-social-pill:hover { border-color: var(--primary); color: var(--primary); background-color: var(--primary-light); }
.author-social-pill svg { flex-shrink: 0; }

/* Stats Card (Right Column) */
.author-stats-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 200px;
}
.author-stats-item { margin-bottom: 1.25rem; }
.author-stats-item:last-child { margin-bottom: 0; }
.author-stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.author-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.author-stats-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* --------------------------------------------------------------------------
   2. EXPERTISE TAGS ROW
   -------------------------------------------------------------------------- */
.author-expertise-bar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.expertise-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.expertise-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}
.expertise-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(30, 64, 175, 0.2);
}

/* --------------------------------------------------------------------------
   3. AUTHOR CONTENT LAYOUT (Articles Grid + Sidebar)
   -------------------------------------------------------------------------- */
.author-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  align-items: start;
}
.author-main-col { min-width: 0; }

/* Section Heading (reused from home but slightly adjusted) */
.author-section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-section-heading::before {
  content: "";
  display: block;
  width: 4px;
  height: 24px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   4. AUTHOR ARTICLES GRID (3 columns)
   -------------------------------------------------------------------------- */
.author-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Author Article Card */
.author-article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.author-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.author-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-subtle);
}
.author-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.author-article-card:hover .author-card-img img { transform: scale(1.06); }
.author-card-body .badge { align-self: flex-start; margin-bottom: 0.6rem; }
.author-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.author-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.author-card-title a:hover { color: var(--primary); }
.author-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   5. PAGINATION
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background-color: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.prev, .page-btn.next { width: auto; padding: 0 1rem; gap: 0.35rem; }

/* --------------------------------------------------------------------------
   6. AUTHOR SIDEBAR WIDGETS
   -------------------------------------------------------------------------- */
.author-sidebar {
  position: sticky;
  top: 90px;
}

.author-about-widget {
  background: linear-gradient(135deg, var(--accent) 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.author-about-widget-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 0.75rem;
}
.author-about-widget h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.25rem; }
.author-about-widget .role { color: var(--primary); font-size: 0.82rem; font-weight: 700; margin-bottom: 0.75rem; }
.author-about-widget p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }

/* Skills Progress Bars */
.skills-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.5rem 0; }
.skill-item {}
.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.skill-bar {
  height: 6px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}
