/* ============================================================
   MYSIMTRAVEL - PÁGINA DO POST (single.php)
   Fundo branco, título na largura toda, texto em coluna larga
   e barra lateral ao lado do texto desde o topo.
   Componentes compartilhados (chip, CTA, tags, navegação) ficam em blog.css.
   ============================================================ */

.site-main--post {
    background: var(--color-white);
}

/* ── Cabeçalho ── */
.post-head .breadcrumb {
    padding: 20px 0 18px;
}

.post-head .breadcrumb__list {
    flex-wrap: wrap;
    row-gap: 4px;
}

.post-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

.post-head__meta i {
    margin-right: 4px;
    color: var(--color-primary);
}

.post-head__meta .blog-chip {
    min-height: 30px;
    padding: 0 12px;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-head__title {
    max-width: 1120px;
    margin: 16px 0 0;
    color: var(--color-dark);
    font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.post-head__excerpt {
    max-width: 860px;
    margin: 14px 0 0;
    color: var(--color-gray-600);
    font-size: 1.15rem;
    line-height: 1.6;
}

.post-head__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.post-author__avatar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
}

.post-author strong {
    display: block;
    color: var(--color-dark);
    font-family: var(--font-display);
    font-size: var(--text-base);
    line-height: 1.3;
}

.post-author > div > span {
    display: block;
    color: var(--color-gray-500);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-share__main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #25D366;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    transition: background var(--transition-fast);
}

.post-share__main i {
    font-size: 17px;
}

.post-share__main:hover,
.post-share__main:focus-visible {
    background: #1DA851;
    color: var(--color-white);
}

.post-share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-gray-200);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-gray-700);
    font-size: 15px;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.post-share__icon:hover,
.post-share__icon:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.post-share__icon.is-copied {
    border-color: var(--color-success);
    color: var(--color-success);
}

/* ── Texto + barra lateral ── */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
    padding: 32px 0 var(--space-3xl);
}

.post-body {
    min-width: 0;
}

/* Capa: imagem inteira, sem corte (mockups de produto) */
.post-body__cover {
    margin: 0 0 32px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--color-gray-50);
}

.post-body__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    margin: 0 auto;
    object-fit: contain;
}

/* Tipografia de leitura (só filhos diretos, para não mexer nos blocos de CTA/FAQ) */
.post-body__content.entry-content {
    color: var(--color-dark-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-body__content > p {
    margin: 0 0 1.25em;
}

.post-body__content > h2 {
    margin: 1.9em 0 0.6em;
    color: var(--color-primary-dark);
    font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.9rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.post-body__content > h3 {
    margin: 1.6em 0 0.5em;
    color: var(--color-dark);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.post-body__content > :first-child {
    margin-top: 0;
}

.post-body__content strong {
    color: var(--color-dark);
}

.post-body__content a:not([class]) {
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-body__content a:not([class]):hover {
    color: var(--color-primary);
    text-decoration-thickness: 2px;
}

.post-body__content > ul,
.post-body__content > ol {
    margin: 0 0 1.25em;
    padding-left: 1.4em;
}

.post-body__content > ul li,
.post-body__content > ol li {
    margin-bottom: 0.45em;
    padding-left: 0.2em;
}

.post-body__content > ul li::marker,
.post-body__content > ol li::marker {
    color: var(--color-primary);
    font-weight: 700;
}

.post-body__content > blockquote {
    margin: 1.8em 0;
    padding: 16px 22px;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 12px 12px 0;
    background: var(--color-primary-50);
    color: var(--color-dark);
}

.post-body__content > blockquote p:last-child {
    margin-bottom: 0;
}

.post-body__content img {
    height: auto;
    border-radius: 12px;
}

.post-body__content > figure {
    margin: 2em 0;
}

.post-body__content > figure img {
    margin: 0;
}

.post-body__content figcaption {
    margin-top: 8px;
    color: var(--color-gray-500);
    font-size: var(--text-sm);
    line-height: 1.5;
    text-align: center;
}

/* Fim do artigo */
.post-body .article-post__navigation .nav-previous a,
.post-body .article-post__navigation .nav-next a {
    height: 100%;
    border-radius: 14px;
    transition: border-color var(--transition-fast);
}

.post-body .article-post__navigation .nav-previous a:hover,
.post-body .article-post__navigation .nav-next a:hover {
    border-color: var(--color-primary);
}

.post-body .article-post__nav-title {
    color: var(--color-dark);
}

/* ── Barra lateral ── */
.post-aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-self: stretch;
    min-width: 0;
}

.post-aside__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--color-dark);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.post-aside__title::after {
    content: '';
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: var(--color-primary-light);
}

.post-aside__thumb {
    display: block;
    overflow: hidden;
    background: var(--color-gray-100);
}

.post-aside__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-aside__lead:hover .post-aside__thumb img,
.post-aside__item:hover .post-aside__thumb img {
    transform: scale(1.04);
}

.post-aside__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 80, 0, 0.14), rgba(255, 122, 26, 0.06));
    color: var(--color-primary);
}

.post-aside__lead {
    padding-bottom: 16px;
}

.post-aside__lead .post-aside__thumb {
    aspect-ratio: 3 / 2;
    margin-bottom: 12px;
    border-radius: 12px;
}

.post-aside__lead .post-aside__placeholder {
    font-size: 1.8rem;
}

.post-aside__item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid var(--color-gray-200);
}

.post-aside__item .post-aside__thumb {
    width: 88px;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
}

.post-aside__cat {
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.post-aside h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.post-aside__lead h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.post-aside h3 a {
    color: var(--color-dark);
    transition: color var(--transition-fast);
}

.post-aside h3 a:hover {
    color: var(--color-primary);
}

/* Produto recomendado acompanha a leitura */
.post-aside__sticky {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.admin-bar .post-aside__sticky {
    top: calc(var(--header-height) + 56px);
}

.post-aside .blog-sidebar-card {
    border-radius: 18px;
    background: var(--color-white);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

/* ── Relacionados ── */
.site-main--post .article-related {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-gray-200);
}

/* ── Responsivo ── */
@media (max-width: 1180px) {
    .post-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 40px;
    }
}

@media (max-width: 960px) {
    /* O título já está logo abaixo: a migalha termina na categoria */
    .post-head .breadcrumb__item--active {
        display: none;
    }

    .post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
        align-items: start;
    }

    .post-aside__sticky {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .post-head .breadcrumb {
        padding: 14px 0 14px;
    }

    .post-head__excerpt {
        font-size: 1.05rem;
    }

    .post-head__bar {
        margin-top: 20px;
    }

    .post-layout {
        padding-top: 24px;
    }

    .post-body__cover {
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .post-body__content.entry-content {
        font-size: 1.0625rem;
        line-height: 1.75;
    }

    .post-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-main--post .article-related {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 480px) {
    .post-share {
        gap: 6px;
    }

    .post-share__main {
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .post-share__main span {
        display: none;
    }

    .post-share__icon {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-aside__thumb img {
        transition: none;
    }

    .post-aside__lead:hover .post-aside__thumb img,
    .post-aside__item:hover .post-aside__thumb img {
        transform: none;
    }
}
