/* tema-escuro.css | modo escuro do sodeleve.com (20/11/2026)
 * O site nasceu claro (classes do Tailwind sem variantes dark:). Em vez de reescrever cada página, esta folha
 * reinterpreta as cores da identidade quando <html> tem a classe "dark" (botão sol/lua no cabeçalho, salvo no
 * navegador em localStorage 'sodeleve-tema'). Começa SEMPRE claro; páginas com variantes dark: próprias (currículo)
 * convivem com isto.
 * Paleta: fundo #0b1622 · superfície #0e1c2b · texto #e2e8f0 · destaque #67e8f9 (ciano) e esmeralda.
 */
html.dark { color-scheme: dark; }
html.dark body { background-color: #0b1622 !important; color: #cbd5e1; }

/* superfícies */
html.dark .bg-white, html.dark [class~="bg-white/80"], html.dark [class~="bg-white/90"], html.dark [class~="bg-white/95"] { background-color: #0e1c2b !important; }
html.dark .bg-galeria, html.dark [class*="bg-[#FDFBF7]"], html.dark [class*="bg-[#F8F9FA]"] { background-color: #0b1622 !important; }
html.dark .bg-gray-50, html.dark .bg-gray-100, html.dark .bg-slate-50, html.dark .bg-slate-100, html.dark [class~="bg-azulProfundo/5"] { background-color: rgba(255,255,255,.04) !important; }
html.dark .from-galeria, html.dark .from-white { --tw-gradient-from: #0b1622 var(--tw-gradient-from-position) !important; --tw-gradient-to: rgba(11,22,34,0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
html.dark .to-galeria, html.dark .to-white { --tw-gradient-to: #0b1622 var(--tw-gradient-to-position) !important; }
html.dark [class~="via-galeria/40"] { --tw-gradient-stops: var(--tw-gradient-from), rgba(11,22,34,.4) var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
html.dark .bg-red-50 { background-color: rgba(239,68,68,.1) !important; }
html.dark .bg-green-50, html.dark .bg-emerald-50 { background-color: rgba(16,185,129,.1) !important; }

/* blocos escuros da identidade (rodapé, faixas): ficam um tom mais fundo para não sumirem no fundo */
html.dark footer.bg-azulProfundo, html.dark section.bg-azulProfundo, html.dark div.bg-azulProfundo:not(a):not(button) { background-color: #07111b !important; }
html.dark [class*="bg-[#0B192C]"]:not(a):not(button), html.dark [class*="bg-[#050B14]"] { background-color: #07111b !important; }

/* botões cheios (azul) viram ciano com texto escuro */
html.dark a.bg-azulProfundo, html.dark button.bg-azulProfundo, html.dark a[class*="bg-[#0B192C]"], html.dark button[class*="bg-[#0B192C]"], html.dark a[class*="bg-[#1E3A5F]"] { background-color: #67e8f9 !important; color: #0b1622 !important; border-color: #67e8f9 !important; }
html.dark a.bg-azulProfundo *, html.dark button.bg-azulProfundo *, html.dark a[class*="bg-[#0B192C]"] * { color: #0b1622 !important; }
html.dark a.bg-azulProfundo:hover, html.dark button.bg-azulProfundo:hover, html.dark a[class*="bg-[#0B192C]"]:hover, html.dark button[class*="bg-[#0B192C]"]:hover { background-color: #a5f3fc !important; }
html.dark [class~="hover:bg-azulProfundo"]:hover { background-color: #67e8f9 !important; color: #0b1622 !important; }

/* textos na cor da identidade */
html.dark .text-azulProfundo, html.dark [class*="text-[#0B192C]"], html.dark .text-slate-800, html.dark .text-gray-800, html.dark .text-gray-900 { color: #e2e8f0 !important; }
html.dark [class~="text-azulProfundo/90"], html.dark [class~="text-azulProfundo/80"], html.dark [class~="text-azulProfundo/75"], html.dark [class~="text-azulProfundo/70"], html.dark .text-gray-700, html.dark .text-gray-600 { color: #cbd5e1 !important; }
html.dark [class~="text-azulProfundo/60"], html.dark [class~="text-azulProfundo/50"] { color: #94a3b8 !important; }
html.dark [class~="text-azulProfundo/40"], html.dark [class~="text-azulProfundo/30"] { color: #64748b !important; }
html.dark [class~="text-azulProfundo/20"], html.dark [class~="text-azulProfundo/10"] { color: rgba(255,255,255,.12) !important; }
html.dark [class~="hover:text-azulProfundo"]:hover, html.dark [class~="group-hover:text-azulProfundo"]:is(.group:hover *) { color: #ffffff !important; }
html.dark .text-emerald-700, html.dark .text-emerald-800 { color: #6ee7b7 !important; }
html.dark .text-cyan-700, html.dark .text-cyan-800 { color: #67e8f9 !important; }
html.dark .text-red-800, html.dark .text-red-600 { color: #fca5a5 !important; }
html.dark .text-green-600 { color: #6ee7b7 !important; }
html.dark .hover\:bg-emerald-50:hover, html.dark .hover\:bg-cyan-50:hover, html.dark [class~="hover:bg-azulProfundo/5"]:hover, html.dark .hover\:bg-slate-50:hover, html.dark .hover\:bg-gray-50:hover, html.dark .hover\:bg-white:hover { background-color: rgba(255,255,255,.06) !important; }

/* bordas */
html.dark [class*="border-azulProfundo"], html.dark .border-gray-100, html.dark .border-gray-200, html.dark .border-gray-300, html.dark .border-slate-200, html.dark [class*="border-[#1E3A5F]"], html.dark .border-green-100, html.dark .border-red-50, html.dark .border-red-200 { border-color: rgba(255,255,255,.1) !important; }
html.dark .border-azulProfundo { border-color: rgba(255,255,255,.35) !important; }
html.dark [class~="hover:border-azulProfundo"]:hover { border-color: #67e8f9 !important; }
html.dark .divide-gray-100 > * + *, html.dark .divide-gray-200 > * + * { border-color: rgba(255,255,255,.08) !important; }
html.dark .shadow-sm, html.dark .shadow, html.dark .shadow-md, html.dark .shadow-lg, html.dark .shadow-xl, html.dark .shadow-2xl { --tw-shadow-color: rgba(0,0,0,.5); }

/* formulários */
html.dark input, html.dark textarea, html.dark select { background-color: #0b1622 !important; color: #e2e8f0 !important; border-color: rgba(255,255,255,.15) !important; }
html.dark input::placeholder, html.dark textarea::placeholder { color: #64748b !important; }

/* imagens: logo em negativo; obras sobre papel não "afundam" no fundo escuro */
html.dark img[src*="logo.gif"] { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
html.dark footer img[src*="logo.gif"] { filter: none; }
html.dark .mix-blend-multiply { mix-blend-mode: normal !important; }
html.dark ::selection { background: #67e8f9; color: #0b1622; }

/* carregador e seletor de língua */
html.dark #loader-global { background-color: #0b1622 !important; }
html.dark #loader-global > * { filter: invert(1) hue-rotate(180deg); }
html.dark .sdl-lang { border-color: rgba(255,255,255,.15) !important; }
html.dark .sdl-lang a.bg-azulProfundo { background: #67e8f9 !important; color: #0b1622 !important; }

/* botão sol/lua do cabeçalho */
.sdl-tema .fa-sun { display: none; }
html.dark .sdl-tema .fa-sun { display: inline; }
html.dark .sdl-tema .fa-moon { display: none; }
html.dark .sdl-tema { color: #fcd34d !important; border-color: rgba(255,255,255,.15) !important; }

/* páginas legais (termos, privacidade): cores escritas no <style> da própria página */
html.dark .text-body, html.dark .legal-section h2, html.dark .legal-section ul { color: #cbd5e1 !important; }
html.dark .legal-section h2 { color: #f1f5f9 !important; }

/* loja.sodeleve.com (vitrine, obra, Estúdio, Ambientes) — mesma folha copiada em loja/assets/css */
html.dark #loader-loja { background-color: #0b1622 !important; }
html.dark [class*="bg-[#F5F7FA]"], html.dark [class*="bg-[#F4F7F9]"], html.dark [class*="bg-[#F5F9F6]"], html.dark [class*="bg-[#FCF8F6]"] { background-color: #0e1c2b !important; }
html.dark [class~="bg-white/60"], html.dark [class~="bg-white/50"], html.dark [class~="bg-white/70"] { background-color: rgba(14,28,43,.85) !important; }
html.dark [class*="text-[#1E3A5F]"] { color: #94a3b8 !important; }
html.dark [class*="border-[#0B192C]"] { border-color: rgba(255,255,255,.1) !important; }
html.dark .bg-orange-50 { background-color: rgba(249,115,22,.1) !important; } html.dark .border-orange-100 { border-color: rgba(249,115,22,.25) !important; }
html.dark .bg-emerald-50 { background-color: rgba(16,185,129,.1) !important; } html.dark .border-emerald-100 { border-color: rgba(16,185,129,.25) !important; }
html.dark .bg-slate-50 { background-color: rgba(255,255,255,.04) !important; } html.dark .border-slate-200 { border-color: rgba(255,255,255,.1) !important; }
html.dark .marquee-container::before { background: linear-gradient(to right, #0b1622, transparent) !important; } html.dark .marquee-container::after { background: linear-gradient(to left, #0b1622, transparent) !important; }

/* Estúdio e loja Plotara (fundo de papel texturizado): no escuro vira um grafite azulado com a mesma fibra de papel,
   bem sutil; rodapé translúcido vira faixa escura elegante (antes ficavam cinza-médio e cinza-claro) */
html.dark .paper-texture {
    background-color: #0c1724 !important;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png'), radial-gradient(ellipse at top, rgba(103,232,249,.05), transparent 60%) !important;
    background-blend-mode: soft-light, normal;
}
html.dark .paper-texture .marquee-container::before { background: linear-gradient(to right, #0c1724, transparent) !important; }
html.dark .paper-texture .marquee-container::after { background: linear-gradient(to left, #0c1724, transparent) !important; }
html.dark [class~="bg-white/40"] { background-color: rgba(6,13,21,.88) !important; }
html.dark footer[class~="bg-white/40"] { border-top-color: rgba(103,232,249,.12) !important; }
html.dark [class~="bg-white/80"] { background-color: rgba(255,255,255,.05) !important; }
html.dark [class~="bg-[#0B192C]/5"] { background-color: rgba(255,255,255,.06) !important; color: #cbd5e1 !important; }
html.dark .paper-texture .rounded-2xl[class*="bg-[#F"] { background-color: #122131 !important; border-color: rgba(255,255,255,.06) !important; }
html.dark .paper-texture .rounded-xl.bg-white\/50 { background-color: #f8fafc !important; }
html.dark .text-indigo-700 { color: #a5b4fc !important; } html.dark .text-indigo-600 { color: #a5b4fc !important; } html.dark .text-indigo-300 { color: #c7d2fe !important; }
html.dark .border-indigo-600 { border-color: #a5b4fc !important; }
html.dark button[disabled][class*="bg-[#0B192C]"], html.dark button[disabled][class*="bg-[#0B192C]"]:hover { background-color: rgba(255,255,255,.05) !important; color: #64748b !important; border-color: transparent !important; cursor: not-allowed; }
