/* EZALX — estilos das páginas de notícias (mesmos tokens da home) */

:root {
    --bg: #ffffff;
    --fg: #000000;
    --text-2: #2a2a2a;
    --muted: #5f5f5f;
    --surface: #f5f5f5;
    --border: #e2e2e2;
    --accent: #06ECF2;
    --accent-text: #00737A;
    --nav-bg: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);

    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --nav-h: 72px;
    --radius: 4px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a0a0a;
        --fg: #ffffff;
        --text-2: #e8e8e8;
        --muted: #a3a3a3;
        --surface: #141414;
        --border: #2a2a2a;
        --accent-text: #06ECF2;
        --nav-bg: rgba(10, 10, 10, 0.9);
        --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0a0a0a;
    --fg: #ffffff;
    --text-2: #e8e8e8;
    --muted: #a3a3a3;
    --surface: #141414;
    --border: #2a2a2a;
    --accent-text: #06ECF2;
    --nav-bg: rgba(10, 10, 10, 0.9);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

/* === BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--fg);
}

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

p { text-wrap: pretty; }

.container { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); }

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 16px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
}

.skip-link:focus { top: 16px; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(6, 236, 242, 0.35); }

.btn-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-light:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* === NAV === */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--fg); }
.logo span { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); list-style: none; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--text-2); position: relative; }

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s var(--ease);
}

.nav-menu a:hover { color: var(--fg); }
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open { display: flex; }
    .nav-menu a { display: block; padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
    .nav-menu a::after { display: none; }
}

/* === NEWS COVER (capa gerada em CSS) === */
.news-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 24px;
    background-color: #0a0a0a;
    background-image:
        radial-gradient(circle at var(--glow-x, 80%) var(--glow-y, 20%), rgba(6, 236, 242, 0.35), transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    color: #fff;
}

.news-cover span {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.news-cover span b { color: var(--accent); font-weight: 800; }

.news-cover--spam { --glow-x: 85%; --glow-y: 15%; }
.news-cover--lens { --glow-x: 20%; --glow-y: 20%; }
.news-cover--ia { --glow-x: 70%; --glow-y: 85%; }

/* === NEWS CARDS (listagem e "leia também") === */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.news-card:hover, .news-card:focus-within { border-color: var(--accent); transform: translateY(-4px); }
.news-card .news-cover { aspect-ratio: 16 / 9; }

.news-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }

.news-meta { font-size: 13px; color: var(--muted); }
.news-meta b { color: var(--accent-text); font-weight: 600; }

.news-card :is(h2, h3) { margin-top: 10px; font-size: 20px; line-height: 1.25; }
.news-card :is(h2, h3) a::after { content: ''; position: absolute; inset: 0; }
.news-card :is(h2, h3) a:focus-visible { outline: none; }
.news-card:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.news-excerpt { margin-top: 10px; font-size: 15px; color: var(--muted); }
.news-more { margin-top: auto; padding-top: 20px; font-size: 14px; font-weight: 600; color: var(--accent-text); }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* === PAGE HEAD (listagem) === */
.page-head { padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.page-head p { max-width: 640px; margin-top: 20px; font-size: 18px; color: var(--muted); }

.page-list { padding-bottom: clamp(72px, 10vw, 128px); }

/* === ARTICLE === */
.article { padding: calc(var(--nav-h) + clamp(32px, 5vw, 64px)) 0 clamp(64px, 8vw, 96px); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; list-style: none; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--border); }
.breadcrumb a:hover { color: var(--accent-text); }

.article-head, .article-body, .article-foot { max-width: 760px; margin-inline: auto; }

.article-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }

.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; font-size: 14px; color: var(--muted); }

.article-lead { margin-top: 24px; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.7; color: var(--text-2); }

.article-cover { max-width: 1000px; margin: clamp(32px, 5vw, 48px) auto; aspect-ratio: 21 / 9; border-radius: var(--radius); }
.article-cover span { font-size: clamp(28px, 5vw, 56px); }

.summary {
    margin-bottom: 40px;
    padding: 24px 28px;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}

.summary h2 { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.summary ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; }

.article-body > h2 { margin: 44px 0 16px; font-size: clamp(24px, 2.8vw, 30px); }
.article-body > p { margin-top: 16px; font-size: 17px; line-height: 1.8; color: var(--text-2); }
.article-body > ul, .article-body > ol { margin-top: 16px; padding-left: 22px; display: grid; gap: 10px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.article-body strong { color: var(--fg); }
.article-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.sources h2 { font-size: 18px; }
.sources ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.sources a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

.article-cta {
    margin-top: 48px;
    padding: clamp(28px, 4vw, 40px);
    background: #0a0a0a;
    color: #fff;
    border-radius: var(--radius);
}

.article-cta h2 { font-size: clamp(22px, 2.6vw, 28px); }
.article-cta p { margin: 12px 0 24px; color: rgba(255, 255, 255, 0.75); }

.related { padding-bottom: clamp(72px, 10vw, 128px); }
.related h2 { margin-bottom: 28px; font-size: clamp(26px, 3vw, 34px); }

/* === FOOTER === */
.site-footer { padding: 72px 0 32px; background: #000; color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.footer-about { margin-top: 16px; max-width: 320px; }

.footer-title {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-list a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .site-footer,
    :root:not([data-theme="light"]) .article-cta { border: 1px solid var(--border); }
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

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

@media print {
    .site-nav, .article-cta, .related, .site-footer { display: none; }
    body { background: #fff; color: #000; }
}
