/* ============================================
   Perfis de autor - cabeçalho e listagem
   ============================================ */
.autor-profile-page .autor-profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 440px;
    padding: 72px 0;
    color: #ffffff;
    background-color: #222222;
    background-repeat: no-repeat;
    background-position: center 22%;
    background-size: cover;
    overflow: hidden;
}

.autor-profile-page .autor-profile-hero.no-photo {
    background-image: linear-gradient(135deg, #2f2f35 0%, #6b5d3e 100%);
}

.autor-profile-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.52) 58%, rgba(0, 0, 0, 0.78) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 100%);
    pointer-events: none;
}

.autor-profile-hero .container {
    position: relative;
    z-index: 2;
}

.autor-profile-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.autor-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.autor-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autor-profile-avatar span {
    font-size: 58px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.autor-profile-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.autor-profile-name {
    margin: 0 0 20px;
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
    overflow-wrap: break-word;
}

.autor-profile-bio {
    max-width: 780px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.94);
    text-align: left;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.autor-profile-bio > :first-child {
    margin-top: 0;
}

.autor-profile-bio > :last-child {
    margin-bottom: 0;
}

.autor-profile-bio p,
.autor-profile-bio ul,
.autor-profile-bio ol {
    margin-bottom: 12px;
}

.autor-profile-bio a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.autor-profile-bio a:hover,
.autor-profile-bio a:focus {
    color: #ffe3f1;
}

.autor-profile-count {
    display: inline-block;
    margin: 20px 0 0;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
}

.autor-profile-page .autor-profile-content {
    padding-bottom: 20px;
}

.autor-profile-page .autor-profile-content .page-container {
    margin-top: 48px;
}

.autor-profile-section-header {
    margin-bottom: 32px;
    text-align: center;
}

.autor-profile-section-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #b8892c;
}

.autor-profile-section-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    color: #222222;
    overflow-wrap: break-word;
}

.autor-profile-posts .blog-posts-list {
    margin-bottom: 10px;
}

.autor-profile-posts .blog-post {
    margin-bottom: 30px;
}

.autor-profile-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 42px 30px;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #faf9f6;
    text-align: center;
}

.autor-profile-empty-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #222222;
}

.autor-profile-empty p:last-child {
    margin-bottom: 0;
    color: #666666;
}

.autor-profile-empty-action {
    margin-top: 16px;
}

.autor-profile-empty-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #222222;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.autor-profile-empty-link:hover,
.autor-profile-empty-link:focus {
    background: #000000;
    color: #ffffff;
    text-decoration: none;
}

.autor-profile-pagination {
    margin: 20px 0 50px;
}

.autor-profile-pagination .autor-pagination-inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

.autor-profile-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.autor-profile-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.autor-profile-pagination ul.page-numbers .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #e0dede;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #222222;
    text-decoration: none;
    background: #ffffff;
}

.autor-profile-pagination ul.page-numbers a.page-numbers:hover,
.autor-profile-pagination ul.page-numbers a.page-numbers:focus {
    border-color: #e00076;
    color: #e00076;
    text-decoration: none;
}

.autor-profile-pagination ul.page-numbers .page-numbers.current {
    border-color: #e00076;
    color: #ffffff;
    background: #e00076;
}

.autor-profile-pagination ul.page-numbers .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

@media (max-width: 991px) {
    .autor-profile-page .autor-profile-hero {
        min-height: 400px;
        padding: 56px 0;
    }

    .autor-profile-avatar {
        width: 136px;
        height: 136px;
    }

    .autor-profile-name {
        font-size: 42px;
    }

    .autor-profile-section-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .autor-profile-page .autor-profile-hero {
        min-height: 360px;
        padding: 42px 0;
        background-position: center 18%;
    }

    .autor-profile-avatar {
        width: 112px;
        height: 112px;
        margin-bottom: 16px;
        border-width: 4px;
    }

    .autor-profile-avatar span {
        font-size: 42px;
    }

    .autor-profile-name {
        margin-bottom: 16px;
        font-size: 32px;
    }

    .autor-profile-bio {
        font-size: 15px;
        line-height: 1.7;
    }

    .autor-profile-count {
        margin-top: 16px;
        font-size: 12px;
    }

    .autor-profile-page .autor-profile-content .page-container {
        margin-top: 34px;
    }

    .autor-profile-section-header {
        margin-bottom: 24px;
    }

    .autor-profile-section-title {
        font-size: 24px;
    }

    .autor-profile-empty {
        padding: 32px 20px;
    }

    .autor-profile-pagination ul.page-numbers .page-numbers {
        min-width: 38px;
        min-height: 38px;
        padding: 7px 11px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .autor-profile-avatar {
        width: 96px;
        height: 96px;
    }

    .autor-profile-name {
        font-size: 28px;
    }

    .autor-profile-bio {
        text-align: left;
    }
}
