/*-----------------------------------------------------------------------------------

    JW Design Page CSS: single-post
    -------------------------------------------------------------------------------
    Single de Blog refinada.
    Este arquivo é editável diretamente e será carregado somente nesta página/template.
    Não usa SCSS e não depende de build.

-----------------------------------------------------------------------------------*/

@import url("../global.css");
@import url("../sections/page-hero.css");
@import url("../sections/blog.css");
@import url("../sections/contact.css");
@import url("../base/responsive.css");
@import url("../components/header-overrides.css");
@import url("../components/buttons.css");
@import url("../base/jw-responsive.css");

/* Ajustes específicos desta página/template devem entrar abaixo deste ponto.
   Mantenha regras globais fora daqui sempre que possível. */

/* Fase 17 — Base da single dinâmica */
.jw-single-post-hero__subtitle {
    max-width: 760px;
}

.jw-single-post-hero__image img,
.jw-post-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jw-post-content img {
    max-width: 100%;
    height: auto;
}

.jw-post-content iframe,
.jw-post-content video {
    max-width: 100%;
}

.jw-comments input,
.jw-comments textarea {
    max-width: 100%;
}

.jw-section--single-post-related .jw-post-card {
    margin-bottom: 0 !important;
}

.jw-section--single-post-related .jw-post-card .h-450px {
    height: 320px !important;
}

@media (max-width: 991.98px) {
    .jw-single-post-hero__date {
        margin-left: 0 !important;
    }

    .jw-single-post-hero__comments {
        margin-left: 0 !important;
        width: 100%;
    }

    .jw-single-post-hero__image {
        border-radius: 30px !important;
        height: clamp(280px, 60vw, 520px) !important;
    }

    .jw-section--single-post-related .jw-post-card .h-450px {
        height: clamp(260px, 55vw, 420px) !important;
    }
}

/* Fase 18 — Single de Blog 100% dinâmica e refinada */
.jw-single-post-article {
    display: block;
}

.jw-single-post-hero__title {
    font-size: clamp(42px, 7vw, 80px) !important;
    line-height: .98;
    letter-spacing: -0.04em;
}

.jw-single-post-hero__kicker-static {
    display: inline-flex;
}

.jw-single-post-hero__meta .date,
.jw-single-post-hero__updated,
.jw-single-post-hero__reading {
    min-width: max-content;
}

.jw-single-post-hero__figure {
    margin: 0;
}

.jw-single-post-hero__caption,
.jw-post-gallery figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    opacity: .68;
    text-align: center;
}

.jw-post-content {
    font-size: clamp(17px, 1.25vw, 20px);
    line-height: 1.75;
}

.jw-post-content > *:first-child {
    margin-top: 0;
}

.jw-post-content p,
.jw-post-content li {
    line-height: 1.75;
}

.jw-post-content p:not(:last-child),
.jw-post-content ul:not(:last-child),
.jw-post-content ol:not(:last-child),
.jw-post-content blockquote:not(:last-child),
.jw-post-content figure:not(:last-child) {
    margin-bottom: 28px;
}

