/*
 * LK Blog Designer — Author Archive Stylesheet
 * ============================================================ */

.lkbd-author-archive {
  width: 100%;
  background: var(--lkbd-white);
  overflow-x: hidden;
}

.lkbd-author-archive__container {
  max-width: var(--lkbd-wide);
  margin: 0 auto;
  padding: 64px 24px 80px;
  box-sizing: border-box;
}

/* ── Profile Header ───────────────────────────────────────────── */
.lkbd-author-profile {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--lkbd-border);
}

.lkbd-author-profile__avatar-wrap {
  flex-shrink: 0;
}

.lkbd-author-profile__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--lkbd-white);
  box-shadow: var(--lkbd-shadow-lg);
}

.lkbd-author-profile__info {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.lkbd-author-profile__badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--lkbd-accent);
  color: var(--lkbd-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--lkbd-radius-sm);
  margin-bottom: 16px;
  font-family: var(--lkbd-font-body);
}

.lkbd-author-profile__name {
  font-family: var(--lkbd-font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--lkbd-ink);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}

.lkbd-author-profile__bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--lkbd-ink-3);
  margin: 0 0 24px;
  max-width: 620px;
  font-family: var(--lkbd-font-body);
}

.lkbd-author-profile__stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.lkbd-author-profile__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lkbd-author-profile__stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--lkbd-ink);
  line-height: 1;
  font-family: var(--lkbd-font-body);
}

.lkbd-author-profile__stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lkbd-ink-4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--lkbd-font-body);
}

.lkbd-author-profile__social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lkbd-author-profile__social-link {
  display: inline-block;
  padding: 7px 16px;
  background: var(--lkbd-surface);
  border: 1px solid var(--lkbd-border);
  border-radius: var(--lkbd-radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--lkbd-ink-3);
  text-decoration: none;
  transition: background var(--lkbd-transition), color var(--lkbd-transition), border-color var(--lkbd-transition);
  font-family: var(--lkbd-font-body);
}

.lkbd-author-profile__social-link:hover {
  background: var(--lkbd-ink);
  color: var(--lkbd-white);
  border-color: var(--lkbd-ink);
}

/* ── Grid heading ─────────────────────────────────────────────── */
.lkbd-author-archive__grid-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--lkbd-ink);
  margin: 0 0 28px;
  font-family: var(--lkbd-font-body);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lkbd-border);
}

/* ── Grid ─────────────────────────────────────────────────────── */
.lkbd-author-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lkbd-author-archive__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .lkbd-author-archive__container { padding: 40px 16px 56px; }

  .lkbd-author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding-bottom: 36px;
    margin-bottom: 36px;
  }

  .lkbd-author-profile__avatar { width: 120px; height: 120px; }
  .lkbd-author-profile__name   { font-size: 28px; }
  .lkbd-author-profile__bio    { font-size: 15px; }
  .lkbd-author-profile__stats  { justify-content: center; }
  .lkbd-author-profile__social { justify-content: center; }

  .lkbd-author-archive__grid { grid-template-columns: 1fr; gap: 20px; }
}
