/* Estilo automático para o tipo de post: post */

/* Leitura da notícia (single.php): conteúdo à esquerda + lateral com compartilhar e outras notícias */
#noticia {
    padding: 60px 0 80px;

    .breadcrumb-noticia {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;

        li {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        li,
        a {
            color: var(--Primrias-Azul);
            font-family: "Fredoka", sans-serif;
            font-size: 16px;
        }

        a:hover {
            color: var(--Primrias-Vermelho);
        }

        .destaque {
            font-weight: 600;
        }

        svg {
            width: 20px;
            height: 20px;
            color: var(--Primrias-Azul);
        }
    }

    .titulo-noticia {
        margin-bottom: 16px;
        color: var(--Primrias-Azul);
        font-family: "Fredoka", sans-serif;
        font-size: 32px;
        font-weight: 600;
        line-height: 1.15;
        text-transform: uppercase;
    }

    /* Categoria (etiqueta roxa) + data — mesmo estilo dos cards do blog */
    .categoria-data {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 16px;
        margin-bottom: 24px;
    }

    .categoria {
        padding: 4px 8px;
        border-radius: 4px;
        background: var(--Primrias-Azul);
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
    }

    a.categoria:hover {
        background: var(--Primrias-Vermelho);
    }

    .data {
        color: var(--Neutros-Cinza);
        font-size: 13px;
        font-weight: 600;
    }

    /* Imagem destacada: moldura azul clara ondulada atrás + imagem recortada no mesmo formato */
    .moldura-noticia {
        position: relative;
        margin-bottom: 40px;
        aspect-ratio: 16 / 6;

        &::before {
            content: "";
            position: absolute;
            inset: -14px -8px -22px 0;
            background: rgba(53, 28, 119, 0.1);
            clip-path: url(#noticia-blob);
        }

        img {
            position: relative;
            width: 100%;
            height: 100%;
            object-fit: cover;
            clip-path: url(#noticia-blob);
        }
    }

    /* Conteúdo vindo do editor do WordPress */
    .conteudo-noticia {
        color: var(--Neutros-Cinza);
        font-size: 16px;
        line-height: 1.6;

        > * + * {
            margin-top: 24px;
        }

        h2,
        h3,
        h4 {
            color: var(--Primrias-Azul);
            font-family: "Fredoka", sans-serif;
            font-weight: 600;
            line-height: 1.2;
            text-align: left;
            text-transform: none;
            letter-spacing: 0;
        }

        h2 { font-size: 26px; }
        h3 { font-size: 22px; margin-bottom: 0; }
        h4 { font-size: 19px; }

        a {
            color: var(--Primrias-Azul);
            text-decoration: underline;

            &:hover {
                color: var(--Primrias-Vermelho);
            }
        }

        ul,
        ol {
            padding-left: 24px;
        }

        ul { list-style: disc; }
        ol { list-style: decimal; }

        img {
            max-width: 100%;
            height: auto;
            border-radius: 16px;
        }

        /* Bloco "Separador" do editor = linha cinza do layout */
        hr,
        .wp-block-separator {
            margin: 40px 0;
            border: 0;
            border-top: 3px solid #E5E5E5;
            opacity: 1;
        }

        p{
            color: var(--Neutros-Cinza, #646464);
            font-size: 16px;
            font-weight: 400;
            line-height: 24px;
            font-family: "Fredoka", sans-serif;
        }

        blockquote {
            padding-left: 20px;
            border-left: 4px solid var(--Primrias-Vermelho);
            color: var(--Primrias-Azul);
            font-style: italic;
        }
    }

    /* Card "Compartilhe": azul claro com a curva no canto superior esquerdo */
    .card-compartilhar {
        position: relative;
        padding: 16px;
        border-radius: 32px;
        overflow: hidden;
        isolation: isolate;
        background: #F1F5FE;
        box-shadow: 0 4px 14px rgba(53, 28, 119, 0.08);

        &::before {
            content: "";
            position: absolute;
            z-index: -1;
            top: -110px;
            left: -60px;
            width: 220px;
            height: 160px;
            border-radius: 50%;
            background: #D6E4FF;
        }
    }

    .icone-compartilhar {
        width: 24px;
        height: 24px;
        margin-bottom: 20px;
        color: var(--Primrias-Azul);
    }

    .titulo-compartilhar {
        margin-bottom: 16px;
        color: var(--Primrias-Azul);
        font-family: "Fredoka", sans-serif;
        font-size: 18px;
        font-weight: 600;
    }

    .redes-compartilhar {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: var(--Primrias-Azul);
            color: #fff;
            transition: background-color 0.3s ease, transform 0.3s ease;

            &:hover {
                background: var(--Primrias-Vermelho);
                transform: translateY(-2px);
            }
        }

        svg {
            width: 22px;
            height: 22px;
        }
    }

    /* Outras notícias */
    .outras-noticias {
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #E5E5E5;

        h3 {
            margin: 0 0 12px;
            text-align: left;
        }

        h2 {
            margin-bottom: 0;
            padding-bottom: 20px;
            border-bottom: 1px solid #E5E5E5;
        }
    }

    .item-outra-noticia {
        padding: 20px 0;
        border-bottom: 1px solid #E5E5E5;

        .categoria-data {
            margin-bottom: 12px;
        }
    }

    .titulo-outra-noticia {
        margin-bottom: 10px;
        color: var(--Primrias-Azul);
        font-family: "Fredoka", sans-serif;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.2;

        a {
            color: inherit;
            font: inherit;
            transition: color 0.3s ease;

            &:hover {
                color: var(--Primrias-Vermelho);
            }
        }
    }

    .resumo-outra-noticia {
        margin-bottom: 16px;
        color: var(--Neutros-Cinza, #646464);
        font-family: "Fredoka", sans-serif;
        font-size: var(--Text-Sizes-Text-Regular, 16px);
        font-weight: 400;
        line-height: 150%;
    }

    @media (max-width: 768px) {
        padding: 40px 0 60px;

        .titulo-noticia {
            font-size: 24px;
        }

        .moldura-noticia {
            aspect-ratio: 16 / 9;
        }
    }
}