.jw-post-content h2,
.jw-post-content h3,
.jw-post-content h4 {
    margin-top: 52px;
    margin-bottom: 20px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.jw-post-content h2 {
    font-size: clamp(32px, 4vw, 48px);
}

.jw-post-content h3 {
    font-size: clamp(26px, 3vw, 36px);
}

.jw-post-content h4 {
    font-size: clamp(22px, 2.4vw, 28px);
}

.jw-post-content a {
    color: var(--jw-accent, #FAB518);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.jw-post-content ul,
.jw-post-content ol {
    padding-left: 1.3em;
}

.jw-post-content ul li,
.jw-post-content ol li {
    list-style: inherit;
    margin-bottom: 10px;
}

.jw-post-content blockquote {
    padding: 28px 32px;
    border-left: 4px solid var(--jw-accent, #FAB518);
    background: rgba(255,255,255,.045);
    border-radius: 24px;
}

.jw-post-content figure {
    max-width: 100%;
}

.jw-post-content figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    opacity: .68;
    text-align: center;
}

.jw-post-page-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jw-post-page-links a,
.jw-post-page-links .post-page-numbers,
.jw-post-page-links .current {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    text-decoration: none;
}

.jw-post-page-links .current {
    background: #fff;
    color: #111;
}

.jw-single-post-quote {
    border-radius: 32px;
}

.jw-post-gallery__item {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
}

.jw-post-gallery__item img {
    min-height: 260px;
    border-radius: 28px;
}

.jw-single-post-footerbar {
    border-top: 1px solid rgba(255,255,255,.12);
}

.jw-single-post-share-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jw-single-post-copy-link {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: inherit;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.jw-single-post-copy-link:hover,
.jw-single-post-copy-link.is-copied {
    transform: translateY(-2px);
    background: #fff;
    color: #111;
}

.jw-single-post-author {
    border-radius: 32px;
}

.jw-single-post-cta-box {
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 40px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(10px);
}

.jw-single-post-cta-box__title {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.jw-single-post-cta-box__text {
    max-width: 680px;
    line-height: 1.65;
}

.jw-single-post-navigation__grid {
    gap: 24px;
}

.jw-single-post-navigation__item {
    flex: 1 1 0;
    min-height: 142px;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 30px;
}

.jw-single-post-navigation__item a {
    color: inherit;
}

.jw-single-post-navigation__item h6 {
    margin: 0;
    line-height: 1.3;
}

.jw-single-post-navigation__item .icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,.08);
    font-size: 22px;
}

.jw-single-post-navigation__empty {
    opacity: .65;
}

.jw-section--single-post-related .sec-head h3 {
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    .jw-single-post-hero__meta .ml-50px {
        margin-left: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .jw-single-post-hero__row {
        margin-bottom: 48px !important;
    }

    .jw-single-post-hero__title {
        line-height: 1.03;
    }

    .jw-single-post-footerbar__share {
        margin-left: 0 !important;
        width: 100%;
    }

    .jw-single-post-navigation__grid {
        display: block !important;
    }

    .jw-single-post-navigation__item + .jw-single-post-navigation__item {
        margin-top: 20px;
    }

    .jw-single-post-navigation__item--next,
    .jw-single-post-navigation__item--next a {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .jw-single-post-navigation__item--next .icon {
        order: -1;
        margin-left: 0 !important;
        margin-right: 20px;
    }
}

@media (max-width: 575.98px) {
    .jw-post-content blockquote {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .jw-single-post-author .d-flex {
        display: block !important;
    }

    .jw-single-post-author .author-img {
        margin-right: 0 !important;
        margin-bottom: 24px;
    }

    .jw-single-post-cta-box {
        border-radius: 28px;
    }
}


/* Fase 18.1 — Correções frontend da Single do Blog */
.jw-inline-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: 0 0 auto;
    vertical-align: -0.12em;
}

.jw-single-post-hero__comments a,
.jw-single-post-hero__comments button {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.jw-single-post-hero__comments .jw-inline-icon {
    font-size: 20px;
}

.jw-single-post-hero__image--parallax {
    position: relative;
    background: rgba(255, 255, 255, .04);
}

.jw-single-post-hero__parallax-img {
    width: 100%;
    min-height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

.jw-single-post-share-links a,
.jw-single-post-copy-link {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.065);
    color: inherit;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.jw-single-post-share-links a:hover,
.jw-single-post-copy-link:hover,
.jw-single-post-copy-link.is-copied {
    transform: translateY(-2px);
    background: var(--jw-primary, #FAB518);
    border-color: var(--jw-primary, #FAB518);
    color: #111;
}

.jw-single-post-copy-link {
    padding: 0;
}

.jw-single-post-navigation__item .icon .jw-inline-icon {
    width: 22px;
    height: 22px;
}

.jw-single-post-form {
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 34px;
    background: rgba(255,255,255,.045);
}

.jw-comments {
    position: relative;
}

.jw-comments__box {
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 38px;
    background:
        radial-gradient(circle at 12% 0%, rgba(250,181,24,.14), transparent 34%),
        rgba(255,255,255,.045);
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
}

.jw-comments__header {
    margin-bottom: clamp(24px, 4vw, 42px);
}

.jw-comments__title,
.jw-comments__reply-title {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.jw-comments__list {
    margin: 0 0 clamp(30px, 5vw, 54px);
    padding: 0;
    list-style: none;
}

.jw-comments__list .comment,
.jw-comments__list .pingback,
.jw-comments__list .trackback {
    list-style: none;
}

.jw-comments__list .comment-body {
    position: relative;
    margin-bottom: 18px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 26px;
    background: rgba(0,0,0,.16);
}

.jw-comments__list .children {
    margin: 18px 0 0 clamp(18px, 5vw, 54px);
    padding: 0;
    list-style: none;
}

.jw-comments__list .comment-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.jw-comments__list .avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.jw-comments__list .fn {
    font-style: normal;
    font-weight: 700;
}

.jw-comments__list .says {
    display: none;
}

.jw-comments__list .comment-metadata,
.jw-comments__list .reply {
    font-size: 13px;
    opacity: .72;
}

.jw-comments__list .comment-metadata a,
.jw-comments__list .reply a,
.jw-comments__pagination a {
    color: inherit;
    text-decoration: none;
}

.jw-comments__list .comment-content {
    margin-top: 16px;
    line-height: 1.7;
}

.jw-comments__list .reply a,
.jw-comments__pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
}

.jw-comments__respond {
    margin-top: clamp(28px, 5vw, 52px);
    padding-top: clamp(24px, 4vw, 40px);
    border-top: 1px solid rgba(255,255,255,.12);
}

.jw-comments__notes,
.comment-notes,
.logged-in-as {
    margin-top: 12px;
    margin-bottom: 24px;
    opacity: .72;
    line-height: 1.65;
}

.jw-comments__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.jw-comments__form p {
    margin: 0;
}

.jw-comments__form .comment-form-comment,
.jw-comments__form .comment-form-cookies-consent,
.jw-comments__form .form-submit,
.jw-comments__form .comment-notes,
.jw-comments__form .logged-in-as {
    grid-column: 1 / -1;
}

.jw-comments__form label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .74;
}

.jw-comments__form input:not([type="checkbox"]),
.jw-comments__form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(0,0,0,.18);
    color: inherit;
    padding: 16px 18px;
    outline: none;
    transition: border-color .25s ease, background .25s ease;
}

.jw-comments__form textarea {
    min-height: 170px;
    resize: vertical;
}

.jw-comments__form input:focus,
.jw-comments__form textarea:focus {
    border-color: var(--jw-primary, #FAB518);
    background: rgba(0,0,0,.26);
}

.jw-comments__form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: .8;
}

.jw-comments__form .comment-form-cookies-consent label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
}

.jw-comments__submit {
    border: 0;
    cursor: pointer;
}

.jw-comments__closed {
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    opacity: .78;
}

@media (max-width: 991.98px) {
    .jw-single-post-hero__parallax-img {
        height: clamp(340px, 70vw, 620px) !important;
    }
}

@media (max-width: 575.98px) {
    .jw-comments__box {
        border-radius: 26px;
    }

    .jw-comments__list .children {
        margin-left: 14px;
    }

    .jw-comments__form {
        grid-template-columns: 1fr;
    }
}

/* Fase 18.3 — Comentários sem âncora quebrada e ajustes finais de ícones */
.jw-single-post-comments-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.jw-single-post-comments-link:focus-visible {
    outline: 2px solid var(--jw-primary, #FAB518);
    outline-offset: 6px;
    border-radius: 999px;
}

.jw-single-post-comments-link .jw-inline-icon {
    pointer-events: none;
}

/* Fase 21.2 - Single Blog: centralização do dot no kicker estático
-----------------------------------------------------------------*/
.jw-single-post-hero__kicker-static {
    align-items: center;
    gap: 0;
    line-height: 1;
    vertical-align: middle;
}

.jw-single-post-hero__kicker-static::before {
    flex: 0 0 auto;
    align-self: center;
    transform: none !important;
    margin-top: 0;
}
