/* ============ AUTHOR HERO ============ */
.writer-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}

.writer-hero-photo {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.writer-hero-name { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.writer-hero-desc { color: #4a4a4a; font-size: 15px; line-height: 1.9; margin-bottom: 22px; max-width: 720px; }

.writer-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  max-width: 680px;
}

.writer-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.writer-socials { display: flex; gap: 8px; margin-right: 6px; }
.writer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-alt);
  border: 1px solid var(--border-light);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.writer-socials a:hover { background: #fff; }

.follow-btn.following { background: var(--navy); }

/* ============ BOOKS GRID ============ */
.filter-tabs { justify-content: flex-start; margin-bottom: 26px; }

.writer-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.writer-books-grid .book-card { flex: none; }
.book-cover { display: flex; }

/* extra cover gradients for author's other books */
.wcover-2 { background: linear-gradient(160deg,#3a4a5a,#101820); }
.wcover-3 { background: linear-gradient(160deg,#6a1f2f,#2a0c14); }
.wcover-4 { background: linear-gradient(160deg,#4a3a2a,#1c140c); }
.wcover-5 { background: linear-gradient(160deg,#2a3a2a,#0c140c); }
.wcover-6 { background: linear-gradient(160deg,#5a2a4a,#1c0c1c); }
.wcover-7 { background: linear-gradient(160deg,#8a6a2a,#2c1c0c); }
.wcover-8 { background: linear-gradient(160deg,#2a4a5a,#0c1c24); }

/* ============ SIMILAR AUTHORS ROW ============ */
.authors-row.wide { justify-content: space-between; }
.authors-row.wide .author-card { flex: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .writer-hero { grid-template-columns: 1fr; text-align: center; }
  .writer-hero-photo { margin: 0 auto; }
  .writer-hero-meta { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .writer-hero-actions { justify-content: center; }
  .writer-books-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .writer-books-grid { grid-template-columns: 1fr; }
  .writer-hero-meta { grid-template-columns: 1fr 1fr; }
}
