/*
Theme Name: Elegant Newsletter
Theme URI: https://example.com/elegant-newsletter
Author: Dias Júnior (inspirado em designs clean minimalistas)
Author URI: https://x.com/jrdiasjunior
Description: Tema WordPress bonito, limpo e elegante, otimizado para newsletters, blogs de filosofia, direito e reflexões profundas. Foco em tipografia excelente, leitura confortável, design minimalista com toques clássicos e call-to-actions para inscrições em newsletters. Perfeito para sites de conteúdo intelectual e espiritual.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elegant-newsletter
Tags: clean, minimal, newsletter, blog, elegant, serif, philosophy, law, responsive, accessibility
*/

/* ========================================
   ELEGANT NEWSLETTER THEME - CSS PRINCIPAL
   Design clean, bonito, focado em leitura e conversão de newsletters
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  /* Paleta elegante e serena */
  --bg-primary: #FAF7F2;        /* Creme suave */
  --bg-secondary: #F4F0E8;      /* Creme mais quente */
  --text-primary: #2C2522;      /* Marrom escuro suave */
  --text-secondary: #5C5148;    /* Marrom médio */
  --accent: #8B5E3C;            /* Marrom dourado / terracota elegante */
  --accent-light: #C5A46E;      /* Dourado suave */
  --accent-dark: #5C4033;       /* Marrom profundo */
  --border: #D4C9B8;            /* Bege claro */
  --white: #FFFFFF;
  --success: #4A7043;           /* Verde oliva suave */
  
  /* Tipografia - Sugestão moderna e elegante para postagens */
  --font-serif: 'EB Garamond', 'Crimson Text', Georgia, serif; /* Fluida, legível e sofisticada para leituras longas */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Espaçamentos */
  --max-width: 720px;           /* Largura ideal para leitura */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 1.05rem;
  margin: 0;
  padding: 0;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 0;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.65rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.35rem; margin-bottom: 0.625rem; }

p {
  margin-bottom: 1.25rem;
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Container principal */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header / Navegação */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
  color: var(--accent-dark);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
}

/* ===== Header Actions (lupa + menu + tema) ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

.header-icon-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
  color: var(--accent);
}

.header-icon-btn svg {
  display: block;
}

/* Hamburger icon */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown do Menu Principal (recolhido) */
.main-navigation.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  padding: 1rem 0 1.25rem;
  z-index: 99;
  display: none;
}

.main-navigation.dropdown-menu.is-open {
  display: block;
}

.main-navigation.dropdown-menu .primary-menu {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.main-navigation.dropdown-menu .primary-menu li {
  border-bottom: 1px solid var(--border);
}

.main-navigation.dropdown-menu .primary-menu li:last-child {
  border-bottom: none;
}

.main-navigation.dropdown-menu .primary-menu a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.main-navigation.dropdown-menu .primary-menu a:hover {
  color: var(--accent);
  padding-left: 0.75rem;
  text-decoration: none;
}

/* Submenu (depth 2) */
.main-navigation.dropdown-menu .primary-menu .sub-menu {
  list-style: none;
  margin: 0 0 0.5rem 1rem;
  padding: 0;
}

.main-navigation.dropdown-menu .primary-menu .sub-menu a {
  font-size: 0.95rem;
  padding: 0.55rem 0.5rem;
  color: var(--text-secondary);
}

/* Painel de Busca */
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  padding: 1.25rem 0;
  z-index: 98;
  display: none;
}

.search-panel.is-open {
  display: block;
}

.search-panel .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 720px;
}

.search-panel .search-form {
  flex: 1;
  display: flex;
  gap: 0.75rem;
  margin: 0;
}

.search-panel .search-field {
  flex: 1;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.search-panel .search-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.1);
}

.search-panel .search-submit {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-panel .search-submit:hover {
  background-color: var(--accent-dark);
}

.search-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.search-close:hover {
  color: var(--accent);
  background: var(--bg-secondary);
}

/* Ajuste do site-header para posicionar dropdowns */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Botão de Newsletter no header */
.newsletter-btn {
  background-color: var(--accent);
  color: var(--white) !important;
  padding: 0.6rem 1.85rem; /* Mais espaço lateral para ficar mais bonito e equilibrado */
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.3);
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Hero Section (Homepage) */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3.25rem;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Seção de Newsletter / Inscrição */
.newsletter-section {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem auto;
  max-width: 620px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.newsletter-section h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.newsletter-section p {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--bg-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.1);
}

.newsletter-form button {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

/* Posts / Grid de Artigos */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.post-card .post-thumbnail {
  height: 180px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.08);
}

.post-card .post-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card .post-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.post-card .excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.post-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Single Post - Leitura limpa */
.single-post {
  padding: 3rem 0;
}

.entry-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.entry-title {
  font-size: 2.85rem;
  max-width: 680px;
  margin: 0 auto 1rem;
}

.entry-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.85;
}

