/* Estilos para conteúdo gerado pelo editor Rich Text (TipTap) */

/* Container principal do conteúdo */
.creator-single-post-content,
.post-content,
.entry-content {
  line-height: 1.8;
  color: #1f2937;
}

/* Títulos */
.creator-single-post-content h1,
.post-content h1,
.entry-content h1 {
  font-size: 2em;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  line-height: 1.2;
  color: #111827;
}

.creator-single-post-content h2,
.post-content h2,
.entry-content h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin: 1.25rem 0 0.875rem;
  line-height: 1.3;
  color: #111827;
}

.creator-single-post-content h3,
.post-content h3,
.entry-content h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 1rem 0 0.75rem;
  line-height: 1.4;
  color: #111827;
}

/* Parágrafos */
.creator-single-post-content p,
.post-content p,
.entry-content p {
  margin: 1rem 0;
  line-height: 1.8;
}

/* Negrito e Itálico */
.creator-single-post-content strong,
.post-content strong,
.entry-content strong {
  font-weight: 700;
  color: #111827;
}

.creator-single-post-content em,
.post-content em,
.entry-content em {
  font-style: italic;
}

/* Listas */
.creator-single-post-content ul,
.post-content ul,
.entry-content ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin: 1rem 0;
}

.creator-single-post-content ol,
.post-content ol,
.entry-content ol {
  list-style-type: decimal;
  padding-left: 2rem;
  margin: 1rem 0;
}

.creator-single-post-content li,
.post-content li,
.entry-content li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.creator-single-post-content li p,
.post-content li p,
.entry-content li p {
  margin: 0.25rem 0;
}

/* Listas aninhadas */
.creator-single-post-content ul ul,
.creator-single-post-content ol ol,
.creator-single-post-content ul ol,
.creator-single-post-content ol ul,
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul,
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin: 0.5rem 0;
}

/* Citações */
.creator-single-post-content blockquote,
.post-content blockquote,
.entry-content blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
  background-color: #f9fafb;
  padding: 1rem 1.5rem;
  border-radius: 0.25rem;
}

.creator-single-post-content blockquote p,
.post-content blockquote p,
.entry-content blockquote p {
  margin: 0.5rem 0;
}

/* Código inline */
.creator-single-post-content code,
.post-content code,
.entry-content code {
  background-color: #f3f4f6;
  color: #ef4444;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 500;
}

/* Blocos de código */
.creator-single-post-content pre,
.post-content pre,
.entry-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.creator-single-post-content pre code,
.post-content pre code,
.entry-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
}

/* Links */
.creator-single-post-content a,
.post-content a,
.entry-content a {
  color: #3b82f6;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.creator-single-post-content a:hover,
.post-content a:hover,
.entry-content a:hover {
  color: #2563eb;
}

/* Imagens */
.creator-single-post-content img,
.post-content img,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  display: block;
}

/* Linha horizontal */
.creator-single-post-content hr,
.post-content hr,
.entry-content hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2rem 0;
}

/* Alinhamento de texto */
.creator-single-post-content [style*="text-align: left"],
.post-content [style*="text-align: left"],
.entry-content [style*="text-align: left"] {
  text-align: left;
}

.creator-single-post-content [style*="text-align: center"],
.post-content [style*="text-align: center"],
.entry-content [style*="text-align: center"] {
  text-align: center;
}

.creator-single-post-content [style*="text-align: right"],
.post-content [style*="text-align: right"],
.entry-content [style*="text-align: right"] {
  text-align: right;
}

/* Tabelas (caso sejam adicionadas futuramente) */
.creator-single-post-content table,
.post-content table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.creator-single-post-content th,
.creator-single-post-content td,
.post-content th,
.post-content td,
.entry-content th,
.entry-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.creator-single-post-content th,
.post-content th,
.entry-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
  .creator-single-post-content h1,
  .post-content h1,
  .entry-content h1 {
    font-size: 1.75em;
  }

  .creator-single-post-content h2,
  .post-content h2,
  .entry-content h2 {
    font-size: 1.375em;
  }

  .creator-single-post-content h3,
  .post-content h3,
  .entry-content h3 {
    font-size: 1.125em;
  }

  .creator-single-post-content pre,
  .post-content pre,
  .entry-content pre {
    padding: 1rem;
    font-size: 0.875rem;
  }
}

/* Garantir que o primeiro elemento não tenha margem superior */
.creator-single-post-content > *:first-child,
.post-content > *:first-child,
.entry-content > *:first-child {
  margin-top: 0;
}

/* Garantir que o último elemento não tenha margem inferior */
.creator-single-post-content > *:last-child,
.post-content > *:last-child,
.entry-content > *:last-child {
  margin-bottom: 0;
}

