/*
Theme Name: IA do Brasil Blue/Green
Theme URI: https://iadobrasil.com/
Author: IA do Brasil
Description: Tema WordPress responsivo para blog de inteligência artificial, preservando conteúdo, URLs e SEO via Rank Math.
Version: 1.0.2
Text Domain: iadobrasil-bluegreen
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
    --bg: #071317;
    --bg-deep: #061113;
    --bg-soft: #0a1e22;
    --card: #0c2025;
    --card-soft: rgba(255, 255, 255, .045);
    --text: #e7f5f5;
    --muted: #a7c6c4;
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .15);
    --blue: #18a7d6;
    --green: #19c37d;
    --blue-soft: rgba(24, 167, 214, .18);
    --green-soft: rgba(25, 195, 125, .16);
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, .24);
    --ring: 0 0 0 5px rgba(25, 195, 125, .18);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(125deg, rgba(24, 167, 214, .09), transparent 32%),
        linear-gradient(235deg, rgba(25, 195, 125, .08), transparent 36%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 56%, var(--bg-deep) 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(25, 195, 125, .7) 0 1px, transparent 2px),
        radial-gradient(circle at 34% 28%, rgba(24, 167, 214, .62) 0 1px, transparent 2px),
        radial-gradient(circle at 64% 18%, rgba(231, 245, 245, .22) 0 1px, transparent 2px),
        radial-gradient(circle at 80% 45%, rgba(25, 195, 125, .55) 0 1px, transparent 2px),
        radial-gradient(circle at 28% 70%, rgba(24, 167, 214, .5) 0 1px, transparent 2px),
        linear-gradient(115deg, transparent 0 48%, rgba(24, 167, 214, .14) 49%, transparent 50%),
        linear-gradient(35deg, transparent 0 47%, rgba(25, 195, 125, .12) 48%, transparent 50%);
    background-size: 260px 260px, 260px 260px, 260px 260px, 260px 260px, 260px 260px, 560px 560px, 560px 560px;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100000;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    border-radius: 10px;
    background: #000;
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 19, 23, .78);
    backdrop-filter: blur(18px);
}

.admin-bar .site-header {
    top: 32px;
}

.site-header__inner {
    width: min(100% - 32px, var(--container));
    height: 70px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
    transform-origin: left center;
    transition: transform .24s ease;
}

.site-logo:hover {
    transform: scale(1.08);
}
.site-logo {
}
.site-logo__spin-wrap {
    display: inline-block;
    height: 58px;
    width: 58px;
    border-radius: 50%;
    overflow: hidden;
}
.site-logo__globe {
    height: 58px;
    width: 58px;
    border-radius: 50%;
    display: block;
    background-image: url('assets/img/logo-globe.webp');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: 0 0;
    animation: logoGlow 2.5s ease-in-out infinite, logoSpinTexture 3s linear infinite;
    box-shadow: inset -8px -4px 14px rgba(0,0,0,0.35);
    -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 60%);
mask-image: radial-gradient(circle, #000 45%, transparent 60%);
}
.site-logo__text-img {
    height: 38px;
    width: auto;
    display: block;
}

@keyframes logoGlow {
    0%, 85%, 100% {
        filter: drop-shadow(0 0 0px rgba(25,195,125,0)) brightness(1);
    }
    90% {
        filter: drop-shadow(0 0 3px rgba(24,167,214,0.4)) brightness(1.05);
    }
    93% {
        filter: drop-shadow(0 0 14px rgba(255,255,255,0.9))
                drop-shadow(0 0 22px rgba(25,195,125,0.7))
                brightness(1.35);
    }
    96% {
        filter: drop-shadow(0 0 4px rgba(25,195,125,0.3)) brightness(1);
    }
}
@keyframes logoSpinTexture {
    from { background-position: 0 0; }
    to   { background-position: -58px 0; }
}

.site-logo__mark {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.site-logo__image {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 54px;
    transition: transform .24s ease;
}

.site-logo__text {
    display: grid;
    line-height: 1.05;
}

.site-logo__text strong {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.site-logo__text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .76rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(231, 245, 245, .86);
    font-size: .92rem;
    font-weight: 600;
}

.primary-nav > a,
.nav-dropdown__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.primary-nav > a::after,
.nav-dropdown__button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    transition: width .24s ease;
}

.primary-nav > a:hover,
.nav-dropdown__button:hover,
.nav-dropdown.is-open .nav-dropdown__button {
    color: #fff;
}

.primary-nav > a:hover::after,
.nav-dropdown__button:hover::after,
.nav-dropdown.is-open .nav-dropdown__button::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    width: min(340px, 90vw);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(12, 32, 37, .96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown.is-open .nav-dropdown__panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown__panel a {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    text-decoration: none;
}

.nav-dropdown__panel a:hover {
    border-color: rgba(24, 167, 214, .28);
    background: rgba(255, 255, 255, .07);
}

.nav-dropdown__panel small {
    color: var(--muted);
    font-size: .76rem;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(7, 19, 23, .98);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu nav {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    padding: 14px 0 20px;
}

.mobile-menu a,
.mobile-menu summary {
    display: block;
    padding: 13px 4px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu details div {
    display: grid;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.site-main {
    min-height: 60vh;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 0 0 5px rgba(25, 195, 125, .12);
}

.hero {
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .7;
    background:
        linear-gradient(90deg, rgba(24, 167, 214, .13), transparent 38%),
        linear-gradient(270deg, rgba(25, 195, 125, .12), transparent 42%),
        linear-gradient(180deg, rgba(7, 19, 23, .9), rgba(7, 19, 23, .62));
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
    gap: 42px;
    align-items: center;
    min-height: 620px;
    padding: 72px 0;
}

.hero__content h1,
.page-hero h1,
.tools-hero h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    color: #fff;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(2.45rem, 7vw, 5.2rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: 0;
}

.hero__content p {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.newsletter-form {
    display: flex;
    width: min(100%, 520px);
    margin-top: 28px;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    box-shadow: var(--shadow-soft);
}

.newsletter-form input,
.ai-chat__form textarea,
.search-form input[type="search"] {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: 0;
}

.newsletter-form input {
    padding: 12px 14px;
}

.newsletter-form input::placeholder,
.ai-chat__form textarea::placeholder,
.search-form input::placeholder {
    color: rgba(167, 198, 196, .72);
}

.newsletter-form:focus-within,
.ai-chat__form:focus-within,
.search-form:focus-within {
    border-color: rgba(25, 195, 125, .62);
    box-shadow: var(--ring);
}

.newsletter-form button,
.button,
.search-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(25, 195, 125, .18);
    transition: transform .2s ease, filter .2s ease;
}

.newsletter-form button {
    width: 50px;
    padding: 0;
    font-size: 1.3rem;
}

.newsletter-form button:hover,
.button:hover,
.search-form input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.newsletter-feedback {
    min-height: 1.4em;
    margin: 10px 0 0;
    color: var(--green);
    font-size: .9rem;
}

.hero__panel,
.about-preview__card,
.about-preview__features,
.page-content,
.filter-sidebar,
.tools-stats,
.sidebar-newsletter {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03));
    box-shadow: var(--shadow-soft);
}

.hero__panel {
    padding: 26px;
}

.hero__panel-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    position: relative;
}
.hero-search-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hero-search-toggle:hover,
.hero-search-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-color: transparent;
    color: #fff;
    transform: scale(1.06);
}

.hero-search-form {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: flex;
    width: min(320px, 80vw);
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(12, 32, 37, .98);
    box-shadow: var(--shadow);
    animation: heroSearchIn .18s ease;
}

.hero-search-form[hidden] {
    display: none;
}

.hero-search-form input {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: 0;
}

.hero-search-form input::placeholder {
    color: rgba(167, 198, 196, .72);
}

.hero-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    font-size: 1.1rem;
}

@keyframes heroSearchIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 460px) {
    .hero-search-form {
        width: min(280px, 88vw);
    }
}
.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(25, 195, 125, .16);
}
.status-dot--pulse {
    position: relative;
    animation: statusDotPulseOpacity 1.8s ease-in-out infinite;
}
.status-dot--pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(25,195,125,0.5);
    animation: statusDotPulseRing 1.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes statusDotPulseOpacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes statusDotPulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}
.hero__orb {
    display: grid;
    place-items: center;
    min-height: 250px;
    margin: 22px 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(24, 167, 214, .15), rgba(25, 195, 125, .10)),
        rgba(255, 255, 255, .03);
}
.ai-network-visual {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 20px;
    background: radial-gradient(circle at center, #0c2025 0%, #071317 75%);
    overflow: hidden;
    position: relative;
}
.ai-network-visual canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.hero__orb .site-logo__mark {
    width: 118px;
    height: 118px;
    border-radius: 30px;
}

.hero__orb svg:not(.iadobrasil-network-badge) {
    width: 86px;
    height: 86px;
}

.hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero__stats div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
}

.hero__stats strong {
    display: block;
    color: #fff;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 2rem;
}

.hero__stats span {
    color: var(--muted);
    font-size: .88rem;
}

.section {
    padding: 72px 0;
}

.section-surface {
    background:
        linear-gradient(180deg, rgba(6, 17, 19, .1), rgba(6, 17, 19, .86) 26%, rgba(6, 17, 19, .98));
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2,
.about-preview h2,
.filter-sidebar h2,
.article-sidebar h2 {
    margin: 10px 0;
    color: #fff;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p,
.about-preview p,
.filter-note p,
.tools-hero p,
.tools-hero__description,
.page-content,
.article-body,
.post-card p {
    color: var(--muted);
}

.post-grid {
    display: grid;
    gap: 22px;
}

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

.post-grid--three,
.post-grid--tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03));
    box-shadow: var(--shadow-soft);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(24, 167, 214, .28);
    box-shadow: var(--shadow);
}

.post-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #0b1b1f;
}

.post-card__image,
.placeholder-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-thumb {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(24, 167, 214, .26), rgba(25, 195, 125, .18)),
        #0b1b1f;
}

.placeholder-thumb svg {
    width: 42%;
    max-width: 120px;
    fill: none;
    stroke: rgba(231, 245, 245, .45);
    stroke-width: 2.4;
}

.post-card__media img {
    transition: transform .32s ease;
}

.post-card:hover .post-card__media img {
    transform: scale(1.04);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    background: rgba(7, 19, 23, .58);
    color: rgba(231, 245, 245, .92);
    font-size: .75rem;
    font-weight: 800;
}

.post-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
}

.post-card__body {
    padding: 20px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(167, 198, 196, .82);
    font-size: .78rem;
}

.post-card__title {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.32;
}

.post-card__title a {
    text-decoration: none;
}

.post-card p {
    margin: 0 0 14px;
    font-size: .92rem;
}

.accent-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
}

.accent-link:hover {
    color: var(--blue);
}

.about-preview {
    background: var(--bg-deep);
}

.about-preview__grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 24px;
    align-items: start;
}

.about-preview__card,
.about-preview__features {
    padding: 28px;
}

.about-preview__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-preview__features div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
}

.about-preview__features strong {
    display: block;
    margin-top: 12px;
    color: #fff;
}

.about-preview__features p {
    margin: 8px 0 0;
    font-size: .92rem;
}

.feature-icon {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(25, 195, 125, .26), rgba(24, 167, 214, .10));
    border: 1px solid var(--line);
}

.feature-icon--blue {
    background: linear-gradient(135deg, rgba(24, 167, 214, .28), rgba(25, 195, 125, .10));
}
.feature-icon--globe {
    background-image: url('assets/img/logo-globe.webp');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: none;
    animation: featureLightning 3.2s ease-in-out infinite;
}

@keyframes featureLightning {
    0%, 78%, 100% {
        filter: drop-shadow(0 0 0px rgba(25,195,125,0)) brightness(1);
    }
    82% {
        filter: drop-shadow(0 0 4px rgba(24,167,214,0.5)) brightness(1.1);
    }
    85% {
        filter: drop-shadow(0 0 16px rgba(255,255,255,0.95))
                drop-shadow(0 0 26px rgba(25,195,125,0.8))
                brightness(1.5);
    }
    88% {
        filter: drop-shadow(0 0 3px rgba(25,195,125,0.3)) brightness(1);
    }
}
.button--ghost {
    margin-top: 12px;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
}

.page-hero,
.tools-hero {
    position: relative;
    padding: 70px 0 44px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(24, 167, 214, .12), transparent 42%),
        linear-gradient(270deg, rgba(25, 195, 125, .10), transparent 40%);
}

.page-hero--compact h1,
.tools-hero h1 {
    font-size: clamp(2.3rem, 6vw, 4.25rem);
}

.page-layout {
    max-width: 880px;
}

.page-content {
    padding: 34px;
}

.page-content--intro {
    margin-bottom: 28px;
}

.page-content:empty {
    display: none;
}

.page-content h2,
.page-content h3,
.article-body h2,
.article-body h3 {
    color: #fff;
    line-height: 1.2;
}

.page-content h2,
.article-body h2 {
    margin: 34px 0 14px;
    font-size: 1.6rem;
}

.page-content h3,
.article-body h3 {
    margin: 28px 0 12px;
    font-size: 1.22rem;
}

.page-content p,
.article-body p {
    margin: 0 0 20px;
}

.page-content a,
.article-body a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.page-content a:hover,
.article-body a:hover {
    color: var(--green);
}

.page-content ul,
.page-content ol,
.article-body ul,
.article-body ol {
    margin: 0 0 24px 22px;
    padding: 0;
}

.page-content li,
.article-body li {
    margin-bottom: 8px;
}

.page-content blockquote,
.article-body blockquote {
    margin: 30px 0;
    padding: 22px 24px;
    border-left: 3px solid var(--green);
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
}

.page-content img,
.article-body img {
    border-radius: 16px;
}

.article-shell {
    padding: 44px 0 78px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(167, 198, 196, .82);
    font-size: .86rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--blue);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 46px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-category {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.article-title {
    margin: 0 0 18px;
    color: #fff;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: .92rem;
}

.article-meta a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(167, 198, 196, .55);
}

.article-hero-image {
    margin: 0 0 36px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
}

.article-hero-image img {
    display: block;
    width: 100%;
}

.article-body {
    color: var(--muted);
    font-size: 1.05rem;
}

.article-body strong {
    color: var(--text);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.article-tags a {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    text-decoration: none;
    font-size: .82rem;
}

.article-tags a:hover {
    color: #fff;
    border-color: rgba(24, 167, 214, .28);
}

.share-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.share-section span {
    color: var(--muted);
    font-weight: 700;
}

.share-section a {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.share-section a:hover {
    border-color: rgba(25, 195, 125, .32);
    background: rgba(25, 195, 125, .11);
}

.article-sidebar {
    position: sticky;
    top: 100px;
}

.article-sidebar h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.sidebar-article {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.sidebar-article:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 167, 214, .28);
    background: rgba(255, 255, 255, .07);
}

.sidebar-article__thumb {
    display: block;
    width: 82px;
    height: 66px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card);
}

.sidebar-article__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article strong {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: .9rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-article small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .76rem;
}

.sidebar-newsletter {
    margin-top: 26px;
    padding: 22px;
}

.sidebar-newsletter h3 {
    margin: 0 0 6px;
    color: #fff;
}

.sidebar-newsletter p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.newsletter-form--compact {
    margin-top: 16px;
}

.tools-hero__inner {
    max-width: 880px;
    text-align: center;
}

.tools-hero__inner .eyebrow {
    justify-content: center;
}

.tools-hero__description p {
    margin: 0;
}

.tools-layout__grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.tools-layout__grid--page {
    margin-top: 0;
}

.filter-sidebar {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.filter-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-sidebar h2 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
}

.filter-sidebar__head a {
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.filter-list {
    display: grid;
    gap: 8px;
}

.filter-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.filter-list a:hover,
.filter-list a.is-active {
    border-color: rgba(255, 255, 255, .12);
    background: linear-gradient(90deg, rgba(24, 167, 214, .18), rgba(25, 195, 125, .16));
    color: #fff;
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.filter-note {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
}

.filter-note strong {
    color: #fff;
}

.filter-note p {
    margin: 6px 0 0;
    font-size: .86rem;
}

.tools-content {
    min-width: 0;
}

.tools-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
}

.tools-stats div {
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
}

.tools-stats strong {
    color: var(--green);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.55rem;
}

.tools-stats span {
    margin-left: 8px;
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
}

.post-card--tool .post-card__media {
    aspect-ratio: 4 / 3;
}

.pagination {
    margin-top: 36px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    text-decoration: none;
}

.pagination .current,
.pagination a:hover {
    border-color: rgba(25, 195, 125, .32);
    background: rgba(25, 195, 125, .12);
}

.empty-state {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
}

.search-form {
    display: flex;
    max-width: 520px;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
}

.search-form label {
    flex: 1;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 11px 12px;
}

.search-form input[type="submit"] {
    min-height: 42px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
}

.site-footer__inner {
    width: min(100% - 32px, var(--container));
    min-height: 96px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: var(--muted);
    font-size: .9rem;
}

.site-footer strong {
    display: block;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.back-to-top,
.ai-chat__launcher {
    position: fixed;
    z-index: 1200;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    box-shadow: 0 14px 35px rgba(25, 195, 125, .18);
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
}

.back-to-top {
    right: 96px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.ai-chat__launcher:hover {
    transform: translateY(-1px);
}

.ai-chat__launcher {
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
}

.ai-chat__panel {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 1210;
    width: min(372px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.ai-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, .16);
}

.ai-chat__header div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat__header h2 {
    margin: 0;
    color: #fff;
    font-size: .98rem;
}

.ai-chat__close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
}

.ai-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    min-height: 210px;
    overflow-y: auto;
    padding: 16px;
}

.ai-chat__message {
    width: fit-content;
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    color: #e7f5f5;
    font-size: .9rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.ai-chat__message--assistant {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
}

.ai-chat__message--user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
}

.ai-chat__message--loading {
    color: var(--muted);
}

.ai-chat__form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 12px 12px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
}

.ai-chat__form textarea {
    max-height: 100px;
    min-height: 40px;
    resize: none;
    padding: 9px 10px;
}

.ai-chat__form button {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
}

.ai-chat__form button:disabled {
    cursor: wait;
    opacity: .62;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 1080px) {
    .primary-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero__grid,
    .about-preview__grid,
    .article-layout,
    .tools-layout__grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar,
    .filter-sidebar {
        position: static;
    }

    .post-grid--four,
    .post-grid--three,
    .post-grid--tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 720px) {
    .site-header__inner {
        height: 64px;
    }

    .site-logo:hover {
        transform: none;
    }

    .hero__grid {
        min-height: auto;
        padding: 54px 0;
    }

    .hero__panel {
        padding: 18px;
    }

    .hero__stats,
    .tools-stats,
    .about-preview__features,
    .post-grid--four,
    .post-grid--three,
    .post-grid--tools {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

    .page-content {
        padding: 24px;
    }

    .article-shell {
        padding-top: 30px;
    }

    .newsletter-form {
        border-radius: 16px;
    }

    .newsletter-form input {
        padding-inline: 10px;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 0;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .ai-chat__panel {
        right: 12px;
        bottom: 88px;
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 106px);
    }

    .ai-chat__messages {
        max-height: calc(100dvh - 250px);
    }

    .ai-chat__launcher {
        right: 18px;
        bottom: 18px;
        width: 58px;
        height: 58px;
    }

    .back-to-top {
        right: 88px;
        bottom: 24px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 460px) {
    .container,
    .site-header__inner,
    .site-footer__inner,
    .mobile-menu nav {
        width: min(100% - 24px, var(--container));
    }

    .site-logo__text small {
        display: none;
    }

    .newsletter-form {
        display: grid;
        grid-template-columns: 1fr 50px;
    }

    .tools-stats span {
        display: block;
        margin: 4px 0 0;
    }
}
.iadobrasil-network-badge {
    width: 100%;
    height: 100%;
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: 0 auto;
}
.iadb-flow {
    stroke-dasharray: 4 6;
    animation: iadb-flow-anim 3.5s linear infinite;
}
.iadb-pulse {
    animation: iadb-pulse-anim 2.6s ease-in-out infinite;
}
.iadb-delay-1 { animation-delay: 0.4s; }
.iadb-delay-2 { animation-delay: 0.9s; }
.iadb-delay-3 { animation-delay: 1.4s; }

@keyframes iadb-flow-anim {
    to { stroke-dashoffset: -100; }
}
@keyframes iadb-pulse-anim {
    0%, 100% { r: 3.5; opacity: 0.5; }
    50% { r: 6.5; opacity: 0.15; }
}
.nav-dropdown__panel--single {
    grid-template-columns: 1fr;
    width: min(260px, 90vw);
}