@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/inter-v12-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url("../fonts/inter-v12-latin-500.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/inter-v12-latin-600.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/inter-v12-latin-700.woff2") format("woff2");
}

/* =====================================================
   PALETA — Graphite Editorial
   ===================================================== */
:root {
    --alv-accent-glow: rgba(159, 179, 189, 0.28);
    --alv-accent-dark: #334049;
    --alv-blood: #9f5148;

    --alv-blood-glow: rgba(184, 92, 79, 0.28);
    --alv-violet: #9fb3bd;
    --alv-bone: #c8b693;
    --alv-silver: #e0e5e8;
    --alv-black: #08090a;
    --alv-black-3: #101214;
    --alv-black-4: #16191c;
    --alv-white-dim: rgba(238, 241, 242, 0.9);
    --alv-white-faint: rgba(224, 229, 232, 0.07);
}

/* =====================================================
   FUNDO — corpo e camada atmosférica fixa
   ===================================================== */
html {
    overflow-x: clip;
}

body {
    background: var(--alv-black);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    text-align: left;
    font-size: 1rem;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* Fundo editorial com textura discreta */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(
            ellipse at 22% 12%,
            rgba(159, 179, 189, 0.055) 0%,
            transparent 42%
        ),
        radial-gradient(
            ellipse at 88% 82%,
            rgba(201, 185, 154, 0.035) 0%,
            transparent 46%
        ),
        linear-gradient(rgba(224, 229, 232, 0.018) 1px, transparent 1px);
    background-size: auto, auto, 100% 30px;
    pointer-events: none;
    z-index: 0;
}

body:is(.dark *) {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    color: rgb(238 241 242 / var(--tw-text-opacity, 1));
    background: var(--alv-black);
}
p,
hr,
pre,
dl {
    text-align: left;
}

