/**
 * Sala de Imprensa — empty state da categoria `press`
 * (vistonvisa.com/{locale}/imprensa|press|prensa) enquanto tiver menos de
 * TermArchivePageData::PRESS_MIN_ARTICLES matérias publicadas no locale.
 * Layout: hero + grid (cartão de canais de imprensa à esquerda, formulário à
 * direita) + lista das matérias já existentes (1–9) abaixo. Mesmo idioma visual
 * das landings (grayscale frio, primária #030712), classes .press-* + helpers
 * .vnv-* (reaproveitados do Contato).
 *
 * AUTOCONTIDO (igual às demais landings): o portal público NÃO carrega o
 * app.css/Vite e o tailwind-built.css é o build PURGADO do tema. Por isso este
 * arquivo traz (1) as classes de layout .press-*, (2) os helpers de formulário
 * .vnv-* + .contact-honeypot (reproduzidos em hex literal, fonte única do
 * app.css/page-contact.css) e (3) backfill de utilitários. Os archive-card da
 * lista de matérias usam classes Tailwind já presentes no build do portal.
 *
 * CSP estrita (sem inline): animações de entrada por CSS; ícones <x-ui.icon>
 * (SVG inline) → seletores de cor cobrem `svg`.
 */

/* ── Backfill de utilitários Tailwind ausentes do build purgado ─────────── */
.text-red-500 { color: #ef4444; }

/* ── Animações de entrada (CSS puro, auto-play no load — sem JS) ─────────── */
@keyframes vnvFadeIn { from { opacity: 0; } to { opacity: 1; } }

.fade-in { animation: vnvFadeIn 0.7s ease both; }

@media (prefers-reduced-motion: reduce) {
    .fade-in { animation: none; }
}

/* ===== HERO ===== */
.press-hero {
    padding: 5rem 0 2.5rem;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.press-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.press-badge svg { width: 1rem; height: 1rem; }

.press-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #030712;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}

.press-hero-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 42rem;
    margin: 0 auto;
}

/* ===== MAIN GRID ===== */
.press-main {
    padding: 3rem 0 5rem;
    background: #fff;
}

.press-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .press-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ── Coluna esquerda: apresentação + canais ─────────────────────────────── */
.press-aside {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Cartão de apresentação do empty state (fundo claro, borda suave). */
.press-empty-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 1.75rem;
}

.press-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #030712;
    color: #fff;
    border-radius: 0.75rem;
    margin-bottom: 1.125rem;
}

.press-empty-icon svg { width: 1.5rem; height: 1.5rem; }

.press-empty-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #030712;
    line-height: 1.25;
    margin: 0 0 0.625rem;
}

.press-empty-body {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ── Canais de imprensa ─────────────────────────────────────────────────── */
.press-channels-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #030712;
    margin: 0 0 0.25rem;
}

.press-channels {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.press-channel {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.press-channel-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    color: #374151;
}

.press-channel-icon svg { width: 1.25rem; height: 1.25rem; }

.press-channel-body {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;
}

.press-channel-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.press-channel-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #030712;
    line-height: 1.4;
    word-break: break-word;
}

.press-channel-sub {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.45;
}

.press-channel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #030712;
}

.press-channel-cta svg {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.15s ease;
}

a.press-channel-body--link {
    text-decoration: none;
    transition: color 0.15s ease;
}

a.press-channel-body--link:hover { text-decoration: none; }
a.press-channel-body--link:hover .press-channel-value { color: #1f2937; }
a.press-channel-body--link:hover .press-channel-cta svg { transform: translateX(0.1875rem); }

/* ── Coluna direita: formulário (mesmo card do Contato) ─────────────────── */
.press-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
    padding: 1.75rem;
}

@media (min-width: 1024px) {
    .press-form-card { padding: 2.25rem; }
}

.press-form-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #030712;
    margin: 0 0 0.375rem;
}

.press-form-card-note {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 1.75rem;
}

.press-form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.5;
}

