/* Estilos personalizados para o blog da Politermi */

/* Estilos para o conteúdo do artigo */
.prose {
    color: #374151;
    line-height: 1.75;
}

/* Títulos */
.prose h1 {
    color: #111827;
    font-weight: 700;
    font-size: 1.875rem;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.prose h2 {
    color: #111827;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h4 {
    color: #111827;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Parágrafos */
.prose p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Links */
.prose a {
    color: #059669;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #047857;
    text-decoration-color: #047857;
}

/* Listas */
.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    color: #374151;
    line-height: 1.6;
}

.prose li::marker {
    color: #059669;
    font-weight: 600;
}

/* Listas aninhadas */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid #059669;
    background-color: #f0fdf4;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #065f46;
    position: relative;
}

.prose blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #059669;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: serif;
}

.prose blockquote p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Código inline */
.prose code {
    background-color: #f3f4f6;
    color: #dc2626;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Blocos de código */
.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #374151;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
}

/* Tabelas */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prose thead {
    background-color: #059669;
    color: white;
}

.prose th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #047857;
}

.prose td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.prose tbody tr:hover {
    background-color: #f9fafb;
}

/* Imagens */
.prose img {
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}

.prose figure {
    margin: 2rem 0;
    text-align: center;
}

.prose figcaption {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Linha horizontal */
.prose hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 3rem 0;
}

/* Texto em negrito e itálico */
.prose strong {
    color: #111827;
    font-weight: 700;
}

.prose em {
    color: #6b7280;
    font-style: italic;
}

/* Destaques especiais */
.prose .highlight {
    background: linear-gradient(120deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
    margin: 2rem 0;
}

.prose .warning {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #d97706;
    margin: 2rem 0;
}

.prose .info {
    background: linear-gradient(120deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #2563eb;
    margin: 2rem 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .prose h1 {
        font-size: 1.5rem;
    }
    
    .prose h2 {
        font-size: 1.25rem;
    }
    
    .prose h3 {
        font-size: 1.125rem;
    }
    
    .prose p {
        font-size: 1rem;
    }
    
    .prose blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose th,
    .prose td {
        padding: 0.75rem 0.5rem;
    }
}

/* Animações suaves */
.prose * {
    transition: all 0.2s ease;
}

/* Melhorias para acessibilidade */
.prose a:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

.prose img:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}