.gap-10 {
    gap: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.dark section .no-background {
    background: none;
    background-color: none;
}

.transparent-image {
    background: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.dark .cover-image,
.dark .youtube-preview,
.dark
    section
    img:not(.img-trail-wrap img):not(.no-background):not(.transparent-image) {
    padding: 6px;
    border-radius: 8px;
    background: linear-gradient(to bottom, #52636c 0%, transparent 100%);
}

.cover-image,
.youtube-preview,
section
    img:not(.img-trail-wrap img):not(.no-background):not(.transparent-image) {
    padding: 6px;
    border-radius: 8px;
    background: linear-gradient(
        to bottom,
        var(--alv-accent-dark) 0%,
        transparent 100%
    );
}

img {
    border-radius: 8px;
    outline: 1px solid rgba(0, 0, 0, 0.1);
}

.dark img {
    outline: 1px solid rgba(255, 255, 255, 0.1);
}

footer img,
.footer-glass img {
    outline: none;
}

#content .meta {
    margin-top: -20px;
}
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 999;
    height: 3px;
}

.progress-bar {
    height: 3px;
    background: linear-gradient(to right, #9fb3bd, #b85c4f);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    will-change: transform;
    transition:
        opacity 0.3s ease,
        transform 0.2s ease;
    box-shadow: 0 0 8px var(--alv-accent-glow);
}

.audio-container {
    width: 100%;
    margin-bottom: 1.25rem;
}

/* Estilos base do Plyr */
.plyr--audio {
    background: transparent !important;
    border-radius: 0 !important;
}

.plyr--audio .plyr__controls {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 10px !important;
}

/* Estilos para tema claro */
:root {
    --plyr-color-main: #9fb3bd !important;
    --plyr-audio-control-color: #9fb3bd !important;
    --plyr-audio-control-color-hover: var(--alv-violet) !important;
}

/* Estilos para tema escuro */
.dark {
    --plyr-color-main: var(--alv-violet) !important;
    --plyr-audio-control-color: var(--alv-violet) !important;
    --plyr-audio-control-color-hover: #c8b693 !important;
}

/* Cor do progresso e volume */
.plyr--audio .plyr__progress__buffer,
.plyr--audio .plyr__volume--display {
    color: var(--plyr-color-main) !important;
}

.plyr--full-ui input[type="range"] {
    color: var(--plyr-color-main) !important;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #52636c;
    opacity: 0.4;
}

.timeline-date {
    position: relative;
    margin-left: -2rem;
    padding-left: 2.5rem;
    margin-bottom: 0.5rem;
}

.timeline-date::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background: #52636c;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--alv-accent-glow);
}

.dark .timeline::before {
    background: var(--alv-violet);
}

.dark .timeline-date::before {
    background: var(--alv-violet);
    box-shadow: 0 0 8px var(--alv-accent-glow);
}

.youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.youtube-preview {
    position: relative; /* Mudado de absolute para relative */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.youtube-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.youtube-preview:hover img {
    opacity: 0.5;
}

.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: rgba(31, 31, 31, 0.8);
    border-radius: 14px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1; /* Adicionado para garantir que o botão fique acima da imagem */
}

.youtube-dialog {
    width: min(96vw, 1040px);
    max-width: 1040px;
    padding: 0;
    border: 1px solid rgba(200, 216, 232, 0.18);
    border-radius: 8px;
    background: #05070a;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    overflow: visible;
}

.youtube-dialog::backdrop {
    background: rgba(3, 6, 12, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.youtube-dialog-frame {
    position: relative;
}

.youtube-dialog-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 216, 232, 0.24);
    border-radius: 999px;
    background: rgba(5, 7, 10, 0.9);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.youtube-dialog-close:hover,
.youtube-dialog-close:focus-visible {
    border-color: rgba(110, 230, 183, 0.75);
    background: rgba(16, 185, 129, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.youtube-dialog-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-dialog-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-dialog-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .youtube-dialog {
        width: calc(100vw - 1rem);
    }

    .youtube-dialog-close {
        top: -2.5rem;
        right: 0.25rem;
    }
}

img[src$="#center"] {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   DESIGN REFRESH — Graphite Editorial
   Âncora visual: card featured (2 colunas) + glow steel
   + entrada escalonada + hover cinematográfico nos cards
   ============================================================ */

/* --- Grid: espaçamento e coluna featured na homepage --- */
.posts-grid {
    gap: 1.25rem;
}

/* Primeiro card na homepage ocupa 2 colunas → destaque editorial */
@media (min-width: 480px) {
    #view-grid.is-first-page > .card-post:first-child {
        grid-column: span 2;
    }

    #view-grid.is-first-page > .card-post:first-child .card-post-image {
        height: 15rem;
    }
}

/* --- Imagens: altura ligeiramente maior em todos os cards --- */
.card-post-image {
    height: 11.5rem;
}

/* --- Hover holográfico nos cards --- */
.card-post {
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.28s ease !important;
    will-change: transform;
    overflow: hidden;
}

.card-post::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(159, 179, 189, 0.16) 30%,
        rgba(224, 229, 232, 0.34) 45%,
        rgba(200, 216, 232, 0.28) 52%,
        rgba(184, 92, 79, 0.16) 62%,
        transparent 75%
    );
    transform: rotate(-45deg);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.card-post:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 24px var(--alv-accent-glow),
        0 8px 32px rgba(0, 0, 0, 0.6);
}

.card-post:hover::after {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}

/* --- Zoom suave na imagem ao hover --- */
.card-post-link {
    position: relative;
    overflow: hidden;
    display: block;
}

.card-post .card-post-image {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.card-post:hover .card-post-image {
    transform: scale(1.045);
}

/* --- Placeholder com padrão diagonal sutil --- */
.card-post-placeholder {
    background:
        repeating-linear-gradient(
            -55deg,
            transparent,
            transparent 8px,
            rgba(224, 229, 232, 0.035) 8px,
            rgba(224, 229, 232, 0.035) 9px
        ),
        var(--alv-black-3) !important;
}

/* --- Tipografia dos cards: mais precisa --- */
.card-post-title {
    font-size: 1.2rem;
    line-height: 1.45;
    letter-spacing: -0.012em;
}

.card-post-category {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#content .card-post-category {
    background: rgba(159, 179, 189, 0.12) !important;
    border: 1px solid rgba(224, 229, 232, 0.12) !important;
    color: var(--alv-bone) !important;
    text-decoration: none !important;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        text-shadow 0.18s ease;
}

#content .card-post-category:hover,
#content .card-post-category:focus-visible {
    background: rgba(159, 179, 189, 0.18) !important;
    border-color: rgba(200, 216, 232, 0.24) !important;
    color: var(--alv-silver) !important;
}

.card-post-date {
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
    opacity: 1;
    font-variant-numeric: tabular-nums;
}

#content .breadcrumb a {
    color: rgba(200, 216, 232, 0.72);
    text-decoration: none;
}

