.blog-post-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 116, 217, .14), transparent 32%),
        radial-gradient(circle at top right, rgba(58, 190, 64, .12), transparent 30%),
        linear-gradient(180deg, #071629 0%, #0b1728 34%, #f3f7fb 34%, #f3f7fb 100%);
    color: #172033;
    padding-bottom: 60px;
}

.post-breadcrumb {
    background: rgba(4, 13, 26, .78);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: .75rem 0;
}

.post-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    font-size: .84rem;
    color: #b6c3d3;
}

.post-breadcrumb-inner a {
    color: #b6c3d3;
    text-decoration: none;
}

.post-breadcrumb-inner a:hover {
    color: #ffffff;
}

.post-breadcrumb-inner strong {
    color: #ffffff;
    font-weight: 700;
}

.post-full-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    padding: 32px 0 3rem;
    align-items: start;
}

.post-alert {
    margin-bottom: 1.25rem;
}

.post-content {
    background: rgba(10, 22, 40, .96);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .24);
}

.post-content-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(circle at top right, rgba(58, 190, 64, .12), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.03), transparent);
}

.post-badges-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.post-title {
    font-family: var(--font-head, Arial, sans-serif);
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    color: #ffffff;
    line-height: 1.22;
    margin: 0 0 1.25rem;
    letter-spacing: -0.03em;
}

.post-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-author-box {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(37, 86, 168, .35);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .9rem;
    color: #f3c95c;
    flex-shrink: 0;
}

.post-author-name {
    font-size: .9rem;
    font-weight: 800;
    color: #ffffff;
}

.post-date {
    font-size: .77rem;
    color: #9fb0c4;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: .8rem;
    color: #9fb0c4;
    margin-left: auto;
    flex-wrap: wrap;
}

.post-content-body {
    padding: 2rem;
    font-size: .98rem;
    line-height: 1.82;
    color: #e6edf6;
}

.post-content-body h1,
.post-content-body h2,
.post-content-body h3 {
    font-family: var(--font-head, Arial, sans-serif);
    color: #ffffff;
    margin: 1.5rem 0 .75rem;
    line-height: 1.25;
}

.post-content-body h2 {
    font-size: 1.35rem;
    border-bottom: 1px solid rgba(201, 168, 76, .24);
    padding-bottom: .5rem;
}

.post-content-body h3 {
    font-size: 1.12rem;
    color: #f3c95c;
}

.post-content-body p {
    margin: 0 0 1rem;
}

.post-content-body ul,
.post-content-body ol {
    margin: .75rem 0 1rem 1.5rem;
}

.post-content-body li {
    margin-bottom: .35rem;
}

.post-content-body strong {
    color: #ffffff;
}

.post-content-body a {
    color: #f3c95c;
}

.post-content-body a:hover {
    color: #ffe08a;
    text-decoration: underline;
}

.post-content-body blockquote {
    border-left: 3px solid #c9a84c;
    background: rgba(201, 168, 76, .08);
    padding: .9rem 1.25rem;
    border-radius: 0 12px 12px 0;
    margin: 1.25rem 0;
    color: #cbd5e1;
    font-style: italic;
}

.post-content-body code {
    background: rgba(4, 13, 26, .88);
    color: #f3c95c;
    padding: .15rem .45rem;
    border-radius: 6px;
    font-family: var(--font-mono, Consolas, monospace);
    font-size: .88em;
}

