/**
 * CSS Corretor - PLUGINS COMPATIBILITY FIX
 * Sobrescreve regras problemáticas do tema
 * CARREGA POR ÚLTIMO (maior prioridade)
 * 
 * @package HTMLToolsMarketplace
 * @version 1.0.3
 */

/* ========================================
   CRÍTICO: FIX PARA PLUGINS
======================================== */

/**
 * PROBLEMA: marketplace.css tem isto:
 * .tab-content { display: none; }
 * 
 * Isso ESCONDE todo conteúdo de plugins que usam classe .tab-content
 * 
 * SOLUÇÃO: Forçar exibição em páginas (não em ferramentas)
 */

/* Fix para plugins que usam .tab-content */
.page .tab-content,
.page-template-default .tab-content,
article .tab-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* Fix para plugins que usam .course-block */
.course-block,
.block-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix para conteúdo de páginas em geral */
.entry-content,
.page-content,
article .entry-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix para elementos dentro do conteúdo */
.entry-content > *,
.page-content > * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix para divs dentro do conteúdo */
.entry-content div,
.page-content div {
    display: block !important;
}

/* Exceções - elementos que DEVEM continuar escondidos */
.entry-content .hidden,
.entry-content .d-none,
.entry-content [style*="display: none"],
.entry-content [hidden] {
    display: none !important;
}

/* ========================================
   LISTAS - Restaurar exibição
======================================== */

.entry-content ul,
.entry-content ol {
    display: block !important;
    list-style: disc !important;
    margin-left: 1.5em !important;
    padding-left: 1em !important;
}

.entry-content ol {
    list-style: decimal !important;
}

.entry-content li {
    display: list-item !important;
    margin-bottom: 0.5em !important;
}

/* ========================================
   TÍTULOS E PARÁGRAFOS
======================================== */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========================================
   IMAGENS E MÍDIA
======================================== */

.entry-content img,
.entry-content video,
.entry-content iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    height: auto !important;
}

/* ========================================
   BLOCOS GUTENBERG
======================================== */

.entry-content .wp-block {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========================================
   SHORTCODES DE PLUGINS
======================================== */

.entry-content [class*="shortcode"],
.entry-content [id*="shortcode"],
.entry-content [class*="plugin"],
.entry-content [class*="widget"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========================================
   FORMULÁRIOS
======================================== */

.entry-content form,
.entry-content input,
.entry-content textarea,
.entry-content select,
.entry-content button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.entry-content input[type="radio"],
.entry-content input[type="checkbox"] {
    display: inline-block !important;
}

/* ========================================
   TABELAS
======================================== */

.entry-content table {
    display: table !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

.entry-content tr {
    display: table-row !important;
}

.entry-content td,
.entry-content th {
    display: table-cell !important;
}

/* ========================================
   ESTILOS BÁSICOS PARA CONTEÚDO
======================================== */

.entry-content {
    line-height: 1.7;
    color: #334155;
    font-size: 16px;
}

.entry-content h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    color: #1e293b;
}

.entry-content h2 {
    font-size: 1.75em;
    font-weight: 700;
    margin: 1.3em 0 0.5em;
    color: #1e293b;
}

.entry-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 1.2em 0 0.5em;
    color: #1e293b;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content a {
    color: #2563eb;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #1d4ed8;
}

/* ========================================
   RESPONSIVO
======================================== */

@media (max-width: 768px) {
    .entry-content {
        font-size: 15px;
    }
    
    .entry-content h1 {
        font-size: 1.75em;
    }
    
    .entry-content h2 {
        font-size: 1.5em;
    }
}
