
/*
Theme Name: Nerds Cultura
Theme URI: https://nerdscultura.com/
Author: Nerds Cultura
Description: Tema personalizado para o portal Nerds Cultura.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nerdscultura
*/

:root {
    --nc-bg: #0d0e14;
    --nc-surface: #151722;
    --nc-surface-light: #1c2030;
    --nc-text: #f5f5fb;
    --nc-muted: #a9adbf;
    --nc-purple: #a78bfa;
    --nc-blue: #67e8f9;
    --nc-border: rgba(255,255,255,.09);
    --nc-radius: 18px;
    --nc-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--nc-bg);
    color: var(--nc-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--nc-blue);
}

img {
    max-width: 100%;
    height: auto;
}

.nc-container,
.nc-header-inner,
.nc-footer-inner,
.nc-footer-bottom {
    width: min(var(--nc-width), calc(100% - 40px));
    margin-inline: auto;
}

/* CABEÇALHO */

.nc-site-header {
    position: relative;
    z-index: 10;
    background: rgba(13,14,20,.96);
    border-bottom: 1px solid var(--nc-border);
}

.nc-header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.nc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nc-brand-icon {
    color: var(--nc-purple);
    font-size: 36px;
}

.nc-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.nc-brand-text strong {
    font-size: 20px;
    letter-spacing: 1.5px;
    font-weight: 900;
}

.nc-brand-text small {
    margin-top: 5px;
    color: var(--nc-muted);
    font-size: 9px;
    letter-spacing: 1.4px;
}

.nc-navigation .nc-menu-list,
.nc-menu-list {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nc-menu-list a {
    display: block;
    padding: 12px 0;
    color: var(--nc-muted);
    font-size: 14px;
    font-weight: 700;
}

.nc-menu-list a:hover,
.nc-menu-list .current-menu-item > a {
    color: var(--nc-purple);
}

.nc-menu-toggle {
    display: none;
}

/* TÍTULOS E SEÇÕES */

.nc-publicacoes {
    padding-block: 64px;
}

.nc-section-header {
    margin-bottom: 32px;
}

.nc-eyebrow {
    color: var(--nc-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nc-section-header h1,
.nc-section-header h2 {
    margin: 8px 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.nc-section-header > p:last-child {
    color: var(--nc-muted);
}

/* GRADE DE ARTIGOS */

.nc-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.nc-post-card {
    min-width: 0;
    overflow: hidden;
    background: var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    transition: transform .2s ease, border-color .2s ease;
}

.nc-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167,139,250,.55);
}

.nc-post-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--nc-surface-light);
}

.nc-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.nc-post-card:hover .nc-post-image img {
    transform: scale(1.04);
}

.nc-post-content {
    padding: 22px;
}

.nc-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.nc-post-categories a {
    color: var(--nc-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nc-post-content h2 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.4;
}

.nc-post-content > p {
    color: var(--nc-muted);
    font-size: 14px;
    line-height: 1.8;
}

.nc-read-more {
    display: inline-block;
    margin-top: 8px;
    color: var(--nc-purple);
    font-size: 14px;
    font-weight: 800;
}

.nc-read-more:hover {
    color: var(--nc-blue);
}

.nc-empty {
    padding-block: 80px;
    text-align: center;
}

/* PAGINAÇÃO */

.nc-pagination {
    margin-top: 44px;
}

.nc-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nc-pagination a,
.nc-pagination .current {
    padding: 9px 14px;
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    background: var(--nc-surface);
}

.nc-pagination .current {
    color: var(--nc-bg);
    background: var(--nc-purple);
}

/* RODAPÉ INSTITUCIONAL */

.nc-site-footer {
    margin-top: 40px;
    background: #10111a;
    border-top: 1px solid var(--nc-border);
}

.nc-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding-block: 54px;
}

.nc-footer-logo {
    display: inline-block;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1px;
}

.nc-footer-logo span {
    color: var(--nc-purple);
}

.nc-footer-brand p {
    max-width: 430px;
    color: var(--nc-muted);
    font-size: 14px;
}

.nc-footer-institutional h2 {
    margin-top: 0;
    font-size: 17px;
}

.nc-footer-institutional ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nc-footer-institutional a {
    color: var(--nc-muted);
    font-size: 13px;
}

.nc-footer-institutional a:hover {
    color: var(--nc-blue);
}

