/* ==================== POST CONTENT STYLING ==================== */
/* Estilos para conteúdo HTML dos posts com compatibilidade Bootstrap */

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

/* Títulos */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
}

.post-content h1 {
    font-size: 2.5rem;
}

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

.post-content h3 {
    font-size: 1.75rem;
    color: #FF8C00;
}

.post-content h4 {
    font-size: 1.5rem;
}

.post-content h5 {
    font-size: 1.25rem;
}

.post-content h6 {
    font-size: 1rem;
    color: #555;
}

/* Parágrafos */
.post-content p {
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
    margin-top: 30px;
    font-size: 1.1rem;
}

.post-content p:first-of-type {
    font-size: 1.2rem;
    color: #444;
    font-weight: 500;
}

/* Links */
.post-content a {
    display: block;
    color: #FF8C00;
    text-decoration: underline;
    transition: color 0.3s ease;
    text-align: right;
}

.post-content a:hover {
    color: #E67E00;
    text-decoration: none;
}

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

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

.post-content ul li::marker {
    color: #FF8C00;
    font-weight: bold;
}

.post-content ol li::marker {
    color: #FF8C00;
    font-weight: bold;
}

/* Listas aninhadas */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Citações (blockquote) */
.post-content blockquote {
    border-left: 4px solid #FF8C00;
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #666;
    background-color: #f9f9f9;
    padding: 1rem;
    padding-left: 1.5rem;
}

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

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

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

.post-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-left: 4px solid #FF8C00;
}

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

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

.post-content table thead {
    background-color: #FF8C00;
    color: white;
}

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

.post-content table th {
    font-weight: 600;
}

.post-content table tbody tr:hover {
    background-color: #f9f9f9;
}

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

/* Imagens */
.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: block;
}

.post-content img.img-fluid {
    max-width: 100%;
    height: auto;
}

.post-content figure {
    margin: 1.5rem 0;
    text-align: center;
}

.post-content figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Dividers/Regra Horizontal */
.post-content hr {
    border: none;
    border-top: 2px solid #FF8C00;
    margin: 2rem 0;
}

/* Destaque (mark) */
.post-content mark {
    background-color: #fff3cd;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

/* Strong e emphasis */
.post-content strong,
.post-content b {
    font-weight: 600;
    color: #1a1a1a;
}

.post-content em,
.post-content i {
    font-style: italic;
    color: #555;
}

/* Componentes Bootstrap - Se adicionar classes diretas */
.post-content .alert {
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.post-content .alert-primary {
    border-left-color: #0d6efd;
}

.post-content .alert-success {
    border-left-color: #198754;
}

.post-content .alert-danger {
    border-left-color: #dc3545;
}

.post-content .alert-warning {
    border-left-color: #ffc107;
}

.post-content .alert-info {
    border-left-color: #0dcaf0;
}

.post-content .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.post-content .card {
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
}

.post-content .card-body {
    padding: 1rem;
}

/* Badges */
.post-content .badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

/* Small text */
.post-content small {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Parágrafo com lead - quando usar class "lead" */
.post-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #6c757d;
}

/* Espaçamento vertical para leitura confortável */
.post-content-wrapper {
    padding: 0 0;
}

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

    .post-content h1 {
        font-size: 2rem;
    }

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

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

    .post-content ul,
    .post-content ol {
        margin-left: 1.5rem;
    }

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

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

    .post-content img {
        margin: 1rem 0;
    }
}

/* Print styles */
@media print {
    .post-content {
        color: #000;
    }

    .post-content a {
        color: #000;
        text-decoration: underline;
    }

    .post-content h1,
    .post-content h2,
    .post-content h3 {
        page-break-after: avoid;
    }

    .post-content img {
        page-break-inside: avoid;
    }
}
