/* ---------------------------------------------------------------------------
 * px-blog — estrutura visual do blog. MOTOR: idêntico em todos os sites.
 *
 * Não coloque cor, fonte ou raio literal aqui. Tudo vem das variáveis
 * definidas em assets/css/px-blog-theme.css, que é gerado por site.
 * -------------------------------------------------------------------------- */

/* ── Listagem ─────────────────────────────────────────────────────────────── */

.pxb-section {
    padding: 4rem 0;
}

.pxb-section-title {
    color: var(--pxb-primary);
    font-family: var(--pxb-font-heading);
    font-weight: 700;
    margin-bottom: 2rem;
}

.pxb-section-title span {
    color: var(--pxb-secondary);
}

.pxb-card {
    border: none;
    border-radius: var(--pxb-radius);
    box-shadow: var(--pxb-shadow);
    overflow: hidden;
    transition: transform .2s ease;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.pxb-card:hover {
    transform: translateY(-4px);
}

.pxb-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pxb-card__placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--pxb-primary), var(--pxb-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.pxb-card__placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, .3);
}

.pxb-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.pxb-category {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--pxb-secondary);
}

.pxb-date {
    font-size: .78rem;
    color: var(--pxb-text-muted);
}

.pxb-card__title {
    color: var(--pxb-primary);
    font-family: var(--pxb-font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    margin: .25rem 0 0;
}

.pxb-card:hover .pxb-card__title {
    color: var(--pxb-secondary);
}

.pxb-card__excerpt {
    color: var(--pxb-text-muted);
    font-size: .875rem;
    line-height: 1.5;
    margin-top: .75rem;
    flex: 1 1 auto;
}


.pxb-empty {
    color: var(--pxb-text-muted);
}

.pxb-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: .5;
}


/* ── Hero (post e categoria) ─────────────────────────────────────────────── */

.pxb-hero {
    background: linear-gradient(135deg, var(--pxb-primary), var(--pxb-primary-light));
    padding: 3rem 0 2rem;
    color: #fff;
}

.pxb-hero a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.pxb-hero a:hover {
    color: #fff;
}



.pxb-post-title {
    font-family: var(--pxb-font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: .75rem 0 0;
}

.pxb-post-meta {
    font-size: .85rem;
    opacity: .85;
    margin-top: 1rem;
}

.pxb-featured {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 0 0 16px 16px;
}

/* ── Corpo do post ───────────────────────────────────────────────────────── */

.pxb-post-body {
    padding: 2.5rem 0;
}

.pxb-content {
    font-family: var(--pxb-font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--pxb-text);
}

.pxb-content h1,
.pxb-content h2,
.pxb-content h3,
.pxb-content h4 {
    font-family: var(--pxb-font-heading);
    color: var(--pxb-primary);
    margin-top: 2rem;
}

.pxb-content a {
    color: var(--pxb-secondary);
}

.pxb-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.pxb-content iframe {
    max-width: 100%;
    border: 0;
    border-radius: 8px;
    margin: 1rem 0;
}

.pxb-content blockquote {
    border-left: 4px solid var(--pxb-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--pxb-text-muted);
    font-style: italic;
}

.pxb-content pre {
    background: var(--pxb-surface);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.pxb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    display: block;
    overflow-x: auto;
}

.pxb-content th,
.pxb-content td {
    border: 1px solid var(--pxb-border);
    padding: .6rem .8rem;
    text-align: left;
}

.pxb-content th {
    background: var(--pxb-surface);
    color: var(--pxb-primary);
}

/* ── Compartilhar ────────────────────────────────────────────────────────── */

.pxb-share {
    background: var(--pxb-surface);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-top: 3rem;
}

.pxb-share__title {
    font-family: var(--pxb-font-heading);
    font-weight: 700;
    color: var(--pxb-primary);
    margin-bottom: 1rem;
}

.pxb-share__list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pxb-share__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.1rem;
    border: 0;
    border-radius: var(--pxb-radius-pill);
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s, transform .18s;
}

.pxb-share__btn:hover {
    opacity: .85;
    transform: translateY(-2px);
    color: #fff;
}

.pxb-share__btn--whatsapp { background: #25D366; }
.pxb-share__btn--facebook { background: #1877F2; }
.pxb-share__btn--twitter  { background: #1DA1F2; }
.pxb-share__btn--linkedin { background: #0A66C2; }

.pxb-share__btn--copy {
    background: #fff;
    color: var(--pxb-text);
    border: 1px solid var(--pxb-border);
}

.pxb-share__btn--copy:hover {
    color: var(--pxb-text);
}

/* ── Relacionados ────────────────────────────────────────────────────────── */

.pxb-related {
    padding: 2.5rem 0;
    border-top: 1px solid var(--pxb-border);
    margin-top: 2rem;
}

.pxb-related__title {
    font-family: var(--pxb-font-heading);
    color: var(--pxb-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pxb-related__title span {
    color: var(--pxb-secondary);
}

.pxb-related .pxb-card__img,
.pxb-related .pxb-card__placeholder {
    height: 130px;
}

.pxb-related .pxb-card__title {
    font-size: .9rem;
}

/* ── Utilidades ──────────────────────────────────────────────────────────── */

a.pxb-plain {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* ── Ajustes sobre componentes do Bootstrap ──────────────────────────────────
 * O blog usa .btn, .badge, .breadcrumb e .pagination do Bootstrap já carregado
 * pelo site. As cores saem das variáveis --bs-* definidas por site no
 * px-blog-theme.css. Aqui ficam só os ajustes que dependem do contexto e que
 * nenhuma variável resolve.
 * ------------------------------------------------------------------------- */

/* O breadcrumb vive dentro do hero, que tem fundo escuro: as cores do
   Bootstrap (pensadas para fundo claro) ficariam ilegíveis ali. */
.pxb-hero .pxb-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45);
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .6);
    --bs-breadcrumb-margin-bottom: 1rem;
    font-size: .82rem;
}

/* .badge do Bootstrap não tem variante de cor própria: a cor vem de utilitário
   (.text-bg-*) com paleta fixa, que não é a do site. */
.pxb-badge {
    background-color: var(--pxb-secondary);
    color: #fff;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

a.pxb-badge:hover {
    background-color: var(--pxb-secondary-dark);
    color: #fff;
}
