/* Reset e Base (Mobile-First) */
/* Estilos otimizados para mobile-first, garantindo responsividade para todos os visitantes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #f9fafb;
  color: #1e293b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.grid {
  display: grid;
}
.gap-2 {
  gap: 8px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.grid-cols-1 {
  grid-template-columns: 1fr;
}
.hidden {
  display: none;
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 8px;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 16px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 12px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-3 {
  margin-bottom: 12px;
}
.mb-4 {
  margin-bottom: 16px;
}
.py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}
.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.py-6 {
  padding-top: 24px;
  padding-bottom: 24px;
}
.px-3 {
  padding-left: 12px;
  padding-right: 12px;
}
.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}
.p-4 {
  padding: 16px;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}
.font-extrabold {
  font-weight: 800;
}
.uppercase {
  text-transform: uppercase;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.text-indigo-600 {
  color: #4f46e5;
}
.text-slate-600 {
  color: #475569;
}
.text-slate-700 {
  color: #334155;
}
.text-slate-500 {
  color: #64748b;
}
.text-white {
  color: #ffffff;
}
.bg-gray-50 {
  background-color: #f9fafb;
}
.bg-white {
  background-color: #ffffff;
}
.bg-indigo-600 {
  background-color: #4f46e5;
}
.bg-indigo-50 {
  background-color: #eef2ff;
}
.border {
  border-width: 1px;
  border-color: #e5e7eb;
}
.border-t {
  border-top-width: 1px;
  border-top-color: #e5e7eb;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.transition {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.hover\:underline:hover {
  text-decoration: underline;
}
.hover\:bg-indigo-700:hover {
  background-color: #4338ca;
}
.hover\:bg-indigo-50:hover {
  background-color: #eef2ff;
}
.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}
.focus\:outline-none:focus {
  outline: none;
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity));
}
.focus\:ring-indigo-600:focus {
  --tw-ring-color: #4f46e5;
}
.list-disc {
  list-style-type: disc;
}
.list-decimal {
  list-style-type: decimal;
}
.pl-4 {
  padding-left: 16px;
}
.cursor-pointer {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Componentes Específicos */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.logo-text {
  font-size: 1rem;
  font-weight: 600;
}
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu {
  transition: max-height 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
  background-color: #ffffff;
  padding: 0 12px;
}
.mobile-menu.open {
  max-height: 300px;
}
.hero {
  background: linear-gradient(90deg, rgba(99,102,241,0.06), rgba(6,182,212,0.03));
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero-image img {
  border-radius: 0.5rem;
  max-height: 200px;
  object-fit: cover;
}
.main {
  padding-top: 24px;
  padding-bottom: 24px;
}
.prose {
  background-color: #ffffff;
  padding: 16px;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
}
.prose p {
  margin-bottom: 12px;
}
.prose ul, .prose ol {
  margin-bottom: 12px;
}
.prose details {
  margin-top: 12px;
}
.prose details summary {
  font-weight: 500;
  cursor: pointer;
}
.article-footer {
  margin-top: 24px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}
.sidebar-toggle {
  width: 100%;
  text-align: center;
}
.sidebar {
  transition: max-height 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}
.sidebar.open {
  max-height: 1000px;
}
.sidebar-box {
  background-color: #ffffff;
  padding: 12px;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.search-input {
  flex: 1;
  font-size: 0.875rem;
}
.search-button {
  padding: 8px 12px;
  font-size: 0.875rem;
}
.sidebar-cta {
  background-color: #4f46e5;
  color: #ffffff;
  padding: 12px;
  border-radius: 0.5rem;
}
.cta-button {
  display: inline-block;
  padding: 10px 16px;
  background-color: #4f46e5;
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.5;
}
.secondary-button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.5;
}
.footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.footer .container {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Estilos para post.html - Related Posts */
#related-posts-list .related-card {
  background-color: #f9fafb;
  padding: 8px;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#related-posts-list .related-card:hover {
  background-color: #eef2ff;
}
#related-posts-list .related-card h4 {
  font-size: 0.875rem;
  font-weight: 500;
}
#related-posts-list .related-card p {
  font-size: 0.75rem;
  color: #64748b;
}
#related-posts-mobile-list .related-card {
  background-color: #f9fafb;
  padding: 8px;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#related-posts-mobile-list .related-card:hover {
  background-color: #eef2ff;
}
#related-posts-mobile-list .related-card img {
  max-height: 120px;
  object-fit: cover;
  border-radius: 0.5rem;
}
#related-posts-mobile-list .related-card h4 {
  font-size: 0.875rem;
  font-weight: 500;
}
#related-posts-mobile-list .related-card p {
  font-size: 0.75rem;
  color: #64748b;
}
.related-posts-mobile .sidebar-cta {
  background-color: #4f46e5;
  color: #ffffff;
  padding: 12px;
  border-radius: 0.5rem;
}
.related-posts-mobile .sidebar-cta .cta-button {
  background-color: #ffffff;
  color: #4f46e5;
}