#content .breadcrumb a:hover {
    color: var(--alv-silver);
    text-decoration: none;
}

#content .breadcrumb-separator {
    color: rgba(200, 216, 232, 0.5);
    font-weight: 600;
}

/* --- Body interno do card --- */
.card-post-body {
    padding: 0.875rem !important;
    gap: 0.45rem !important;
}

/* --- Entrada escalonada dos cards --- */
@keyframes alv-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.posts-grid .card-post {
    animation: alv-card-in 0.38s ease both;
}

.posts-grid .card-post:nth-child(1) {
    animation-delay: 0.04s;
}
.posts-grid .card-post:nth-child(2) {
    animation-delay: 0.09s;
}
.posts-grid .card-post:nth-child(3) {
    animation-delay: 0.14s;
}
.posts-grid .card-post:nth-child(4) {
    animation-delay: 0.19s;
}
.posts-grid .card-post:nth-child(5) {
    animation-delay: 0.24s;
}
.posts-grid .card-post:nth-child(6) {
    animation-delay: 0.29s;
}
.posts-grid .card-post:nth-child(7) {
    animation-delay: 0.34s;
}
.posts-grid .card-post:nth-child(8) {
    animation-delay: 0.39s;
}
.posts-grid .card-post:nth-child(9) {
    animation-delay: 0.44s;
}
.posts-grid .card-post:nth-child(10) {
    animation-delay: 0.49s;
}
.posts-grid .card-post:nth-child(11) {
    animation-delay: 0.54s;
}
.posts-grid .card-post:nth-child(12) {
    animation-delay: 0.59s;
}

/* --- Pills de categoria no post single: hover lift + press --- */
.pill-category,
.pill-tag {
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        scale 0.15s ease;
}

.pill-category:active,
.pill-tag:active {
    scale: 0.96;
}

.pill-category:hover,
.pill-tag:hover {
    transform: translateY(-1px);
}

/* --- Tags na listagem de taxonomia: hover lift --- */
#content .taxonomy-list a {
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
    display: inline-block;
}

#content .taxonomy-list a:hover {
    transform: translateY(-1px);
}

/* --- Header: glass transparente com blur forte --- */
.header {
    background: rgba(8, 9, 10, 0.62) !important;
    border-bottom: 1px solid rgba(224, 229, 232, 0.12) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
}

@media (min-width: 640px) {
    .header header {
        position: relative;
    }

    #header-content {
        flex: 1 1 auto;
        min-width: 0;
    }

    #header-content > div:last-child {
        width: 100%;
    }

    #search-toggle {
        margin-left: auto;
    }
}

/* --- Footer: glass + separador com caveira --- */
.footer-glass {
    background: rgba(8, 9, 10, 0.72) !important;
    border-top: 1px solid rgba(224, 229, 232, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    position: relative;
}

#footer-skull {
    display: block;
    position: absolute;
    top: -0.75em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    line-height: 1;
    padding: 0 10px;
    opacity: 0.55;
    z-index: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

#footer-skull .footer-skull-svg {
    color: #ccd6dd;
    display: block;
    width: 1.5em;
    height: 1.5em;
    overflow: visible;
    transition: filter 0.3s ease;
}

.footer-skull-head,
.footer-skull-eye,
.footer-skull-tooth {
    transform-box: fill-box;
}

.footer-skull-head {
    transform-origin: 16px 16px;
}

.footer-skull-eye-left {
    transform-origin: 11px 16px;
}

.footer-skull-eye-right {
    transform-origin: 21px 16px;
}

.footer-skull-tooth {
    transform-origin: center;
}

#footer-skull:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.3);
}

#footer-skull:hover .footer-skull-svg,
#footer-skull:focus-visible .footer-skull-svg {
    filter: drop-shadow(0 0 8px rgba(224, 229, 232, 0.62))
        drop-shadow(0 0 20px rgba(159, 179, 189, 0.42))
        drop-shadow(0 0 40px rgba(159, 179, 189, 0.22));
}

#footer-skull:hover .footer-skull-head,
#footer-skull:focus-visible .footer-skull-head {
    animation: footer-skull-head 0.9s ease-in-out both;
}

#footer-skull:hover .footer-skull-eye,
#footer-skull:focus-visible .footer-skull-eye {
    animation: footer-skull-eye 0.6s ease-in-out both;
}