.nc-footer-bottom {
    padding-block: 20px;
    border-top: 1px solid var(--nc-border);
    color: var(--nc-muted);
    font-size: 12px;
    text-align: center;
}

.nc-footer-bottom p {
    margin: 0;
}

/* ACESSIBILIDADE */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* TABLETS */

@media (max-width: 900px) {
    .nc-header-inner {
        gap: 16px;
    }

    .nc-navigation .nc-menu-list,
    .nc-menu-list {
        gap: 14px;
    }

    .nc-menu-list a {
        font-size: 12px;
    }

    .nc-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nc-footer-inner {
        gap: 32px;
    }
}

/* CELULARES */

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .nc-container,
    .nc-header-inner,
    .nc-footer-inner,
    .nc-footer-bottom {
        width: min(100% - 28px, var(--nc-width));
    }

    .nc-header-inner {
        min-height: 76px;
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .nc-brand-icon {
        font-size: 29px;
    }

    .nc-brand-text strong {
        font-size: 17px;
    }

    .nc-brand-text small {
        font-size: 8px;
    }

    .nc-menu-toggle {
        display: block;
        padding: 8px 12px;
        color: var(--nc-text);
        background: var(--nc-surface);
        border: 1px solid var(--nc-border);
        border-radius: 8px;
        font-size: 22px;
        cursor: pointer;
    }

    
    .nc-navigation {
        display: none;
        width: 100%;
    }

    .nc-navigation.is-open {
        display: block;
    }

    .nc-navigation .nc-menu-list,
    .nc-menu-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
        padding: 10px 0;
    }

    .nc-menu-list li {
        width: 100%;
    }

    .nc-menu-list a {
        display: block;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .nc-menu-list a:hover {
        background: var(--nc-surface-light);
    }


    .nc-menu-list a {
        font-size: 13px;
    }

    .nc-publicacoes {
        padding-block: 40px;
    }

    .nc-post-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nc-post-content {
        padding: 19px;
    }

    .nc-post-content h2 {
        font-size: 20px;
    }

    .nc-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 38px;
    }

    .nc-footer-institutional ul {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* ========================================
   PÁGINA INICIAL PERSONALIZADA
   Nerds Cultura
======================================== */

.nc-home {
    padding: 36px 0 70px;
}

.nc-section {
    padding-top: 58px;
}

.nc-section-label {
    display: block;
    margin-bottom: 9px;
    color: var(--nc-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* DESTAQUE PRINCIPAL */

.nc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 36px;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(167, 139, 250, .13),
            transparent 55%
        ),
        var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: 24px;
}

.nc-hero-content {
    min-width: 0;
}

.nc-category {
    display: inline-block;
    margin: 0 0 12px;
    color: var(--nc-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nc-hero-title {
    margin: 10px 0 16px;
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.2px;
    overflow-wrap: anywhere;
}

.nc-hero-title a:hover {
    color: var(--nc-purple);
}

.nc-hero-excerpt {
    margin: 0 0 24px;
    color: var(--nc-muted);
    font-size: 16px;
    line-height: 1.8;
}

.nc-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 19px;
    color: #11111a;
    background: var(--nc-purple);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.nc-button:hover {
    color: #11111a;
    background: var(--nc-blue);
    transform: translateY(-2px);
}

.nc-hero-image {
    display: block;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--nc-surface-light);
    border-radius: 16px;
}

.nc-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.nc-hero-image:hover img {
    transform: scale(1.035);
}

/* TÍTULOS DAS SEÇÕES */

.nc-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.nc-section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.7px;
}

.nc-section-description {
    max-width: 350px;
    color: var(--nc-muted);
    font-size: 13px;
    text-align: right;
}

/* CARTÕES DAS ÚLTIMAS PUBLICAÇÕES */

.nc-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--nc-surface-light);
}

.nc-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.nc-post-card:hover .nc-card-image img {
    transform: scale(1.04);
}

.nc-card-content {
    padding: 20px;
}

.nc-card-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.nc-card-title a:hover {
    color: var(--nc-purple);
}

.nc-card-excerpt {
    margin: 0 0 14px;
    color: var(--nc-muted);
    font-size: 14px;
    line-height: 1.75;
}

.nc-post-date {
    color: var(--nc-muted);
    font-size: 12px;
}

.nc-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 140px;
    color: var(--nc-purple);
    font-weight: 900;
}

