/* =======================================================
   Custom Styles - Tailwind Enhancements
   Autor: Ronaldo DJ
   Projeto: Site Moderno com Tema Retrô + Clean
   ======================================================= */

/* --------- Global --------- */
html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.7;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  color: #1f2937; /* gray-800 */
  background-color: #ffffff;
}

/* --------- Dark Mode --------- */
.dark body {
  background-color: #0f172a; /* slate-900 */
  color: #e2e8f0; /* gray-200 */
}

/* --------- Títulos (mantêm alinhamento padrão à esquerda) --------- */
h1, h2, h3, h4, h5, h6 {
  text-align: left;
  line-height: 1.3;
  margin-bottom: 0.6em;
  font-weight: 700;
}

/* --------- Parágrafos explicativos --------- */
p,
.prose p,
.content p,
article p {
  text-align: justify; /* ✅ Apenas os textos explicativos */
  margin-bottom: 1em;
}

/* --------- Links --------- */
a {
  color: #2563eb; /* blue-600 */
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
  color: #1d4ed8; /* blue-700 */
  text-decoration: underline;
}

/* --------- Cards --------- */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background-color: rgba(59, 130, 246, 0.05);
}

/* --------- Prose (conteúdo longo) --------- */
.prose {
  max-width: 75ch;
  margin: auto;
}
.prose img {
  border-radius: 1rem;
  margin: 1.5em auto;
  display: block;
}
.prose blockquote {
  border-left: 4px solid rgb(59 130 246);
  padding-left: 1rem;
  color: rgb(75 85 99);
  font-style: italic;
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

/* --------- Header --------- */
header {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dark header {
  background-color: rgba(15, 23, 42, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* --------- Menu Responsivo --------- */
#mobileMenu {
  transition: all 0.3s ease;
}
#mobileMenu.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
#mobileMenu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* --------- Botões --------- */
button, .btn {
  display: inline-block;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-primary {
  background-color: #2563eb;
  color: #fff;
}
.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: transparent;
}
.btn-outline:hover {
  background-color: #2563eb;
  color: #fff;
}

/* --------- Footer --------- */
footer {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.9);
}
.dark footer {
  background-color: rgba(15, 23, 42, 0.9);
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* --------- Newsletter Message --------- */
#newsletterMsg {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: #16a34a; /* green-600 */
}
#newsletterMsg.error {
  color: #dc2626; /* red-600 */
}

/* --------- Utilitários Extras --------- */
.text-justify { text-align: justify !important; }
.rounded-xl { border-radius: 1rem !important; }
.shadow-soft { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
