/* ================================================
   AUTHOR PAGE
   ================================================ */

.author-hero {
    background: #F9F6EF;
    padding: 56px 0 48px;
}

.author-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.author-hero__img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 192px;
    height: 192px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.10);
    overflow: hidden;
}

.author-hero__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-hero__img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #faf5f6 0%, #efe2e6 100%);
}

.author-hero__img-placeholder img {
    width: 44%;
    height: auto;
    opacity: 0.6;
}

.author-hero__info {
    flex: 1;
    min-width: 0;
}

.author-hero__name {
    font-size: 28px;
    font-weight: 700;
    color: #101828;
    line-height: 1.4;
    margin: 0 0 4px;
}

.author-hero__subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #8a1538;
    margin: -10px 0 16px;
}

.author-hero__short-desc {
    font-size: 17px;
    font-weight: 500;
    color: #4a5565;
    line-height: 1.6;
    margin: 0 0 12px;
    max-width: 767px;
    width: auto;
}

.author-hero__desc {
    font-size: 16px;
    font-weight: 400;
    color: #6a7282;
    line-height: 1.75;
    margin: 0 0 32px;
    max-width: 767px;
    width: auto;
}

.author-hero__stats {
    display: flex;
    gap: 64px;
}

.author-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.author-hero__stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
}

.author-hero__stat-label {
    font-size: 14px;
    font-weight: 400;
    color: #6a7282;
}

.author-title {
    font-size: 24px;
    margin: 0;
}

.author-books-section {
    padding: 63px 0;
}

/* ============================================
   PAGINATION (shared catalog component — matches books listing)
   ============================================ */
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #4a5565;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

    .page-btn:hover {
        border-color: rgba(138, 21, 56, 0.3);
        color: #8a1538;
        background: rgba(138, 21, 56, 0.04);
    }

    .page-btn.is-active {
        background: #8a1538;
        border-color: #8a1538;
        color: #fff;
        font-weight: 700;
        pointer-events: none;
    }

.page-btn--nav svg {
    transform: scaleX(-1);
}

.page-btn--nav {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4a5565;
}

    .page-btn--nav:hover {
        border-color: rgba(138, 21, 56, 0.3);
        color: #8a1538;
    }

    .page-btn--nav[disabled],
    .page-btn--nav[aria-disabled="true"] {
        opacity: 0.35;
        pointer-events: none;
    }

/* ── Responsive ── */
@media (max-width: 768px) {
    .author-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-hero__img-wrap {
        width: 120px;
        height: 120px;
    }

    .author-hero__name  { font-size: 22px; }
    .author-hero__subtitle { font-size: 16px; }
    .author-hero__desc  { font-size: 12px; max-width: 550px; }
    .author-hero { padding: 56px 0 30px; }

  .author-hero__stats {
    justify-content: center;
    gap: 32px;
  }
}