/* MAIS VISTOS E EM ALTA */

.nc-popular-content,
.nc-trending-content {
    min-width: 0;
    padding: 22px;
    background: var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
}

/* Estilos básicos para as listas do WP Popular Posts */

.nc-popular-content ul.wpp-list,
.nc-trending-content ul.wpp-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nc-popular-content .wpp-list li,
.nc-trending-content .wpp-list li {
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--nc-border);
    overflow-wrap: anywhere;
}

.nc-popular-content .wpp-thumbnail,
.nc-trending-content .wpp-thumbnail {
    max-width: 110px;
    height: auto;
    margin: 0 12px 8px 0;
    border-radius: 8px;
}

.nc-popular-content .wpp-post-title,
.nc-trending-content .wpp-post-title {
    color: var(--nc-text);
    font-weight: 800;
    line-height: 1.5;
}

.nc-popular-content .wpp-post-title:hover,
.nc-trending-content .wpp-post-title:hover {
    color: var(--nc-purple);
}

.nc-popular-content .wpp-meta,
.nc-trending-content .wpp-meta {
    color: var(--nc-muted);
    font-size: 12px;
}

/* CATEGORIAS */

.nc-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nc-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 190px;
    padding: 25px;
    background:
        linear-gradient(
            145deg,
            rgba(167, 139, 250, .10),
            transparent 65%
        ),
        var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    transition: transform .2s ease, border-color .2s ease;
}

.nc-category-card:hover {
    color: var(--nc-text);
    border-color: var(--nc-purple);
    transform: translateY(-4px);
}

.nc-category-card-title {
    margin-bottom: 12px;
    font-size: 23px;
    font-weight: 900;
}

.nc-category-card-description {
    margin-bottom: 18px;
    color: var(--nc-muted);
    font-size: 14px;
    line-height: 1.7;
}

.nc-category-card-link {
    margin-top: auto;
    color: var(--nc-blue);
    font-size: 13px;
    font-weight: 800;
}

/* ESTADO VAZIO */

.nc-empty-state {
    padding: 50px 20px;
    text-align: center;
    background: var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
}

.nc-empty-state p {
    color: var(--nc-muted);
}

/* TABLETS */

@media (max-width: 900px) {
    .nc-hero {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 24px;
    }

    .nc-hero-title {
        font-size: clamp(27px, 4vw, 36px);
    }

    .nc-section-description {
        max-width: 260px;
    }

    .nc-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CELULARES */

@media (max-width: 640px) {
    .nc-home {
        padding-top: 20px;
        padding-bottom: 45px;
    }

    .nc-section {
        padding-top: 42px;
    }

    .nc-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 18px;
        border-radius: 17px;
    }

    .nc-hero-content {
        order: 2;
    }

    .nc-hero-image {
        order: 1;
        aspect-ratio: 16 / 9;
    }

    .nc-hero-title {
        font-size: 30px;
        letter-spacing: -.6px;
    }

    .nc-hero-excerpt {
        font-size: 15px;
    }

    .nc-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .nc-section-heading h2 {
        font-size: 27px;
    }

    .nc-section-description {
        max-width: none;
        text-align: left;
    }

    .nc-card-content {
        padding: 18px;
    }

    .nc-card-title {
        font-size: 19px;
    }

    .nc-popular-content,
    .nc-trending-content {
        padding: 16px;
    }

    .nc-popular-content ul.wpp-list,
    .nc-trending-content ul.wpp-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nc-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nc-category-card {
        min-height: 0;
        padding: 22px;
    }
}

/* ========================================
   RECURSOS INTERATIVOS — NERDS CULTURA
======================================== */

.nc-recursos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.nc-recurso-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 28px;
    background:
        radial-gradient(
            circle at top right,
            rgba(103, 232, 249, .08),
            transparent 55%
        ),
        var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    transition: transform .2s ease, border-color .2s ease;
}

.nc-recurso-card:hover {
    border-color: var(--nc-purple);
    transform: translateY(-4px);
}

.nc-recurso-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.2;
}

.nc-recurso-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.nc-recurso-card p {
    margin: 0 0 22px;
    color: var(--nc-muted);
    font-size: 15px;
    line-height: 1.8;
}

.nc-recurso-card .nc-button {
    margin-top: auto;
}