.post-content-body pre {
    background: rgba(4, 13, 26, .92);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.post-content-body pre code {
    background: none;
    padding: 0;
    color: #80ffaa;
}

.post-tags {
    padding: 0 2rem 1.5rem;
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}

.post-tag {
    text-decoration: none;
}

.post-share {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(53, 116, 240, .25);
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: rgba(53, 116, 240, .08);
}

.post-share span {
    font-size: .84rem;
    color: #3574F0;
    font-weight: 800;
}
.post-share .btn {
    background: #3574F0;
    border-color: #3574F0;
    color: #ffffff !important;
    font-weight: 800;
}

.post-share .btn:hover {
    background: #245fd1;
    border-color: #245fd1;
    color: #ffffff !important;
}
.comments-section {
    margin-top: 0;
    padding: 1.75rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.comments-title {
    font-size: 1.08rem;
    font-family: var(--font-head, Arial, sans-serif);
    color: #ffffff;
    margin: 0 0 1.5rem;
}

.comment-item {
    display: flex;
    gap: .9rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.comment-item:last-child {
    border-bottom: 0;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 86, 168, .34);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 900;
    color: #f3c95c;
    flex-shrink: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: #9fb0c4;
    margin-bottom: .35rem;
}

.comment-meta strong {
    color: #ffffff;
}

.comment-badge {
    font-size: .65rem;
}

.comment-text {
    font-size: .9rem;
    color: #d7e1ee;
    line-height: 1.62;
}

.reply-btn {
    background: none;
    border: none;
    color: #f3c95c;
    font-size: .78rem;
    cursor: pointer;
    padding: 0;
    margin-top: .45rem;
    transition: color .2s;
}

.reply-btn:hover {
    color: #ffe08a;
    text-decoration: underline;
}

.comment-reply {
    margin-left: 2rem;
    background: rgba(4, 13, 26, .42);
    border-left: 2px solid rgba(201, 168, 76, .28);
    border-radius: 0 12px 12px 0;
    padding: .85rem 1rem;
    margin-top: .75rem;
    margin-bottom: .5rem;
}

.comments-empty,
.comments-closed {
    margin-bottom: 1.5rem;
}

.comment-form-box {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.comment-form-box h4 {
    font-size: .98rem;
    color: #ffffff;
    margin: 0 0 1.1rem;
}

.comment-visitor-alert {
    font-size: .84rem;
    padding: .65rem .9rem;
}

.comment-form-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

#cancelar-reply {
    display: none;
}

.post-sidebar {
    position: sticky;
    top: 84px;
}

.sidebar-widget {
    background: rgba(10, 22, 40, .96);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
}

.sidebar-back {
    text-align: center;
}

.widget-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #f3c95c;
    font-weight: 900;
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rel-link {
    display: block;
    padding: .62rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: .86rem;
    color: #d7e1ee;
    text-decoration: none;
    line-height: 1.4;
    transition: color .2s;
}

.rel-link:hover {
    color: #f3c95c;
}

.rel-link:last-child {
    border-bottom: 0;
}

.post-info-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    font-size: .84rem;
    color: #cbd5e1;
}

.donate-widget {
    background: linear-gradient(135deg, #3574F0 0%, #245fd1 100%);
    border: 1px solid rgba(53, 116, 240, .35);
    box-shadow: 0 16px 34px rgba(53, 116, 240, .24);
}

.donate-widget div {
    font-size: .88rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: .95rem;
    font-weight: 700;
}

.donate-widget .btn {
    background: #ffffff;
    border-color: #ffffff;
    color: #245fd1 !important;
    font-weight: 900;
}

.donate-widget .btn:hover {
    background: #eef4ff;
    border-color: #eef4ff;
    color: #1749ad !important;
}

/* Fallbacks caso o CSS global não tenha badges suficientes */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .38rem .65rem;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1;
}

.badge-primary {
    background: rgba(11, 123, 211, .18);
    color: #93d4ff;
    border: 1px solid rgba(11, 123, 211, .28);
}

.badge-accent {
    background: rgba(201, 168, 76, .16);
    color: #f3c95c;
    border: 1px solid rgba(201, 168, 76, .28);
}

.badge-success {
    background: rgba(54, 189, 66, .16);
    color: #9af59f;
    border: 1px solid rgba(54, 189, 66, .28);
}

.badge-info {
    background: rgba(14, 165, 233, .16);
    color: #9be4ff;
    border: 1px solid rgba(14, 165, 233, .28);
}

.badge-warning {
    background: rgba(245, 158, 11, .16);
    color: #ffd58a;
    border: 1px solid rgba(245, 158, 11, .28);
}

.badge-muted {
    background: rgba(148, 163, 184, .16);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .24);
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.btn-full {
    width: 100%;
}

@media(max-width: 980px) {
    .post-full-wrap {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media(max-width: 720px) {
    .blog-post-page {
        background:
            linear-gradient(180deg, #071629 0%, #0b1728 24%, #f3f7fb 24%, #f3f7fb 100%);
    }

    .post-full-wrap {
        padding: 20px 0 2rem;
    }

    .post-content {
        border-radius: 20px;
    }

    .post-content-header,
    .post-content-body,
    .comments-section {
        padding: 1.25rem;
    }

    .post-tags,
    .post-share {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .post-stats {
        width: 100%;
        margin-left: 0;
    }

    .comment-reply {
        margin-left: .75rem;
    }

    .comment-form-actions .btn {
        width: 100%;
    }
}
.post-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 11px 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.94rem;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.post-back-btn:hover,
.post-back-btn:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.34);
}

.post-back-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}