#footer-skull:hover .footer-skull-tooth,
#footer-skull:focus-visible .footer-skull-tooth {
    animation: footer-skull-tooth 0.5s ease-in-out 0.1s both;
}

@keyframes footer-skull-head {
    0% {
        transform: translateY(0) rotate(0) scale(1);
    }
    12% {
        transform: translateY(-2px) rotate(-8deg) scale(1);
    }
    24% {
        transform: translateY(0) rotate(8deg) scale(1);
    }
    36% {
        transform: translateY(-2px) rotate(-8deg) scale(1);
    }
    48% {
        transform: translateY(0) rotate(8deg) scale(1);
    }
    60% {
        transform: translateY(-1px) rotate(-4deg) scale(1);
    }
    72% {
        transform: translateY(0) rotate(4deg) scale(1);
    }
    84% {
        transform: translateY(-4px) rotate(0) scale(1.05);
    }
    100% {
        transform: translateY(0) rotate(0) scale(1);
    }
}

@keyframes footer-skull-eye {
    0%,
    100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.8);
    }
    75% {
        transform: scale(1.2);
    }
}

@keyframes footer-skull-tooth {
    0%,
    100% {
        transform: translateY(0);
    }
    18% {
        transform: translateY(-3px);
    }
    36% {
        transform: translateY(0);
    }
    54% {
        transform: translateY(-2px);
    }
    72% {
        transform: translateY(0);
    }
    90% {
        transform: translateY(-3px);
    }
}

/* --- Sem sublinhado em links dentro dos cards --- */
#content .card-post-body a,
#content .card-post-category {
    text-decoration: none !important;
}

/* --- View toggle na homepage: área de respiro --- */
#view-toggle {
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

#view-toggle:hover {
    transform: scale(1.1);
}

.dark #content .read-more,
.dark #content a:not(.card-post-category):not(.pill-tag):not(.pill-category):not(.pagination-button) {
    color: var(--alv-violet);
    text-decoration-color: rgba(159, 179, 189, 0.42);
}

.dark #content .read-more:hover,
.dark #content a:not(.card-post-category):not(.pill-tag):not(.pill-category):not(.pagination-button):hover {
    color: #d6e0e4;
    text-decoration-color: rgba(200, 216, 232, 0.62);
}

.dark #content .table-of-contents #TableOfContents li a,
.dark #content .toc-sidebar-wrapper #TableOfContents li > a {
    color: rgba(200, 216, 232, 0.72);
    transition:
        color 0.18s ease,
        text-shadow 0.18s ease;
}

.dark #content .table-of-contents #TableOfContents li a:hover,
.dark #content .toc-sidebar-wrapper #TableOfContents li > a:hover {
    color: var(--alv-silver);
    text-shadow: 0 0 14px rgba(159, 179, 189, 0.22);
}

#content .table-of-contents #TableOfContents code {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    font: inherit;
    padding: 0;
}

.dark #content .toc-sidebar-wrapper .table-of-contents #TableOfContents li.toc-active a {
    color: var(--alv-bone);
    font-weight: 600;
    text-shadow: 0 0 14px rgba(200, 182, 147, 0.18);
}

/* --- Paginação: botões mais expressivos --- */
#content .pagination-button {
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        scale 0.15s ease;
}

#content .pagination-button:active {
    scale: 0.96;
}

#content .pagination-button:hover {
    transform: translateY(-1px);
    border-color: rgba(159, 179, 189, 0.48) !important;
    box-shadow: 0 0 12px rgba(159, 179, 189, 0.14);
}

/* =====================================================
   GRAPHITE EDITORIAL — Estilos adicionais do template
   ===================================================== */

/* --- Fundo dos cards de post: mais escuro/noir --- */
.dark .card-post {
    background: rgba(16, 18, 20, 0.62) !important;
    position: relative;
}

/* Faixa de acento esquerda nos cards */
.dark .card-post::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;

    opacity: 0.6;
    border-radius: 2px 0 0 2px;
    z-index: 1;
}

/* --- Título do site: fonte display do template --- */
#site-title {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
    color: var(--alv-silver) !important;
    text-shadow: 0 0 20px rgba(200, 216, 232, 0.25);
}

/* --- Nav links --- */
.header nav > ul > li {
    display: flex;
    align-items: center;
}