@media (max-width: 640px) {
    .nc-recursos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nc-recurso-card {
        padding: 22px;
    }

    .nc-recurso-card h3 {
        font-size: 20px;
    }
}

/* =========================================
   NERDS CULTURA — QUIZ INTERATIVO
   ========================================= */

.nc-quiz {
    width: 100%;
    max-width: 900px;
    margin: 35px auto;
    padding: 30px;
    color: #f4f4f7;
    background: #171923;
    border: 1px solid #303447;
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.nc-quiz *,
.nc-quiz *::before,
.nc-quiz *::after {
    box-sizing: border-box;
}

.nc-quiz-intro {
    margin-bottom: 28px;
    text-align: center;
}

.nc-quiz .nc-section-label {
    display: inline-block;
    margin: 0 0 12px;
    color: #a78bfa;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nc-quiz-intro h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.25;
}

.nc-quiz-intro p {
    max-width: 650px;
    margin: 0 auto;
    color: #c6c8d3;
    font-size: 1rem;
    line-height: 1.7;
}

.nc-quiz-progresso {
    margin-bottom: 28px;
}

.nc-quiz-contador {
    display: block;
    margin-bottom: 10px;
    color: #d6d0ff;
    font-size: 0.95rem;
    font-weight: 700;
}

.nc-quiz-barra {
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: #303447;
    border-radius: 20px;
}

.nc-quiz-barra-preenchimento {
    display: block;
    width: 12.5%;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
    border-radius: inherit;
    transition: width 0.3s ease;
}

.nc-quiz-pergunta {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 750;
    line-height: 1.4;
}

.nc-quiz-opcoes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.nc-quiz-opcao {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    color: #e8e9f1;
    background: #222536;
    border: 1px solid #3a3e53;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
}

.nc-quiz-opcao:hover {
    background: #2b2c43;
    border-color: #9b7af5;
    transform: translateY(-2px);
}

.nc-quiz-opcao:focus-visible,
.nc-quiz .nc-button:focus-visible {
    outline: 3px solid #c4b5fd;
    outline-offset: 3px;
}

.nc-quiz-opcao.is-selected,
.nc-quiz-opcao[aria-pressed="true"] {
    color: #ffffff;
    background: #34275a;
    border-color: #a78bfa;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.18);
}

.nc-quiz-acoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.nc-quiz .nc-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 20px;
    color: #ffffff;
    background: #7651d6;
    border: 1px solid #8b6be8;
    border-radius: 10px;
    font: inherit;
    font-weight: 750;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nc-quiz .nc-button:hover:not(:disabled) {
    background: #8b5cf6;
    transform: translateY(-1px);
}

.nc-quiz .nc-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.nc-quiz .nc-quiz-voltar {
    color: #e5e2f3;
    background: transparent;
    border-color: #55536b;
}

.nc-quiz .nc-quiz-voltar:hover:not(:disabled) {
    background: #29283a;
}

.nc-quiz-resultado {
    padding: 28px 20px;
    background: #222536;
    border: 1px solid #48405f;
    border-radius: 15px;
    text-align: center;
}

.nc-quiz-resultado-icone {
    margin-bottom: 14px;
    font-size: 3.5rem;
    line-height: 1.2;
}

.nc-quiz-resultado h3 {
    margin: 8px 0 16px;
    color: #ffffff;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.3;
}

.nc-quiz-resultado p:not(.nc-section-label) {
    max-width: 650px;
    margin: 12px auto;
    color: #d0d1dc;
    font-size: 1rem;
    line-height: 1.8;
}

.nc-quiz-resultado .nc-button {
    margin-top: 18px;
}

.nc-quiz [hidden] {
    display: none !important;
}

/* Ajustes para celulares */
@media (max-width: 600px) {
    .nc-quiz {
        margin: 22px auto;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .nc-quiz-intro {
        margin-bottom: 24px;
    }

    .nc-quiz-opcao {
        min-height: 54px;
        padding: 14px;
        font-size: 0.96rem;
    }

    .nc-quiz-acoes {
        align-items: stretch;
    }

    .nc-quiz .nc-button {
        flex: 1 1 auto;
        padding: 12px 14px;
    }

    .nc-quiz-resultado {
        padding: 24px 15px;
    }
}

/* ==========================================
   NERDS CULTURA — HUB GEEK
   ========================================== */

.nc-hub {
    --hub-bg: #10111b;
    --hub-card: #191b2a;
    --hub-text: #f5f5ff;
    --hub-muted: #b7bbcf;
    --hub-purple: #a78bfa;
    --hub-blue: #60a5fa;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--hub-text);
    font-family: inherit;
    line-height: 1.7;
}

.nc-hub *,
.nc-hub *::before,
.nc-hub *::after {
    box-sizing: border-box;
}

/* Área principal */

.nc-hub .nc-hub-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 30px 48px;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(124, 58, 237, .27), transparent 48%),
        radial-gradient(ellipse at 90% 80%, rgba(37, 99, 235, .22), transparent 45%),
        linear-gradient(135deg, #151426, #101827 60%, #171326);
    border: 1px solid #34304f;
    border-radius: 22px;
    text-align: center;
    isolation: isolate;
}

.nc-hub .nc-hub-hero::before {
    position: absolute;
    z-index: -1;
    top: -100px;
    left: 50%;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(167, 139, 250, .13);
    border-radius: 50%;
    content: "";
    transform: translateX(-50%);
    box-shadow:
        0 0 0 35px rgba(167, 139, 250, .035),
        0 0 0 70px rgba(96, 165, 250, .025);
}

.nc-hub .nc-hub-etiqueta {
    display: inline-block;
    margin: 0 0 14px;
    color: var(--hub-purple);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

.nc-hub .nc-hub-hero h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.nc-hub .nc-hub-hero > p {
    max-width: 680px;
    margin: 0 auto 28px;
    color: #d1d5e8;
    font-size: 1.08rem;
    line-height: 1.9;
}

.nc-hub .nc-hub-botao {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 14px 23px;
    color: #fff;
    background: linear-gradient(110deg, #7546d8, #4b65d8);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(91, 65, 200, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.nc-hub .nc-hub-botao:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(91, 65, 200, .38);
}

.nc-hub .nc-hub-destaque {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
    color: #c7c4e6;
    font-size: .85rem;
}

/* Título da seção de categorias */

.nc-hub .nc-hub-universos {
    padding: 65px 0 35px;
    scroll-margin-top: 35px;
}

.nc-hub .nc-hub-titulo {
    margin: 0 auto 30px;
    text-align: center;
}

.nc-hub .nc-hub-titulo h2 {
    margin: 0 0 12px;
    color: var(--hub-text);
    font-size: clamp(1.65rem, 4vw, 2.4rem);
    font-weight: 850;
    line-height: 1.3;
}

.nc-hub .nc-hub-titulo > p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--hub-muted);
    font-size: 1rem;
    line-height: 1.8;
}


/* Grade de cards */

.nc-hub .nc-hub-grade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nc-hub .nc-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 290px;
    padding: 26px 23px;
    overflow: hidden;
    color: var(--hub-text);
    background:
        radial-gradient(ellipse at 100% 0%, var(--hub-glow), transparent 55%),
        var(--hub-card);
    border: 1px solid var(--hub-border);
    border-radius: 17px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
    transition: transform .22s ease, border-color .22s ease,
        box-shadow .22s ease;
}