.press-form-privacy svg {
    flex-shrink: 0;
    width: 0.9375rem;
    height: 0.9375rem;
    margin-top: 0.125rem;
    color: #9ca3af;
}

/* Honeypot offscreen (mesma classe do Contato). */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* ── Matérias já publicadas (1–9) ───────────────────────────────────────── */
.press-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.press-articles-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #030712;
    letter-spacing: -0.02em;
    margin: 0 0 1.75rem;
}

.press-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== CAMPOS DO FORMULÁRIO (.vnv-* — fonte única reproduzida do app.css) === */
.vnv-field {
    display: block;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.375rem;
    color: #111827;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vnv-field::placeholder { color: #9ca3af; }

.vnv-field:focus {
    outline: none;
    border-color: #374151;
    box-shadow: 0 0 0 2px rgb(55 65 81 / 0.15);
}

.vnv-field:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
    box-shadow: none;
    cursor: not-allowed;
}

.vnv-field[aria-invalid="true"] { border-color: #ef4444; }

.vnv-field[aria-invalid="true"]:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgb(239 68 68 / 0.30);
}

@media (min-width: 40rem) {
    .vnv-field {
        min-height: 2.75rem;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

textarea.vnv-field {
    min-height: 6rem;
    resize: vertical;
}

.vnv-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.vnv-help {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.375rem;
}

.vnv-checkbox {
    margin-top: 0.125rem;
    height: 1rem;
    width: 1rem;
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    accent-color: #030712;
}

.vnv-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(55 65 81 / 0.30);
}

/* Botão primário (padrão do botão de criar conta: #030712 → hover #1f2937). */
.vnv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
    background: #030712;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.vnv-btn-primary:hover {
    background: #1f2937;
    color: #fff;
    text-decoration: none;
}

.vnv-btn-primary:active { transform: scale(0.98); }
.vnv-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.vnv-btn-primary svg { width: 1.125rem; height: 1.125rem; }

/* ===== LAYOUT DO FORMULÁRIO (autocontido) ===== */
.vnv-form { display: flex; flex-direction: column; gap: 1.25rem; }

.vnv-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 640px) {
    .vnv-form-row--2 { grid-template-columns: 1fr 1fr; }
}

.vnv-consents {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.vnv-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.5;
}