.header nav a {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.header a,
.breadcrumb,
.breadcrumb a,
.date,
.meta,
.auto-translated-notice,
.lang-toggle,
#content .read-more,
#content .pagination-button {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Ícone “home”: mesma escala do texto dos outros links */
.header-nav-home-svg {
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
    stroke: currentColor;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    display: block;
    overflow: visible;
    transform-origin: center;
    transition: transform 0.2s ease;
    transform: translateY(-2px);
}

.header-nav-home-roof,
.header-nav-home-house,
.header-nav-home-door {
    transform-box: fill-box;
}

.header-nav-home-house {
    transform-origin: center;
}

.header-nav-home-door {
    transform-origin: center bottom;
}

.header-nav-home-link:hover .header-nav-home-svg,
.header-nav-home-link:focus-visible .header-nav-home-svg {
    transform: translateY(-1px) scale(1.1);
}

.header-nav-home-link:hover .header-nav-home-roof,
.header-nav-home-link:focus-visible .header-nav-home-roof {
    animation: header-home-roof 0.4s ease-out both;
}

.header-nav-home-link:hover .header-nav-home-house,
.header-nav-home-link:focus-visible .header-nav-home-house {
    animation: header-home-house 0.3s ease-out both;
}

.header-nav-home-link:hover .header-nav-home-door,
.header-nav-home-link:focus-visible .header-nav-home-door {
    animation: header-home-door 0.3s ease-out 0.26s both;
}

@keyframes header-home-roof {
    from {
        opacity: 0.6;
        transform: translateY(-2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes header-home-house {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

@keyframes header-home-door {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

/* --- Tags e categorias: estilo do template --- */
.dark .pill-category,
.dark .pill-tag {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px !important;
    background: rgba(224, 229, 232, 0.055) !important;
    border: 1px solid rgba(224, 229, 232, 0.14) !important;
    color: var(--alv-violet) !important;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease !important;
}

/* pill-tag: mesmo formato de card-post-category, com acento steel */
.dark .pill-tag {
    font-size: 0.625rem !important;
    letter-spacing: 0.1em !important;
    background: rgba(159, 179, 189, 0.105) !important;
    border-radius: 9999px !important;
    padding: 0.25rem 0.75rem !important;
    text-decoration: none !important;
}

/* Ilumina texto em branco no hover */
.dark .pill-tag:hover,
.dark .card-post-category:hover {
    color: #fff !important;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 18px rgba(159, 179, 189, 0.46);
    transform: translateY(-1px);
}

/* --- Títulos dos posts: display editorial --- */
.dark .title-large,
.dark h1.post-title {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.015em;
}

/* --- Destaque nos títulos de cards --- */
.dark .card-post-title {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: rgba(238, 241, 242, 0.88);
}

.dark .card-post-date {
    color: rgba(201, 185, 154, 0.78) !important;
}

.dark .card-post-category {
    color: rgba(200, 216, 232, 0.55) !important;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

/* --- Conteúdo do post: tipografia mais clara --- */
.dark #content p,
.dark .post-layout p {
    color: var(--alv-white-dim);
}

/* --- Blocos de código: tema escuro graphite --- */
.dark .highlight {
    background: var(--alv-black-4) !important;
    border-left: 3px solid var(--alv-accent-dark);
}

/* Auto-wrap no conteúdo dos blocos de código */
.highlight pre,
.highlight code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* --- Botão Copiar --- */
.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    background: rgba(159, 179, 189, 0.12);
    border: 1px solid rgba(159, 179, 189, 0.3);
    color: var(--alv-violet);
    border-radius: 2px;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        scale 0.15s ease;
    z-index: 10;
}

.copy-code-btn:active {
    scale: 0.96;
}

.highlight:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    background: rgba(159, 179, 189, 0.24);
    color: #fff;
}

.copy-code-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
    opacity: 1;
}

/* --- Blockquotes: estilo do template --- */
.dark blockquote {
    border-left: 3px solid var(--alv-blood) !important;
    background: linear-gradient(
        135deg,
        rgba(184, 92, 79, 0.055),
        transparent
    ) !important;
    color: var(--alv-white-dim);
}

/* --- Links inline: steel suave --- */
.dark .post-layout a:not([class]) {
    color: var(--alv-violet);
    text-decoration-color: rgba(159, 179, 189, 0.42);
}

.dark .post-layout a:not([class]):hover {
    color: #d6e0e4;
    text-decoration-color: rgba(200, 216, 232, 0.62);
}

.dark .post-layout .table-of-contents #TableOfContents a,
.dark .post-layout .toc-inline-mobile #TableOfContents a,
.dark .post-layout .toc-sidebar-wrapper #TableOfContents a {
    color: rgba(200, 216, 232, 0.72) !important;
    text-decoration: none !important;
}

.dark .post-layout .table-of-contents #TableOfContents a:hover,
.dark .post-layout .toc-inline-mobile #TableOfContents a:hover,
.dark .post-layout .toc-sidebar-wrapper #TableOfContents a:hover {
    color: var(--alv-silver) !important;
    text-decoration: none !important;
    text-shadow: 0 0 14px rgba(159, 179, 189, 0.22);
}

.dark .post-layout .toc-sidebar-wrapper .table-of-contents #TableOfContents li.toc-active a {
    color: var(--alv-bone) !important;
    text-shadow: 0 0 14px rgba(200, 182, 147, 0.18);
}

/* --- Separador horizontal: estilo template --- */
.dark hr {
    border-color: rgba(184, 92, 79, 0.18) !important;
    position: relative;
}

/* --- Scrollbar estilizada --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--alv-black);
}
::-webkit-scrollbar-thumb {
    background: rgba(159, 179, 189, 0.36);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(159, 179, 189, 0.58);
}

/* --- Tags relacionadas no rodapé do post: oculto por ora --- */
.tags-list {
    display: none !important;
}

/* =====================================================
   ANIMATED BORDER TRAIL — imagens nos posts
   Técnica: offset-path: border-box (codepen.io/jh3y/pen/vYqLPaE)
   ===================================================== */
.img-trail-wrap {
    display: block;
    position: relative;
    padding: 3px;
    border-radius: 10px;
}

.img-trail-wrap.is-centered {
    margin: 1rem auto;
    width: fit-content;
}

.img-trail-border {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 0 round 10px);
    background: rgba(51, 64, 73, 0.48);
    z-index: 0;
    container-type: inline-size;
    pointer-events: none;
}