.nc-hub .nc-hub-card:hover {
    color: #fff;
    border-color: var(--hub-accent);
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.nc-hub .nc-hub-card:focus-visible,
.nc-hub .nc-hub-botao:focus-visible {
    outline: 3px solid #c4b5fd;
    outline-offset: 4px;
}

.nc-hub .nc-hub-anime {
    --hub-accent: #c084fc;
    --hub-border: #49345f;
    --hub-glow: rgba(147, 51, 234, .22);
}

.nc-hub .nc-hub-games {
    --hub-accent: #60a5fa;
    --hub-border: #2c496c;
    --hub-glow: rgba(37, 99, 235, .22);
}

.nc-hub .nc-hub-quadrinhos {
    --hub-accent: #f0abfc;
    --hub-border: #593752;
    --hub-glow: rgba(192, 38, 211, .19);
}

.nc-hub .nc-hub-card-icone {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    color: var(--hub-accent);
    background: rgba(255, 255, 255, .055);
    border: 1px solid var(--hub-border);
    border-radius: 14px;
    font-size: 1.7rem;
    line-height: 1;
}

/* Ícones SVG em tamanho reduzido */

.nc-hub .nc-hub-card-icone svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nc-hub .nc-hub-card-numero {
    margin-bottom: 9px;
    color: var(--hub-accent);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: 1.8px;
}

.nc-hub .nc-hub-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1.35;
}

