/*
Theme Name: Universo Habitável — Portal de Expansão
Theme URI: https://www.youtube.com/@UniversoHabitavel
Author: Universo Habitável
Author URI: https://www.youtube.com/@UniversoHabitavel
Description: Blog oficial do canal Universo Habitável com seção de loja. Tema single-page totalmente integrado (React via CDN, Tailwind, fontes Cinzel + Inter). Configure os links da loja em assets/data.js — campo paymentUrl de cada produto.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: universo-habitavel
Tags: blog, custom-colors, full-width-template, one-column, responsive
*/

/* Reset e estilos base do tema */
html, body {
  background-color: #050508;
  color: #f3f4f6;
}
body {
  overflow-x: hidden;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  margin: 0;
}

/* Esconde a barra de admin do WordPress no front (opcional - remova se quiser mantê-la) */
html { margin-top: 0 !important; }
* html body { margin-top: 0 !important; }

/* Scrollbar customizada */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #080810; }
::-webkit-scrollbar-thumb { background: #1f1f35; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2d2d4f; }

/* Glow effects */
.glow-gold {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
}
.glow-cyan { text-shadow: 0 0 10px rgba(125, 211, 252, 0.4); }

.card-glowing-gold {
  box-shadow: 0 0 15px -3px rgba(212, 175, 55, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s ease, transform .3s ease;
}
.card-glowing-gold:hover {
  box-shadow: 0 0 25px -1px rgba(212, 175, 55, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Line clamp helpers */
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Splash de carregamento */
#boot-splash {
  position: fixed; inset: 0; background: #050508; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px;
  color: #d4af37; font-family: 'Cinzel', serif;
  letter-spacing: 0.4em; text-transform: uppercase; font-size: 14px;
  transition: opacity .5s ease;
}
#boot-splash .dot {
  width: 8px; height: 8px; background: #d4af37; border-radius: 50%;
  box-shadow: 0 0 12px #d4af37, 0 0 24px #d4af37;
  animation: uh-pulse-dot 1.4s infinite;
}
@keyframes uh-pulse-dot {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media print {
  #boot-splash { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================================
 *  Estilos do conteúdo do post (saída do Gutenberg)
 * ============================================================ */
.uh-post-content {
  color: #d4d4d8;
  font-size: 16px;
  line-height: 1.75;
}
.uh-post-content > * + * { margin-top: 1.25rem; }

.uh-post-content p {
  color: #d4d4d8;
  line-height: 1.85;
  margin: 0 0 1.25rem 0;
}

.uh-post-content h1,
.uh-post-content h2,
.uh-post-content h3,
.uh-post-content h4 {
  font-family: 'Cinzel', Georgia, serif;
  color: #fbbf24; /* amber-400 */
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
  letter-spacing: 0.04em;
  margin: 2rem 0 1rem 0;
  font-weight: 700;
  line-height: 1.3;
}
.uh-post-content h1 { font-size: 1.75rem; }
.uh-post-content h2 { font-size: 1.5rem; }
.uh-post-content h3 { font-size: 1.25rem; }
.uh-post-content h4 { font-size: 1.1rem; }

.uh-post-content a {
  color: #fbbf24;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.uh-post-content a:hover { color: #fcd34d; text-decoration-color: #fcd34d; }

.uh-post-content strong, .uh-post-content b { color: #f4f4f5; font-weight: 700; }
.uh-post-content em, .uh-post-content i { color: #fde68a; font-style: italic; }

.uh-post-content ul, .uh-post-content ol {
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}
.uh-post-content ul { list-style: disc; }
.uh-post-content ol { list-style: decimal; }
.uh-post-content li { margin: 0.4rem 0; line-height: 1.75; }
.uh-post-content li::marker { color: #fbbf24; }

.uh-post-content blockquote {
  border-left: 3px solid #fbbf24;
  background: rgba(251, 191, 36, 0.05);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-family: 'Cinzel', Georgia, serif;
  font-style: italic;
  color: #e4e4e7;
}
.uh-post-content blockquote p { margin: 0; }

.uh-post-content img,
.uh-post-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.uh-post-content figure { margin: 1.5rem 0; }
.uh-post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-top: 0.5rem;
  font-style: italic;
}

.uh-post-content code {
  background: #18181b;
  border: 1px solid #27272a;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: #fde68a;
}
.uh-post-content pre {
  background: #0a0a14;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.uh-post-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #e4e4e7;
}

.uh-post-content hr {
  border: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  margin: 2.5rem auto;
  width: 50%;
}

.uh-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.uh-post-content th, .uh-post-content td {
  border: 1px solid #27272a;
  padding: 0.6rem 0.9rem;
  text-align: left;
}
.uh-post-content th { background: rgba(251, 191, 36, 0.08); color: #fde68a; font-weight: 600; }

@media (min-width: 768px) {
  .uh-post-content { font-size: 17px; line-height: 1.85; }
  .uh-post-content h1 { font-size: 2.25rem; }
  .uh-post-content h2 { font-size: 1.75rem; }
  .uh-post-content h3 { font-size: 1.4rem; }
}
