/* Author archive — matches single blog brand UI */

body.author .background-img,
body.author-archive .background-img {
  overflow: visible;
}

.cc-author-archive {
  --cc-brand: #0000ff;
  --cc-ink: #0a2540;
  --cc-head: #0d0d1c;
  --cc-text: #3f4658;
  --cc-muted: #6b7280;
  --cc-line: #e8eaf1;
  --cc-bg: #f6f7fb;
  --cc-radius: 12px;
  --cc-radius-lg: 20px;

  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cc-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.cc-author-archive * {
  font-family: inherit;
}

.cc-author-archive .cc-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .cc-author-archive .cc-wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Breadcrumb (shared pattern with single post) */
.cc-author-archive .cc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-muted);
  margin-bottom: 1.5rem;
}

.cc-author-archive .cc-breadcrumb a {
  color: var(--cc-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.cc-author-archive .cc-breadcrumb a:hover {
  color: var(--cc-brand);
}

.cc-author-archive .cc-breadcrumb span {
  opacity: 0.45;
}

.cc-author-archive .cc-breadcrumb__current {
  color: #94a3b8;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero */
.cc-author-archive__hero {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--cc-line);
  background: linear-gradient(180deg, #fff 0%, var(--cc-bg) 100%);
}

@media (min-width: 768px) {
  .cc-author-archive__hero {
    padding: 2.5rem 0 3rem;
  }
}

.cc-author-archive__profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .cc-author-archive__profile {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.cc-author-archive__avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
}

@media (min-width: 640px) {
  .cc-author-archive__avatar {
    width: 120px;
    height: 120px;
  }
}

.cc-author-archive__kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cc-brand);
}

.cc-author-archive__name {
  margin: 0.25rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cc-head);
  letter-spacing: -0.02em;
}

.cc-author-archive__role {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cc-muted);
}

.cc-author-archive__bio {
  margin: 0.85rem 0 0;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--cc-text);
}

.cc-author-archive__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.25rem;
}

.cc-author-archive__stats strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--cc-brand);
  line-height: 1;
}

.cc-author-archive__stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cc-muted);
}

.cc-author-archive__count {
  margin: 1.75rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-muted);
}

/* Article grid */
.cc-author-archive__posts {
  padding: 2.5rem 0 4rem;
  background: var(--cc-bg);
}

.cc-author-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .cc-author-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cc-author-archive__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pagination */
.cc-author-archive__pagination {
  margin-top: 3rem;
}

.cc-author-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.65rem;
  margin: 0.2rem;
  border-radius: 10px;
  border: 1px solid var(--cc-line);
  background: #fff;
  color: var(--cc-head);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.cc-author-archive__pagination .page-numbers:hover,
.cc-author-archive__pagination .page-numbers:focus {
  border-color: var(--cc-brand);
  color: var(--cc-brand);
}

.cc-author-archive__pagination .page-numbers.current {
  background: var(--cc-brand);
  border-color: var(--cc-brand);
  color: #fff;
}

.cc-author-archive__pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.cc-author-archive__pagination li {
  margin: 0;
}

/* Empty state */
.cc-author-archive__empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-lg);
}

.cc-author-archive__empty p {
  margin: 0 0 1rem;
  color: var(--cc-muted);
}

.cc-author-archive__back {
  font-weight: 600;
  color: var(--cc-brand);
  text-decoration: none;
}

.cc-author-archive__back:hover {
  text-decoration: underline;
}
