/* ============================================================
   AUTHORS PAGE — authors.css
   ============================================================ */

/* Authors Hero */
.authors-hero {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
  padding: 3rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.authors-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.authors-hero__content { position: relative; z-index: 1; }
.authors-hero__title { font-size: 2.2rem; font-weight: 800; margin-bottom: .5rem; }
.authors-hero__sub { font-size: 1rem; opacity: .85; max-width: 600px; }
.authors-hero__stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}
.authors-hero__stat {
  text-align: center;
}
.authors-hero__stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
}
.authors-hero__stat-label {
  font-size: .8rem;
  opacity: .7;
}

/* Alphabet Filter */
.alphabet-filter {
  background: #fff;
  border-bottom: 1px solid #e4e5ee;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.alphabet-filter__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.alphabet-filter__letter {
  min-width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.alphabet-filter__letter:hover,
.alphabet-filter__letter.active {
  background: #4169e1;
  color: #fff;
}
.alphabet-filter__all {
  padding: 0 1rem;
  border-right: 1px solid #e4e5ee;
  margin-right: .5rem;
}

/* Authors Grid */
.authors-page { padding: 2rem 0 4rem; }
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
@media (max-width: 576px) {
  .authors-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .alphabet-filter__letter { min-width: 32px; height: 32px; font-size: .8rem; }
}

/* Compact Author Card */
.author-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .85rem;
  padding: .6rem .9rem .6rem .6rem;
  background: #f0f1f7;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition), transform var(--transition);
}
.author-card:hover { background: #e4e6f0; transform: translateY(-2px); }

.author-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4169e1 0%, #1a237e 100%);
  overflow: hidden;
}
.author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.author-card__info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.author-card__name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-card__count { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

/* Section Title with Letter */
.authors-letter-section {
  margin-bottom: 2rem;
}
.authors-letter-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #4169e1;
  display: inline-block;
}