.img-trail-dot {
    width: calc(100 * 1cqi);
    aspect-ratio: 3 / 1;
    position: absolute;
    background: radial-gradient(100% 100% at right, #9fb3bd, transparent 50%);
    offset-path: border-box;
    offset-anchor: 100% 50%;
    animation: img-trail-journey 8s infinite linear;
}

@container (inline-size > 450px) {
    .img-trail-dot {
        animation-duration: 12s;
    }
}

@keyframes img-trail-journey {
    to {
        offset-distance: 100%;
    }
}

.img-trail-wrap > img,
.dark .img-trail-wrap > img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 7px;
    padding: 0 !important;
    background: none !important;
}

/* --- Seleção de texto --- */
::selection {
    background: rgba(159, 179, 189, 0.35);
    color: #fff;
}

/* =====================================================
   TAGS NA LISTAGEM DE TAXONOMIA — igual pill-tag
   ===================================================== */
#content .taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

#content .taxonomy-list li {
    display: contents;
}

#content .taxonomy-list a {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    background: rgba(224, 229, 232, 0.055);
    border: 1px solid rgba(224, 229, 232, 0.14);
    color: var(--alv-violet);
    text-decoration: none !important;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

#content .taxonomy-list a:hover {
    background: rgba(159, 179, 189, 0.16);
    transform: translateY(-2px);
}

/* =====================================================
   LANG TOGGLE — alternador de idioma no header
   ===================================================== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

/* Mobile: fixa no canto superior direito do header */
@media (max-width: 639px) {
    header {
        position: relative;
    }
    .lang-toggle {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }
}

