/*
Theme Name: Radar Editorial
Theme URI: https://trends.ttnblog.net/
Author: TTN Blog
Description: Portal editorial rápido e responsivo para cobertura de assuntos em alta, notícias e conteúdo evergreen.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radar-editorial
Tags: news, blog, featured-images, custom-logo, custom-menu, two-columns, accessibility-ready
*/

:root {
	--radar-blue: #0b1633;
	--radar-blue-2: #152754;
	--radar-cyan: #10b9d4;
	--radar-lime: #b6f23a;
	--radar-red: #f04438;
	--radar-ink: #101828;
	--radar-muted: #667085;
	--radar-line: #e4e7ec;
	--radar-bg: #f3f5f8;
	--radar-white: #fff;
	--radar-wrap: 1220px;
	--radar-radius: 16px;
	--radar-shadow: 0 14px 38px rgba(16, 24, 40, .09);
	--radar-font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--radar-display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--radar-bg); color: var(--radar-ink); font: 16px/1.6 var(--radar-font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: #087b93; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--radar-lime); outline-offset: 3px; }
.wrap { width: min(100% - 32px, var(--radar-wrap)); 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; }
.skip-link:focus { position: fixed; z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 10px 14px; clip: auto; background: #fff; color: #000; }

.trend-strip { background: var(--radar-blue); color: #d0d5dd; font-size: .78rem; }
.trend-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.trend-strip__label { color: var(--radar-lime); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.trend-strip__links { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.trend-strip a { color: #fff; white-space: nowrap; }

.site-header { background: #fff; border-bottom: 1px solid var(--radar-line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; padding: 18px 0; }
.brand a { display: inline-flex; align-items: center; gap: 13px; color: var(--radar-ink); text-decoration: none; }
.brand__mark { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: linear-gradient(145deg, var(--radar-cyan), #087b93); color: #fff; box-shadow: 0 10px 24px rgba(16,185,212,.24); }
.brand__mark::before { content: ""; width: 26px; height: 26px; border: 4px solid currentColor; border-radius: 50%; opacity: .95; }
.brand__mark::after { content: ""; position: absolute; width: 22px; height: 4px; border-radius: 4px; background: var(--radar-lime); transform: rotate(-38deg) translate(8px, 8px); transform-origin: center; }
.brand__name { display: block; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.brand__tag { display: block; margin-top: 7px; color: var(--radar-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.custom-logo-link img { max-width: 280px; max-height: 66px; width: auto; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; width: min(34vw, 350px); }
.header-search input { width: 100%; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #d0d5dd; border-right: 0; border-radius: 11px 0 0 11px; }
.header-search button { height: 44px; padding: 0 17px; border: 0; border-radius: 0 11px 11px 0; background: var(--radar-cyan); color: #062a32; font-weight: 900; cursor: pointer; }
.nav-toggle { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--radar-line); border-radius: 11px; background: #fff; font-weight: 850; cursor: pointer; }

.primary-nav { position: sticky; z-index: 800; top: 0; background: linear-gradient(90deg, var(--radar-blue), var(--radar-blue-2)); box-shadow: 0 8px 26px rgba(11,22,51,.18); }
.admin-bar .primary-nav { top: 32px; }
.primary-nav__inner { display: flex; align-items: stretch; justify-content: space-between; }
.primary-nav ul { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.primary-nav a, .all-sections-toggle { display: flex; align-items: center; min-height: 50px; padding: 0 15px; border: 0; background: transparent; color: #fff; font-size: .87rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .all-sections-toggle:hover { background: rgba(255,255,255,.1); color: var(--radar-lime); text-decoration: none; }
.all-sections-toggle { gap: 8px; }
.all-sections-toggle span { color: var(--radar-lime); }
.sections-panel { display: none; position: absolute; z-index: 900; left: 0; right: 0; padding: 26px 0 30px; background: #fff; border-bottom: 1px solid var(--radar-line); box-shadow: var(--radar-shadow); }
.sections-panel.is-open { display: block; }
.sections-panel h2 { margin: 0 0 16px; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.sections-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.sections-grid a { display: block; padding: 9px 0; border-bottom: 1px solid var(--radar-line); color: var(--radar-ink); font-weight: 700; }

.site-main { padding: 34px 0 64px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading h1, .page-heading h2 { margin: 0; font-size: clamp(1.55rem, 3.4vw, 2.25rem); line-height: 1.12; letter-spacing: -.035em; }
.page-heading p { margin: 6px 0 0; color: var(--radar-muted); }
.eyebrow { color: #087b93; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.hero-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,.78fr); gap: 20px; margin-bottom: 40px; }
.hero-main, .hero-side__item, .post-card { position: relative; overflow: hidden; border-radius: var(--radar-radius); background: var(--radar-blue); box-shadow: var(--radar-shadow); }
.hero-main { min-height: 460px; }
.hero-main > a { display: block; height: 100%; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after, .card-media::after { content: ""; position: absolute; inset: 18% 0 0; background: linear-gradient(transparent, rgba(4,11,28,.94)); }
.hero-body { position: absolute; z-index: 2; inset: auto 0 0; padding: 34px; }
.category-pill { display: inline-flex; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; background: var(--radar-cyan); color: #062a32; font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.hero-title { margin: 0; max-width: 94%; font: 800 clamp(2rem, 4vw, 3rem)/1.08 var(--radar-display); letter-spacing: -.025em; }
.hero-side { display: grid; gap: 14px; }
.hero-side__item { min-height: 144px; background: #fff; }
.hero-side__item a { display: grid; grid-template-columns: 138px 1fr; height: 100%; color: var(--radar-ink); }
.hero-side__item .card-media { position: relative; min-height: 144px; }
.hero-side__item .card-media::after { display: none; }
.hero-side__body { display: flex; flex-direction: column; justify-content: center; padding: 16px; }
.hero-side__body h3 { margin: 7px 0 0; font: 800 1.08rem/1.25 var(--radar-display); }

.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 28px; align-items: start; }
.section-title { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; font-size: 1.25rem; letter-spacing: -.02em; }
.section-title::before { content: ""; width: 8px; height: 1.3em; border-radius: 8px; background: var(--radar-cyan); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.post-card { background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16,24,40,.14); }
.card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(145deg, var(--radar-blue-2), #087b93); }
.card-overlay { position: absolute; z-index: 2; inset: auto 0 0; padding: 22px; color: #fff; }
.radar-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: inherit; background: radial-gradient(circle at 78% 20%, rgba(182,242,58,.22), transparent 28%), linear-gradient(145deg, var(--radar-blue-2), #087b93); color: rgba(255,255,255,.16); }
.radar-placeholder span { font-size: clamp(5rem,12vw,9rem); font-weight: 900; line-height: 1; transform: rotate(-8deg); }
.card-overlay h2, .card-overlay h3 { margin: 0; font: 800 1.35rem/1.16 var(--radar-display); text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.post-card__body { padding: 17px 20px 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--radar-muted); font-size: .76rem; }
.post-summary { margin: 10px 0 0; color: #475467; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.read-more { display: inline-block; margin-top: 10px; font-weight: 900; }

.sidebar .widget { margin-bottom: 18px; padding: 20px; border: 1px solid var(--radar-line); border-radius: var(--radar-radius); background: #fff; box-shadow: 0 8px 24px rgba(16,24,40,.05); }
.sidebar .widget-title { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 3px solid var(--radar-cyan); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: 10px 0; border-bottom: 1px solid var(--radar-line); }
.sidebar li:last-child { border: 0; }
.sidebar a { color: var(--radar-ink); font-weight: 700; }

.article-shell { max-width: 860px; margin-inline: auto; }
.article { padding: clamp(24px,5vw,48px); border-radius: 22px; background: #fff; box-shadow: var(--radar-shadow); }
.article h1 { margin: 8px 0 14px; font: 800 clamp(2.1rem,5.5vw,3.55rem)/1.08 var(--radar-display); letter-spacing: -.035em; }
.article .featured-image { margin: 24px -12px 30px; overflow: hidden; border-radius: 18px; }
.article .featured-image img { width: 100%; max-height: 540px; object-fit: cover; }
.entry-content { font-size: 1.06rem; }
.entry-content h2 { margin-top: 1.7em; padding-left: 13px; border-left: 5px solid var(--radar-cyan); font-size: clamp(1.45rem,3vw,1.9rem); line-height: 1.25; }
.entry-content h3 { margin-top: 1.5em; font-size: 1.3rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: 0; margin-bottom: 1.25em; }
.entry-content blockquote { margin: 1.5em 0; padding: 17px 20px; border-left: 5px solid var(--radar-cyan); background: #ecfdff; }
.breadcrumb { margin-bottom: 16px; color: var(--radar-muted); font-size: .82rem; }
.breadcrumb a { color: var(--radar-muted); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; background: #fff; color: var(--radar-ink); font-weight: 800; }
.pagination .current, .pagination a:hover { background: var(--radar-blue); color: #fff; text-decoration: none; }

.site-footer { margin-top: 20px; background: var(--radar-blue); color: #b9c2d0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 32px; padding: 44px 0 32px; }
.site-footer .brand__name, .site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.site-footer h3 { margin: 0 0 14px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

.consent-banner { position: fixed; z-index: 99999; right: 18px; bottom: 18px; width: min(430px, calc(100% - 36px)); padding: 20px; border: 1px solid var(--radar-line); border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(16,24,40,.22); }
.consent-banner[hidden] { display: none; }
.consent-banner h2 { margin: 0 0 6px; font-size: 1.05rem; }
.consent-banner p { margin: 0; color: var(--radar-muted); font-size: .86rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.consent-actions button { min-height: 40px; padding: 0 13px; border: 1px solid var(--radar-line); border-radius: 10px; background: #fff; font-weight: 800; cursor: pointer; }
.consent-actions .accept { border-color: var(--radar-cyan); background: var(--radar-cyan); color: #062a32; }

@media (max-width: 1020px) {
	.hero-grid, .content-layout { grid-template-columns: 1fr; }
	.hero-side { grid-template-columns: repeat(3,1fr); }
	.hero-side__item a { grid-template-columns: 1fr; }
	.hero-side__item .card-media { min-height: auto; aspect-ratio: 16/9; }
	.sections-grid { grid-template-columns: repeat(3,1fr); }
	.footer-grid { grid-template-columns: repeat(2,1fr); }
}

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

@media (max-width: 760px) {
	.wrap { width: min(100% - 24px, var(--radar-wrap)); }
	.trend-strip__inner { justify-content: center; }
	.trend-strip__links { display: none; }
	.site-header__row { flex-wrap: wrap; min-height: auto; padding: 14px 0; }
	.brand__mark { width: 46px; height: 46px; border-radius: 14px; }
	.brand__name { font-size: 1.4rem; }
	.brand__tag { display: none; }
	.nav-toggle { display: inline-flex; align-items: center; }
	.header-search { order: 3; width: 100%; }
	.primary-nav { position: relative; top: auto; }
	.admin-bar .primary-nav { top: auto; }
	.primary-nav__inner { display: none; flex-direction: column; }
	.primary-nav.is-open .primary-nav__inner { display: flex; }
	.primary-nav ul { flex-direction: column; width: 100%; }
	.all-sections-toggle { width: 100%; }
	.sections-panel { position: static; box-shadow: none; }
	.sections-grid { grid-template-columns: repeat(2,1fr); }
	.site-main { padding-top: 24px; }
	.hero-main { min-height: 390px; }
	.hero-body { padding: 24px 20px; }
	.hero-title { font-size: 2rem; }
	.hero-side { grid-template-columns: 1fr; }
	.hero-side__item a { grid-template-columns: 110px 1fr; }
	.hero-side__item .card-media { min-height: 110px; aspect-ratio: auto; }
	.post-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.article { padding: 23px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .post-card { transition: none; } }