.entry-content p,
.entry-content li {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  hyphens: auto; /* Hifenização automática para justificar melhor */
}

/* Justificado + recuo (indent) na primeira linha — estilo clássico elegante */
.entry-content > p:not(.wp-block-quote p):not(.wp-block-pullquote p),
.entry-content blockquote p,
.entry-content figure p {
  text-align: justify;
  text-indent: 1.65em; /* Recuo clássico na primeira linha de parágrafo */
}

.entry-content h2,
.entry-content h3 {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.5rem;
}

/* Blockquotes elegantes */
.entry-content blockquote {
  max-width: 620px;
  margin: 2.5rem auto;
  padding: 1.75rem 2rem;
  border-left: 5px solid var(--accent-light);
  background: var(--bg-secondary);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ========================================
   Navegação Anterior / Próximo (botões centrais)
   ======================================== */
.post-nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 3rem auto 1rem;
  max-width: 680px;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.nav-btn:hover {
  background-color: var(--accent);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 94, 60, 0.25);
}

.nav-btn.nav-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
  border-color: var(--border);
  color: var(--text-secondary);
}

body.dark-mode .nav-btn {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

body.dark-mode .nav-btn:hover {
  background-color: var(--accent);
  color: #1F1A17 !important;
  border-color: var(--accent);
}

/* ========================================
   Comentários - mesma largura da postagem
   ======================================== */
.comments-area {
  max-width: 680px;
  margin: 3.5rem auto 0;
  padding: 0 1rem;
}

.comments-area .comments-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.comment-list .comment:last-child {
  border-bottom: none;
}

.comment-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.comment-content {
  font-size: 1rem;
  line-height: 1.7;
}

.comment-content p {
  text-align: left; /* Comentários ficam melhor alinhados à esquerda */
  text-indent: 0;
}

/* Formulário de comentário */
.comment-respond {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.comment-reply-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}

.comment-form .form-submit input[type="submit"],
.comment-form .submit {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-form .form-submit input[type="submit"]:hover,
.comment-form .submit:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
}

/* Dark mode para comentários */
body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"],
body.dark-mode .comment-form textarea {
  background: #1F1A17;
  border-color: #4A4038;
  color: var(--text-primary);
}

/* Responsivo */
@media (max-width: 768px) {
  .comments-area {
    padding: 0 1rem;
    margin-top: 2.5rem;
  }
}

/* Footer */
.site-footer {
  background-color: var(--accent-dark);
  color: #EDE4D8;
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
}

.site-footer a {
  color: #EDE4D8;
}

.site-footer a:hover {
  color: var(--accent-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-col h4 {
  color: var(--accent-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .entry-title {
    font-size: 2.2rem;
  }
}

/* Acessibilidade e foco */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Utilitários */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========================================
   DARK MODE - Modo Escuro Elegante
   ======================================== */
body.dark-mode {
  --bg-primary: #1F1A17;          /* Marrom bem escuro / quase preto quente */
  --bg-secondary: #2C2522;        /* Marrom escuro */
  --text-primary: #EDE4D8;        /* Creme claro */
  --text-secondary: #B8A99A;      /* Bege acinzentado */
  --border: #4A4038;              /* Borda escura */
  --white: #2C2522;               /* Cards em tom escuro */
  --accent: #C5A46E;              /* Dourado mais vivo no escuro */
  --accent-light: #D4B98A;
  --accent-dark: #8B5E3C;
}

/* Ajustes específicos no dark mode */
body.dark-mode .site-header {
  background-color: #2C2522;
  border-bottom-color: #4A4038;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .post-card,
body.dark-mode .newsletter-section {
  background: #2C2522;
  border-color: #4A4038;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

body.dark-mode .post-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

body.dark-mode .newsletter-form input[type="email"] {
  background: #1F1A17;
  border-color: #4A4038;
  color: var(--text-primary);
}

body.dark-mode .entry-content blockquote {
  background: #2C2522;
  border-left-color: var(--accent-light);
}

body.dark-mode .site-footer {
  background-color: #161311;
  color: #C5B8A8;
}

body.dark-mode .site-footer a {
  color: #C5B8A8;
}

body.dark-mode .site-footer a:hover {
  color: var(--accent-light);
}

/* Botão de toggle de tema (usa header-icon-btn + extras) */
.theme-toggle {
  font-size: 1.2rem;
}

.theme-toggle .icon-dark { display: none; }
body.dark-mode .theme-toggle .icon-light { display: none; }
body.dark-mode .theme-toggle .icon-dark { display: inline; }

/* Dark mode para os novos elementos do header */
body.dark-mode .main-navigation.dropdown-menu,
body.dark-mode .search-panel {
  background: #2C2522;
  border-bottom-color: #4A4038;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

body.dark-mode .main-navigation.dropdown-menu .primary-menu li {
  border-bottom-color: #4A4038;
}

body.dark-mode .search-panel .search-field {
  background: #1F1A17;
  border-color: #4A4038;
  color: var(--text-primary);
}

body.dark-mode .header-icon-btn:hover {
  background: #2C2522;
  border-color: #4A4038;
}

/* ========================================
   RESPONSIVIDADE APRIMORADA - Mobile First
   ======================================== */

/* Tablets e abaixo */
@media (max-width: 768px) {
  .site-header .container {
    /* Mantém logo à esquerda e ícones à direita */
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .site-description {
    display: none; /* economiza espaço no mobile */
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.25;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-card .post-content {
    padding: 1.25rem;
  }

  .entry-title {
    font-size: 2.1rem;
  }

  .newsletter-section {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    min-width: 100%;
  }

  .search-panel .container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-panel .search-form {
    flex-direction: column;
  }
}

/* Celulares pequenos (melhorias extras) */
@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.4rem; }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .post-card .post-thumbnail {
    height: 160px;
  }

  .header-icon-btn {
    width: 38px;
    height: 38px;
  }
  .theme-toggle {
    font-size: 1.1rem;
  }

  .newsletter-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
  }
}

/* Melhorias gerais de toque e acessibilidade */
button, .newsletter-btn, a {
  min-height: 44px; /* Bom para toque em mobile */
}


/* ========================================
   Jetpack Subscription Form — estilo do tema
   ======================================== */
.jetpack-subscribe-wrapper .jetpack_subscription_widget,
.jetpack-subscribe-wrapper #subscribe-text,
.jetpack-subscribe-wrapper .wp-block-jetpack-subscriptions {
  margin: 0;
  padding: 0;
}

.jetpack-subscribe-wrapper form,
.jetpack-subscribe-wrapper #subscribe-blog {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.jetpack-subscribe-wrapper #subscribe-email,
.jetpack-subscribe-wrapper p#subscribe-email {
  margin: 0;
  flex: 1;
  min-width: 220px;
}

.jetpack-subscribe-wrapper input[type="email"],
.jetpack-subscribe-wrapper #subscribe-field,
.jetpack-subscribe-wrapper input.subscribe-email {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-sizing: border-box;
}

.jetpack-subscribe-wrapper input[type="email"]:focus,
.jetpack-subscribe-wrapper #subscribe-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.1);
}

.jetpack-subscribe-wrapper #subscribe-submit,
.jetpack-subscribe-wrapper p#subscribe-submit {
  margin: 0;
}

.jetpack-subscribe-wrapper input[type="submit"],
.jetpack-subscribe-wrapper button[type="submit"],
.jetpack-subscribe-wrapper .wp-block-button__link {
  background-color: var(--accent) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 0.85rem 2rem !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.jetpack-subscribe-wrapper input[type="submit"]:hover,
.jetpack-subscribe-wrapper button[type="submit"]:hover {
  background-color: var(--accent-dark) !important;
  transform: translateY(-2px);
}

/* Footer version — um pouco mais compacta */
.footer-subscribe form,
.footer-subscribe #subscribe-blog {
  flex-direction: column;
  align-items: stretch;
}

.footer-subscribe input[type="email"],
.footer-subscribe #subscribe-field {
  min-width: 0;
}

.footer-subscribe input[type="submit"],
.footer-subscribe button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1.25rem !important;
}

/* Dark mode */
body.dark-mode .jetpack-subscribe-wrapper input[type="email"],
body.dark-mode .jetpack-subscribe-wrapper #subscribe-field {
  background: #1F1A17;
  border-color: #4A4038;
  color: var(--text-primary);
}

/* Mensagens de sucesso/erro do Jetpack */
.jetpack-subscribe-wrapper .success,
.jetpack-subscribe-wrapper .error,
#subscribe-blog .success,
#subscribe-blog .error {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