.vnv-consent a { color: #111827; text-decoration: underline; }

/* Alertas do formulário (sucesso / erros de validação). */
.vnv-alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.vnv-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.vnv-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.vnv-alert--error ul { margin: 0; padding-left: 1.25rem; list-style: disc; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .press-hero { padding: 3rem 0 2rem; }
    .press-hero-title { font-size: 2.25rem; }
    .press-hero-subtitle { font-size: 1rem; }
    .press-main { padding: 2.5rem 0 3.5rem; }
    .press-articles { margin-top: 3rem; padding-top: 2.5rem; }
    .press-articles-title { font-size: 1.5rem; }
}

/* =========================================================================
   ===== DARK MODE =========================================================
   Mesma convenção das demais landings: classes .press-* e .vnv-* com hex
   literais que o vnv-dark.css global NÃO cobre → dark tratado AQUI, escopado.
   Tokens da rampa carvão neutro (--color-brand-50..950) vêm do vnv-dark.css,
   carregado ANTES deste arquivo. Rampa invertida: índice baixo = fundo escuro,
   índice alto = texto claro; preenchidos primários (#030712 → branco) INVERTEM
   para claro (brand-950) com texto escuro.
   ========================================================================= */

html.dark .press-hero { background: var(--color-brand-50); }
html.dark .press-main { background: var(--color-brand-50); }

html.dark .press-badge {
    background: var(--color-brand-200);
    color: var(--color-brand-600);
}
html.dark .press-hero-title { color: var(--color-brand-900); }
html.dark .press-hero-subtitle { color: var(--color-brand-500); }

/* ── Cartão de apresentação + canais ────────────────────────────────────── */
html.dark .press-empty-card {
    background: var(--color-brand-100);
    border-color: var(--color-brand-200);
}
/* Ícone primário (carvão→branco) inverte para o claro primário. */
html.dark .press-empty-icon {
    background: var(--color-brand-950);
    color: #141414;
}
html.dark .press-empty-title { color: var(--color-brand-900); }
html.dark .press-empty-body { color: var(--color-brand-500); }

html.dark .press-channels-title { color: var(--color-brand-900); }
html.dark .press-channel-icon {
    background: var(--color-brand-200);
    border-color: var(--color-brand-200);
    color: var(--color-brand-700);
}
html.dark .press-channel-label { color: var(--color-brand-500); }
html.dark .press-channel-value { color: var(--color-brand-900); }
html.dark .press-channel-sub { color: var(--color-brand-500); }
html.dark .press-channel-cta { color: var(--color-brand-900); }
html.dark a.press-channel-body--link:hover .press-channel-value { color: var(--color-brand-700); }

/* ── Formulário: card + campos .vnv-* ──────────────────────────────────── */
html.dark .press-form-card {
    background: var(--color-brand-100);
    border-color: var(--color-brand-200);
    box-shadow: none;
}
html.dark .press-form-card-title { color: var(--color-brand-900); }
html.dark .press-form-card-note { color: var(--color-brand-500); }
html.dark .press-form-privacy { color: var(--color-brand-500); }
html.dark .press-form-privacy svg { color: var(--color-brand-400); }

/* Campo "rebaixado" (#121212, mais escuro que o card) p/ leitura de input well. */
html.dark .vnv-field {
    color: var(--color-brand-900);
    background-color: #121212;
    border-color: var(--color-brand-300);
    box-shadow: none;
}
html.dark .vnv-field::placeholder { color: var(--color-brand-400); }
html.dark .vnv-field:focus {
    border-color: var(--color-brand-500);
    box-shadow: 0 0 0 2px rgb(196 196 196 / 0.25);
}
html.dark .vnv-field:disabled {
    background-color: var(--color-brand-200);
    color: var(--color-brand-500);
    border-color: var(--color-brand-200);
}
html.dark .vnv-field[aria-invalid="true"] { border-color: var(--color-danger-500); }
html.dark .vnv-field[aria-invalid="true"]:focus {
    border-color: var(--color-danger-500);
    box-shadow: 0 0 0 2px rgb(248 113 113 / 0.30);
}
html.dark .vnv-label { color: var(--color-brand-700); }
html.dark .vnv-help { color: var(--color-brand-500); }
html.dark .vnv-checkbox {
    border-color: var(--color-brand-300);
    accent-color: var(--color-brand-900);
}
html.dark .vnv-checkbox:focus {
    box-shadow: 0 0 0 2px rgb(196 196 196 / 0.30);
}
html.dark .vnv-consents { border-top-color: var(--color-brand-200); }
html.dark .vnv-consent { color: var(--color-brand-600); }
html.dark .vnv-consent a { color: var(--color-brand-900); }

/* Asterisco de obrigatório → vermelho mais claro no dark. */
html.dark .text-red-500 { color: var(--color-danger-500); }

/* Botão primário do form: invertido (claro). */
html.dark .vnv-btn-primary {
    background: var(--color-brand-950);
    color: #141414;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}
html.dark .vnv-btn-primary:hover {
    background: var(--color-brand-800);
    color: #141414;
}

/* Alertas (sucesso / erro). */
html.dark .vnv-alert--success {
    background: var(--color-success-50);
    border-color: var(--color-success-700);
    color: var(--color-success-500);
}
html.dark .vnv-alert--error {
    background: var(--color-danger-50);
    border-color: var(--color-danger-600);
    color: var(--color-danger-500);
}

/* ── Matérias publicadas: divisória no dark ─────────────────────────────── */
html.dark .press-articles { border-top-color: var(--color-brand-200); }
html.dark .press-articles-title { color: var(--color-brand-900); }
