/**
 * Estilos Customizados do Tema
 * 
 * @package MoraesEquipamentos
 */

/* Cores Customizadas Moraes */
.bg-\\[\\#1e3a8a\\] {
    background-color: #1e3a8a !important;
}

.bg-\\[\\#050810\\] {
    background-color: #050810 !important;
}

.bg-\\[\\#0a0f1a\\] {
    background-color: #0a0f1a !important;
}

.bg-\\[\\#0c121e\\] {
    background-color: #0c121e !important;
}

.text-\\[\\#1e3a8a\\] {
    color: #1e3a8a !important;
}

.text-red-500 {
    color: #ef4444 !important;
}

.text-red-600 {
    color: #dc2626 !important;
}

.bg-red-500 {
    background-color: #ef4444 !important;
}

.bg-red-600 {
    background-color: #dc2626 !important;
}

.bg-red-700 {
    background-color: #b91c1c !important;
}

.border-red-600 {
    border-color: #dc2626 !important;
}

.text-blue-200 {
    color: #bfdbfe !important;
}

.text-blue-400 {
    color: #60a5fa !important;
}

.text-slate-100 {
    color: #f1f5f9 !important;
}

.text-slate-300 {
    color: #cbd5e1 !important;
}

.text-slate-400 {
    color: #94a3b8 !important;
}

.text-slate-500 {
    color: #64748b !important;
}

.text-slate-600 {
    color: #475569 !important;
}

.text-slate-700 {
    color: #334155 !important;
}

.text-slate-900 {
    color: #0f172a !important;
}

.text-slate-950 {
    color: #020617 !important;
}

.bg-slate-50 {
    background-color: #f8fafc !important;
}

.bg-slate-100 {
    background-color: #f1f5f9 !important;
}

.bg-slate-200 {
    background-color: #e2e8f0 !important;
}

.bg-slate-950 {
    background-color: #020617 !important;
}

.border-slate-100 {
    border-color: #f1f5f9 !important;
}

.border-slate-200 {
    border-color: #e2e8f0 !important;
}

/* Opacidades customizadas */
.bg-white\\/5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white\\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white\\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.border-white\\/5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.border-white\\/10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-white\\/20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.text-white\\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white\\/60 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.bg-red-600\\/30 {
    background-color: rgba(220, 38, 38, 0.3) !important;
}

.border-red-600\\/40 {
    border-color: rgba(220, 38, 38, 0.4) !important;
}

.bg-blue-500\\/10 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.border-blue-500\\/20 {
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.text-blue-400 {
    color: #60a5fa !important;
}

/* Ajustes adicionais se necessário */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animações customizadas */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Ajustes de acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Melhorias de performance */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estilos para conteúdo de posts - Sobrescrever Tailwind Prose */
article .entry-content,
article .entry-content p,
article p,
.blog-content,
.blog-content p,
.blog-post-content p {
    color: #334155 !important;
    line-height: 1.8 !important;
    font-family: 'Archivo', sans-serif !important;
}

article .entry-content p,
article p,
.blog-content p,
.blog-post-content p {
    margin-bottom: 1.5rem !important;
    font-size: 1.125rem !important;
    color: #334155 !important;
    line-height: 1.8 !important;
}

/* Garantir que todos os elementos de texto dentro do artigo tenham cor escura */
article .entry-content *,
article *,
.blog-content *,
.blog-post-content * {
    color: inherit !important;
}

/* Elementos específicos - Forçar cor escura */
article .entry-content p,
article p,
.blog-content p,
.blog-post-content p,
article .entry-content li,
article li,
.blog-content li,
.blog-post-content li,
article .entry-content span,
article span,
.blog-content span,
.blog-post-content span,
article .entry-content div,
article div,
.blog-content div,
.blog-post-content div,
article .entry-content section,
article section,
.blog-content section,
.blog-post-content section,
article .entry-content section p,
article section p,
.blog-content section p,
.blog-post-content section p {
    color: #334155 !important;
}

/* Blocos do Gutenberg */
article .wp-block-group,
article .wp-block-columns,
article .wp-block-column,
article .wp-block-group p,
article .wp-block-columns p,
article .wp-block-column p {
    color: #334155 !important;
}

/* Subtítulos - H2, H3, H4, H5 */
article .entry-content h2,
article h2,
article .entry-content h3,
article h3,
article .entry-content h4,
article h4,
article .entry-content h5,
article h5 {
    font-family: 'Archivo', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

article .entry-content h2,
article h2 {
    font-size: 2rem !important;
    color: #1e3a8a !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

article .entry-content h3,
article h3 {
    font-size: 1.5rem !important;
    color: #1e3a8a !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.3 !important;
}

article .entry-content h4,
article h4 {
    font-size: 1.25rem !important;
    color: #334155 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-weight: 800 !important;
}

article .entry-content h5,
article h5 {
    font-size: 1.125rem !important;
    color: #334155 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 800 !important;
}

/* Listas - Garantir cor escura */
article .entry-content ul,
article .entry-content ol,
article ul,
article ol,
.blog-content ul,
.blog-content ol,
.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem !important;
    padding-left: 2rem !important;
    color: #334155 !important;
}

article .entry-content li,
article li,
.blog-content li,
.blog-post-content li {
    margin-bottom: 0.75rem !important;
    font-size: 1.125rem !important;
    color: #334155 !important;
    list-style-type: disc !important;
}

article .entry-content ol li,
article ol li,
.blog-content ol li,
.blog-post-content ol li {
    list-style-type: decimal !important;
}

.entry-content strong {
    font-weight: 800 !important;
    color: #1e3a8a !important;
}

.entry-content a {
    color: #dc2626 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

.entry-content a:hover {
    color: #1e3a8a !important;
}

.entry-content blockquote {
    border-left: 4px solid #dc2626 !important;
    padding-left: 1.5rem !important;
    margin: 2rem 0 !important;
    font-style: italic !important;
    color: #64748b !important;
}

.entry-content img {
    margin: 2rem 0 !important;
    border-radius: 0.5rem !important;
}

.entry-content code {
    background-color: #f1f5f9 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.875rem !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
}

/* Garantir fundo branco no conteúdo */
.entry-content,
.prose {
    background-color: #ffffff !important;
    color: #334155 !important;
}

/* Forçar cor escura em TODOS os elementos dentro do artigo - Estilo mais agressivo */
/* Sobrescrever text-slate-100 do body */
article.blog-post-content,
article.blog-post-content * {
    color: #334155 !important;
}

/* Manter cores específicas para elementos especiais */
article.blog-post-content h2,
article.blog-post-content h3 {
    color: #1e3a8a !important;
}

article.blog-post-content a {
    color: #dc2626 !important;
}

article.blog-post-content strong {
    color: #1e3a8a !important;
}

article.blog-post-content p,
article.blog-post-content div,
article.blog-post-content section,
article.blog-post-content span:not(.text-red-600):not(.text-blue-600),
article.blog-post-content li,
article.blog-post-content td,
article.blog-post-content th,
article.blog-post-content .entry-content *,
article.blog-post-content .blog-content * {
    color: #334155 !important;
}

/* Sobrescrever estilos do Tailwind Prose */
.prose h2,
.prose h3,
.prose h4,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    font-family: 'Archivo', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.prose h2,
.blog-post-content h2,
.blog-content h2 {
    color: #1e3a8a !important;
    font-size: 2rem !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

.prose h3,
.blog-post-content h3,
.blog-content h3 {
    color: #1e3a8a !important;
    font-size: 1.5rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
}

.prose h4,
.blog-post-content h4,
.blog-content h4 {
    color: #334155 !important;
    font-size: 1.25rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