.lang-current {
    color: #c8d8e8;
    background: rgba(16, 18, 20, 0.82);
    border: 1px solid rgba(224, 229, 232, 0.16);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.lang-sep {
    color: var(--alv-bone);
    opacity: 0.3;
}

.lang-link {
    color: var(--alv-bone);
    opacity: 0.45;
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.lang-link:hover {
    opacity: 1;
    color: var(--alv-silver);
}

/* =====================================================
   SHORTCODE — verdict (nota de análise)
   ===================================================== */
.verdict-score-row {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(184, 92, 79, 0.2);
    flex-wrap: nowrap;
}

.verdict-score {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 68px;
    color: var(--alv-bone);
    line-height: 1;
    text-shadow: 0 0 30px rgba(201, 185, 154, 0.25);
    font-variant-numeric: tabular-nums;
}

.verdict-score-sub {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.verdict-score-title {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--alv-white-dim);
}

.verdict-score-detail {
    font-size: 14px;
    color: var(--alv-white-dim);
    opacity: 0.75;
}

.verdict-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1px;
}

.verdict-star {
    display: inline-block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.verdict-star-empty {
    color: rgba(255, 212, 59, 0.42);
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 640px) {
    .verdict-score-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .verdict-score-sub {
        align-items: center;
    }

    .verdict-icons {
        justify-content: center;
    }
}

/* =====================================================
   SHORTCODE — related-products (monetizacao)
   ===================================================== */
.related-products-box {
    margin: 2.5rem 0 1.25rem;
    padding: 1rem;
    /*
    border: 1px solid rgba(224, 229, 232, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(16, 18, 20, 0.72), rgba(8, 9, 10, 0.88)),
        var(--alv-black-3);
    box-shadow:
        0 0 0 1px rgba(200, 216, 232, 0.04) inset,
        0 18px 46px rgba(0, 0, 0, 0.28);
    */
}

.related-products-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(184, 92, 79, 0.18);
}

.related-products-header h2 {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    color: var(--alv-white-dim);
}

.related-products-icon {
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
    color: var(--alv-bone);
    overflow: visible;
    filter: drop-shadow(0 0 10px rgba(201, 185, 154, 0.22));
}

.related-products-steam {
    animation: related-products-steam 1.6s ease-out infinite;
}

.related-products-steam-2 {
    animation-delay: 0.18s;
}

.related-products-steam-3 {
    animation-delay: 0.36s;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 7rem));
    justify-content: start;
    gap: 0.65rem;
    max-width: 100%;
}

.related-product-card {
    display: flex;
    min-width: 0;
    max-width: 7rem;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.45rem;
    border: 1px solid rgba(200, 216, 232, 0.12);
    border-radius: 8px;
    /* background: rgba(8, 9, 10, 0.46); */
    color: var(--alv-white-dim);
    text-decoration: none !important;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.related-product-card:hover,
.related-product-card:focus-visible {
    border-color: rgba(159, 179, 189, 0.42);
    box-shadow: 0 0 18px rgba(159, 179, 189, 0.14);
    outline: none;
    transform: translateY(-2px);
}

.related-product-image-frame {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(200, 216, 232, 0.08),
            transparent 62%
        ),
        rgba(16, 18, 20, 0.72);
}

.related-product-image {
    width: 100%;
    height: auto;
    /* max-height: 4.75rem; */
    padding: 0 !important;
    object-fit: contain;
    outline: none !important;
    background: transparent !important;
    transition: transform 0.18s ease;
}

.related-product-card:hover .related-product-image,
.related-product-card:focus-visible .related-product-image {
    transform: scale(1.035);
}

.related-product-store {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    margin-top: -0.15rem;
    padding: 0.18rem 0.48rem;
    border: 1px solid rgba(224, 229, 232, 0.14);
    border-radius: 999px;
    color: var(--alv-bone);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes related-products-steam {
    0% {
        opacity: 0.95;
        transform: translateY(0);
    }
    70% {
        opacity: 0;
        transform: translateY(-3px);
    }
    100% {
        opacity: 0;
        transform: translateY(-3px);
    }
}

@media (max-width: 640px) {
    .related-products-box {
        padding: 0.75rem;
    }

    .related-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .related-product-card {
        gap: 0.45rem;
        max-width: none;
        padding: 0.45rem;
    }

    .related-product-image {
        max-height: clamp(7rem, 34vw, 8.5rem);
    }

    .related-products-header h2 {
        font-size: 0.82rem;
    }

    .related-product-store {
        padding-inline: 0.36rem;
        font-size: 0.56rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-products-steam,
    .related-product-card,
    .related-product-image {
        animation: none;
        transition: none;
    }
}

/* =====================================================
   BUSCA — modal Pagefind
   ===================================================== */

/* Botão de lupa no header */
.search-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.1rem;
    color: rgb(156 163 175 / 1);
    transition: color 0.2s ease;
    line-height: 1;
}

.search-toggle-btn:hover,
.search-toggle-btn:focus-visible {
    color: var(--alv-violet);
    outline: none;
}

.search-toggle-svg {
    width: 1.3em;
    height: 1.3em;
    display: block;
    transform: scaleX(-1);
    transform-origin: center;
    overflow: visible;
}

.search-icon-lens,
.search-icon-handle {
    transform-box: fill-box;
    transform-origin: center;
}

.search-toggle-btn:hover .search-toggle-svg,
.search-toggle-btn:focus-visible .search-toggle-svg {
    animation: search-icon-sweep 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes search-icon-sweep {
    0%   { transform: scaleX(-1) rotate(0deg); }
    30%  { transform: scaleX(-1) rotate(-22deg); }
    65%  { transform: scaleX(-1) rotate(6deg); }
    100% { transform: scaleX(-1) rotate(0deg); }
}

/* Overlay fullscreen */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(4rem, 12vh, 8rem);
    padding-inline: 1rem;
    background: rgba(8, 9, 10, 0.76);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.search-modal-overlay.hidden {
    display: none;
}

body.search-modal-open {
    overflow: hidden;
}

/* Caixa do modal */
.search-modal-box {
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: rgba(16, 18, 20, 0.93);
    border: 1px solid rgba(224, 229, 232, 0.16);
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(200, 216, 232, 0.04) inset,
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(159, 179, 189, 0.1);
    overflow: hidden;
    animation: search-modal-in 0.18s ease both;
}

@keyframes search-modal-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cabeçalho do modal */
.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(224, 229, 232, 0.11);
}

.search-modal-title {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 216, 232, 0.45);
}

