/* Estilos para o conteúdo do blog com CKEditor */

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

/* Imagens no conteúdo */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content .image-left {
  float: left;
  margin: 1rem 2rem 1rem 0;
  max-width: 50%;
}

.post-content .image-right {
  float: right;
  margin: 1rem 0 1rem 2rem;
  max-width: 50%;
}

.post-content .image-center {
  display: block;
  margin: 2rem auto;
}

/* Títulos */
.post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  border-bottom: 3px solid var(--bs-primary);
  padding-bottom: 0.5rem;
}

.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #444;
}

.post-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #555;
}

/* Parágrafos */
.post-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Listas */
.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Citações */
.post-content blockquote {
  border-left: 5px solid var(--bs-primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background-color: #f8f9fa;
  font-style: italic;
  color: #666;
  border-radius: 0.25rem;
}

.post-content blockquote p {
  margin-bottom: 0;
}

/* Links */
.post-content a {
  color: var(--bs-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.post-content a:hover {
  color: #0056b3;
}

/* Tabelas */
.post-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content table th,
.post-content table td {
  padding: 1rem;
  border: 1px solid #dee2e6;
  text-align: left;
}

.post-content table th {
  background-color: var(--bs-primary);
  color: white;
  font-weight: 600;
}

.post-content table tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Código */
.post-content code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: #d63384;
}

.post-content pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* Vídeos incorporados (iframe) */
.post-content iframe {
  max-width: 100%;
  margin: 2rem auto;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Container responsivo para vídeos (16:9) */
.post-content .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content .video-container iframe,
.post-content .video-container object,
.post-content .video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}

/* Linha horizontal */
.post-content hr {
  margin: 3rem 0;
  border: 0;
  border-top: 2px solid #dee2e6;
}

/* Responsividade */
@media (max-width: 768px) {
  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.6rem;
  }

  .post-content h3 {
    font-size: 1.3rem;
  }

  .post-content .image-left,
  .post-content .image-right {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }

  .post-content table {
    font-size: 0.9rem;
  }

  .post-content table th,
  .post-content table td {
    padding: 0.5rem;
  }
}