.nc-hub .nc-hub-card > p {
    margin: 0 0 22px;
    color: var(--hub-muted);
    font-size: .94rem;
    line-height: 1.8;
}

.nc-hub .nc-hub-card-link {
    margin-top: auto;
    color: var(--hub-accent);
    font-size: .9rem;
    font-weight: 800;
}

/* Chamada final */

.nc-hub .nc-hub-final {
    margin: 30px 0 20px;
    padding: 42px 24px;
    background:
        radial-gradient(ellipse at 10% 100%, rgba(124, 58, 237, .2), transparent 55%),
        linear-gradient(120deg, #171629, #151b2a);
    border: 1px solid #37334f;
    border-radius: 19px;
    text-align: center;
}

.nc-hub .nc-hub-final h2 {
    max-width: 700px;
    margin: 0 auto 13px;
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 850;
    line-height: 1.35;
}

.nc-hub .nc-hub-final > p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: var(--hub-muted);
    line-height: 1.8;
}

/* Tablet */

@media (max-width: 900px) {
    .nc-hub .nc-hub-grade {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nc-hub .nc-hub-card {
        min-height: 270px;
    }
}

/* Celular */

@media (max-width: 600px) {
    .nc-hub .nc-hub-hero {
        padding: 52px 20px 32px;
        border-radius: 16px;
    }

    .nc-hub .nc-hub-hero h1 {
        letter-spacing: -0.7px;
    }

    .nc-hub .nc-hub-hero > p {
        font-size: 1rem;
    }

    .nc-hub .nc-hub-destaque {
        gap: 8px;
        font-size: .78rem;
    }

    .nc-hub .nc-hub-universos {
        padding-top: 45px;
    }

    .nc-hub .nc-hub-grade {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .nc-hub .nc-hub-card {
        min-height: 0;
        padding: 23px 20px;
    }

    .nc-hub .nc-hub-card-icone {
        margin-bottom: 18px;
    }

    .nc-hub .nc-hub-final {
        padding: 32px 19px;
    }

    .nc-hub .nc-hub-botao {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nc-hub .nc-hub-card,
    .nc-hub .nc-hub-botao {
        transition: none;
    }
}


/* NERDS CULTURA — IMAGENS DOS CARDS DA CATEGORIA ANIMES */

body.category-animes .nc-post-grid .nc-post-image,
body.category-animes .nc-post-grid .nc-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

body.category-animes .nc-post-grid .nc-post-image img,
body.category-animes .nc-post-grid .nc-card-image img,
body.category-animes .nc-post-grid .nc-post-card img.wp-post-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

/* NERDS CULTURA — IMAGEM PRINCIPAL DOS ARTIGOS */

body.single-post .wp-post-image {
    display: block;
    width: 100%;
    max-width: 850px;
    height: 478px;
    object-fit: cover;
    object-position: center;
    margin: 24px auto;
}

/* Ajuste para celulares */
@media (max-width: 640px) {
    body.single-post .wp-post-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        margin: 18px auto;
    }
}

/* NERDS CULTURA — LINKS DENTRO DOS ARTIGOS */

body.single-post .entry-content a,
body.single-post .post-content a {
    color: #67e8f9;
    text-decoration: underline;
    text-decoration-color: rgba(103, 232, 249, 0.55);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

body.single-post .entry-content a:hover,
body.single-post .post-content a:hover {
    color: #c4b5fd;
    text-decoration-color: #c4b5fd;
}

body.single-post .entry-content a:focus-visible,
body.single-post .post-content a:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
}

/* LINKS DO TEXTO DOS ARTIGOS — NERDS CULTURA */

body.single-post article .entry-content a,
body.single-post article .post-content a,
body.single-post article .wp-block-post-content a,
body.single-post article p a,
body.single-post article li a {
    color: #67e8f9 !important;
    text-decoration: underline !important;
    text-decoration-color: #67e8f9 !important;
    text-underline-offset: 3px;
}

body.single-post article .entry-content a:hover,
body.single-post article .post-content a:hover,
body.single-post article .wp-block-post-content a:hover,
body.single-post article p a:hover,
body.single-post article li a:hover {
    color: #c4b5fd !important;
}