/* Estilos para index.html - Post Cards */
.post-card {
  background-color: #ffffff;
  padding: 12px;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.post-card img {
  border-radius: 0.5rem;
  margin-bottom: 8px;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.post-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.post-card p {
  font-size: 0.75rem;
  color: #334155;
  margin-bottom: 8px;
}
.post-card a {
  background-color: #4f46e5;
  cursor: pointer;
  color: white;
  padding: 8px 12px;
  border-radius: 0.25rem;
  text-decoration: none;
  display: inline-block;
  font-size: 0.875rem;
  min-height: 44px;
  line-height: 1.5;
}
.post-card a:hover {
  background-color: #4338ca;
}
.cta-section .sidebar-cta {
  background-color: #4f46e5;
  color: #ffffff;
  padding: 12px;
  border-radius: 0.5rem;
}
.cta-section .sidebar-cta .cta-button {
  background-color: #ffffff;
  color: #4f46e5;
}

/* Estilos para editor.html */
.modal {
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background-color: #ffffff;
  padding: 16px;
  border: 1px solid #e5e7eb;
  width: 95%;
  max-height: 90vh;
  border-radius: 0.5rem;
  overflow-y: auto;
}
.modal.open .modal-content {
  transform: none;
}
.modal-close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.modal-close:hover {
  color: #000;
}
.input-field {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}
.image-preview {
  max-width: 150px;
  margin-bottom: 12px;
}
.dynamic-list {
  margin-bottom: 12px;
}
.dynamic-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.dynamic-item input,
.dynamic-item textarea {
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}
.remove-item-btn {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.add-item-btn {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.edit-btn {
  background-color: #3b82f6;
  color: white;
  padding: 8px 12px;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.edit-btn:hover {
  background-color: #2563eb;
}
.delete-btn {
  background-color: #ef4444;
  color: white;
  padding: 8px 12px;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.delete-btn:hover {
  background-color: #dc2626;
}

/* Media Queries para Telas Maiores */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 24px;
  }
  .gap-6 {
    gap: 32px;
  }
  .gap-8 {
    gap: 40px;
  }
  .mt-6 {
    margin-top: 32px;
  }
  .mb-6 {
    margin-bottom: 32px;
  }
  .py-6 {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .px-4 {
    padding-left: 24px;
    padding-right: 24px;
  }
  .p-4 {
    padding: 24px;
  }
  .text-lg {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  .text-xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .text-3xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .logo-img {
    width: 40px;
    height: 40px;
  }
  .logo-text {
    font-size: 1.125rem;
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-image img {
    max-height: 300px;
  }
  .main {
    grid-template-columns: 2fr 1fr;
  }
  .prose {
    padding: 24px;
  }
  .prose h2 {
    font-size: 1.5rem;
  }
  .sidebar {
    max-height: none;
  }
  .sidebar-toggle {
    display: none;
  }
  .sidebar-box {
    padding: 16px;
  }
  .sidebar-cta {
    padding: 16px;
  }
  .cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .secondary-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .related-posts-mobile {
    display: none;
  }
  .modal-content {
    width: 80%;
    max-width: 1200px;
    padding: 24px;
  }
  .dynamic-item {
    flex-direction: row;
    align-items: center;
  }
  .post-card {
    padding: 16px;
  }
  .post-card img {
    height: 192px;
  }
  .post-card h3 {
    font-size: 1rem;
  }
  .post-card p {
    font-size: 0.875rem;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1280px;
  }
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Complementos adicionados */
.md\:grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}