/*
 * Card do AUTOR no fim das singles (notícia e conteúdo) — partial resources/views/partials/autor-card.blade.php.
 * 16/11/2026: na pegada da referência do Joel (faixa vermelha, selo «AUTOR», nome forte em itálico, gêneros e botão),
 * só que mais discreto: faixa estreita, sombra leve, detalhes finos.
 * Celular (< 700 px): tudo empilhado e centralizado, a faixa vira uma tira no topo.
 */
.pg-autor-card {
    --ac-vermelho: #d3121b;
    --ac-vermelho-escuro: #8e0a10;
    --ac-texto: #1c1c21;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;   /* foto | texto | botão */
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 900px;   /* mesma largura da imagem/texto do artigo */
    margin: 24px auto 8px;
    padding: 20px 28px 20px 20px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border: 1px solid #e6e6ea;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(17, 17, 26, .06);
    font-family: 'Roboto', system-ui, sans-serif;
    text-align: left;
}

/* faixa vermelha atrás da foto: estreita e cortada na diagonal */
.pg-autor-card__faixa {
    position: absolute;
    inset: 0 auto 0 0;
    width: 92px;
    z-index: -1;
    background: linear-gradient(160deg, var(--ac-vermelho) 0%, var(--ac-vermelho-escuro) 100%);
    clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}
.pg-autor-card__faixa::after {   /* reflexo claro na borda diagonal */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, .18) 100%);
}

/* fio vermelho fino no topo, entrando pela direita */
.pg-autor-card__linha {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 3px;
    z-index: -1;
    background: linear-gradient(90deg, transparent 0%, var(--ac-vermelho) 30%);
}

/* três traços no canto de baixo à direita */
.pg-autor-card__canto {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 120px;
    height: 10px;
    z-index: -1;
    background: repeating-linear-gradient(115deg, var(--ac-vermelho) 0 22px, transparent 22px 30px);
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
    opacity: .85;
}

/* controle de fundo, quase invisível */
.pg-autor-card__marca {
    position: absolute;
    top: 50%;
    right: 26px;
    width: 120px;
    height: 120px;
    z-index: -1;
    color: #1c1c21;
    opacity: .035;
    transform: translateY(-50%) rotate(-8deg);
    pointer-events: none;
}

/* foto: anel branco + anel vermelho fino */
.pg-autor-card__foto {
    position: relative;
    display: block;
    width: 104px;
    height: 104px;
    margin-left: 8px;
    border-radius: 50%;
    padding: 4px;
    background: #fff;
    box-shadow: 0 0 0 3px var(--ac-vermelho), 0 0 0 9px rgba(211, 18, 27, .12), 0 8px 22px rgba(0, 0, 0, .18);
    transition: transform .25s ease;
}
.pg-autor-card__foto:hover { transform: scale(1.03); }
.pg-autor-card__foto img,
.pg-autor-card__inicial {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.pg-autor-card__inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #26262c;
    color: #fff;
    font: 800 italic 40px/1 'Poppins', sans-serif;
}

/* selo «AUTOR» */
.pg-autor-card__selo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px 4px 10px;
    background: var(--ac-vermelho);
    color: #fff;
    font: 700 italic 11px/1.4 'Poppins', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.pg-autor-card__selo svg { width: 13px; height: 13px; }

/* nome + traço vermelho/escuro embaixo */
.pg-autor-card__nome {
    margin: 6px 0 0;
    padding-bottom: 8px;
    position: relative;
    font: 800 italic clamp(22px, 2.6vw, 28px)/1.1 'Poppins', sans-serif;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.pg-autor-card__nome a { color: var(--ac-texto); text-decoration: none; }
.pg-autor-card__nome a:hover { color: var(--ac-vermelho); }
.pg-autor-card__nome::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 110px;
    height: 3px;
    background: linear-gradient(90deg, var(--ac-vermelho) 0 55%, #2a2a30 55% 100%);
}

.pg-autor-card__bio {
    margin: 10px 0 0;
    color: #4a4a52;
    font-size: 14px;
    font-style: italic;
    line-height: 1.55;
}

/* botão (3ª coluna) */
.pg-autor-card__botao {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: end;
    padding: 11px 20px;
    white-space: nowrap;
    background: linear-gradient(180deg, var(--ac-vermelho) 0%, #a90d14 100%);
    border-radius: 10px;
    color: #fff;
    font: 600 14px/1.2 'Poppins', sans-serif;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(211, 18, 27, .22);
    transition: transform .2s, box-shadow .2s;
}
.pg-autor-card__botao:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(211, 18, 27, .32);
}
.pg-autor-card__botao svg { width: 16px; height: 16px; transition: transform .2s; }
.pg-autor-card__botao:hover svg { transform: translateX(3px); }

/* tablet: o botão desce para baixo do texto */
@media (max-width: 899px) {
    .pg-autor-card { grid-template-columns: 120px minmax(0, 1fr); }
    .pg-autor-card__botao { grid-column: 2; justify-self: start; }
}

/* celular: empilhado e centralizado; a faixa vira tira no topo */
@media (max-width: 699px) {
    .pg-autor-card {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
        width: calc(100% - 32px);   /* mesmo recuo de 16 px da imagem/texto no celular */
        margin-top: 30px;
        padding: 30px 18px 24px;
        text-align: center;
    }
    .pg-autor-card__faixa {
        inset: 0 0 auto 0;
        width: auto;
        height: 72px;
        clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
    }
    .pg-autor-card__linha { display: none; }
    .pg-autor-card__marca { display: none; }
    .pg-autor-card__foto { width: 104px; height: 104px; margin: 0; }
    .pg-autor-card__nome::after { left: 50%; transform: translateX(-50%); }
    .pg-autor-card__bio { font-size: 14px; }
    .pg-autor-card__botao { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-autor-card__foto,
    .pg-autor-card__botao,
    .pg-autor-card__botao svg { transition: none; }
}