.search-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(200, 216, 232, 0.12);
    border-radius: 6px;
    padding: 0.22rem;
    color: rgba(200, 216, 232, 0.45);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.search-modal-close:hover,
.search-modal-close:focus-visible {
    border-color: rgba(159, 179, 189, 0.5);
    color: var(--alv-violet);
    background: rgba(159, 179, 189, 0.1);
    outline: none;
}

/* Dica de teclado no rodapé do modal */
.search-modal-hint {
    padding: 0.5rem 1rem;
    font-size: 0.68rem;
    color: rgba(200, 216, 232, 0.3);
    border-top: 1px solid rgba(224, 229, 232, 0.1);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.search-modal-hint kbd {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border: 1px solid rgba(200, 216, 232, 0.18);
    border-radius: 4px;
    background: rgba(200, 216, 232, 0.06);
    color: rgba(200, 216, 232, 0.5);
}

/* Tema escuro do Pagefind via CSS custom properties (API oficial) */
#search {
    padding: 0.75rem 1rem 0.25rem;
    overflow-y: auto;
    flex: 1;
    --pagefind-ui-primary: rgba(200, 216, 232, 0.65);
    --pagefind-ui-text: rgba(238, 241, 242, 0.9);
    --pagefind-ui-background: rgba(8, 9, 10, 0.72);
    --pagefind-ui-border: rgba(200, 216, 232, 0.18);
    --pagefind-ui-tag: rgba(159, 179, 189, 0.14);
    --pagefind-ui-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Oculta o painel de filtros — busca por idioma aplicada via JS */
#search .pagefind-ui__filter-panel {
    display: none !important;
}

/* Remove focus ring nativo do browser e usa outline próprio */
#search .pagefind-ui__search-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(200, 216, 232, 0.28) !important;
}

/* Substitui a seta ⤷ pelo > alinhado ao texto do sub-resultado */
#search .pagefind-ui__result-nested .pagefind-ui__result-link::before {
    content: ">" !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-right: 0.3em;
}

#search mark {
    background: rgba(159, 179, 189, 0.28);
    color: #e0e5e8;
    border-radius: 2px;
    padding: 0 2px;
}

@media (max-width: 640px) {
    .search-modal-overlay {
        padding-top: 3rem;
        align-items: flex-start;
    }

    .search-modal-box {
        border-radius: 10px;
    }
}

/* =====================================================
   AUTO-TRANSLATED NOTICE
   ===================================================== */
.auto-translated-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--alv-bone);
    opacity: 0.6;
    padding: 0.35rem 0.8rem;
    margin-left: -0.8rem;
    border: 1px solid rgba(200, 182, 147, 0.15);
    border-radius: 999px;
    transition: opacity 0.2s ease;
}

.auto-translated-notice:hover {
    opacity: 0.95;
}

.auto-translated-notice svg {
    flex-shrink: 0;
}

/* Compensa o margin-bottom do h2 quando o pill aparece entre o título e a data */
h2.title-large + .auto-translated-notice {
    margin-top: -20px;
}

/* Remove o margin-top negativo do .meta quando o pill está antes dele */
#content .auto-translated-notice + .meta {
    margin-top: 0;
}
