/* ====================================================
   TEMPLATES DE ARTIGOS - ESTILOS COM PRIORIDADE ALTA
   ==================================================== */

/* === BASE TEMPLATE STYLES === */
.article-content.article-template-review,
.article-content-raw.article-template-review,
.custom-css-isolator.article-template-review,
div.article-content.article-template-review {
    /* Review Template - Blue Theme */
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(96, 165, 250, 0.02) 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-left: 6px solid #2563eb !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1) !important;
}

.article-content.article-template-news,
.article-content-raw.article-template-news,
.custom-css-isolator.article-template-news,
div.article-content.article-template-news {
    /* News Template - Green Theme */
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.02) 0%, rgba(74, 222, 128, 0.02) 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-left: 6px solid #22c55e !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1) !important;
}

.article-content.article-template-smart-home,
.article-content-raw.article-template-smart-home,
.custom-css-isolator.article-template-smart-home,
div.article-content.article-template-smart-home {
    /* Smart Home Template - Purple Theme */
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.02) 0%, rgba(168, 85, 247, 0.02) 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-left: 6px solid #9333ea !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.1) !important;
}

.article-content.article-template-tutorial,
.article-content-raw.article-template-tutorial,
.custom-css-isolator.article-template-tutorial,
div.article-content.article-template-tutorial {
    /* Tutorial Template - Orange Theme */
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.02) 0%, rgba(251, 146, 60, 0.02) 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-left: 6px solid #f97316 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.1) !important;
}

.article-content.article-template-comparison,
.article-content-raw.article-template-comparison,
.custom-css-isolator.article-template-comparison,
div.article-content.article-template-comparison {
    /* Comparison Template - Red Theme */
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02) 0%, rgba(248, 113, 113, 0.02) 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-left: 6px solid #ef4444 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1) !important;
}

.article-content.article-template-guide,
.article-content-raw.article-template-guide,
.custom-css-isolator.article-template-guide,
div.article-content.article-template-guide {
    /* Guide Template - Teal Theme */
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.02) 0%, rgba(45, 212, 191, 0.02) 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-left: 6px solid #14b8a6 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.1) !important;
}

/* === HEADERS STYLING === */
.article-template-review h1, 
.article-template-review h2, 
.article-template-review h3 {
    color: #2563eb !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 0.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.article-template-news h1, 
.article-template-news h2, 
.article-template-news h3 {
    color: #22c55e !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 0.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.article-template-smart-home h1, 
.article-template-smart-home h2, 
.article-template-smart-home h3 {
    color: #9333ea !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 0.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.article-template-tutorial h1, 
.article-template-tutorial h2, 
.article-template-tutorial h3 {
    color: #f97316 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 0.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.article-template-comparison h1, 
.article-template-comparison h2, 
.article-template-comparison h3 {
    color: #ef4444 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 0.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.article-template-guide h1, 
.article-template-guide h2, 
.article-template-guide h3 {
    color: #14b8a6 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 0.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

/* === PARAGRAPHS === */
.article-template-review p,
.article-template-news p,
.article-template-smart-home p,
.article-template-tutorial p,
.article-template-comparison p,
.article-template-guide p {
    line-height: 1.8 !important;
    margin-bottom: 1.5rem !important;
    color: #374151 !important;
}

/* === LISTS === */
.article-template-review ul,
.article-template-review ol,
.article-template-news ul,
.article-template-news ol,
.article-template-smart-home ul,
.article-template-smart-home ol,
.article-template-tutorial ul,
.article-template-tutorial ol,
.article-template-comparison ul,
.article-template-comparison ol,
.article-template-guide ul,
.article-template-guide ol {
    margin-left: 2rem !important;
    margin-bottom: 1.5rem !important;
}

.article-template-review li,
.article-template-news li,
.article-template-smart-home li,
.article-template-tutorial li,
.article-template-comparison li,
.article-template-guide li {
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
}

/* === BLOCKQUOTES === */
.article-template-review blockquote {
    border-left: 4px solid #2563eb !important;
    background: rgba(37, 99, 235, 0.05) !important;
    padding: 1rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

.article-template-news blockquote {
    border-left: 4px solid #22c55e !important;
    background: rgba(34, 197, 94, 0.05) !important;
    padding: 1rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

.article-template-smart-home blockquote {
    border-left: 4px solid #9333ea !important;
    background: rgba(147, 51, 234, 0.05) !important;
    padding: 1rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

.article-template-tutorial blockquote {
    border-left: 4px solid #f97316 !important;
    background: rgba(249, 115, 22, 0.05) !important;
    padding: 1rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

.article-template-comparison blockquote {
    border-left: 4px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
    padding: 1rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

.article-template-guide blockquote {
    border-left: 4px solid #14b8a6 !important;
    background: rgba(20, 184, 166, 0.05) !important;
    padding: 1rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* === DARK MODE SUPPORT === */
[data-bs-theme="dark"] .article-template-review,
[data-bs-theme="dark"] .article-template-news,
[data-bs-theme="dark"] .article-template-smart-home,
[data-bs-theme="dark"] .article-template-tutorial,
[data-bs-theme="dark"] .article-template-comparison,
[data-bs-theme="dark"] .article-template-guide {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .article-template-review p,
[data-bs-theme="dark"] .article-template-news p,
[data-bs-theme="dark"] .article-template-smart-home p,
[data-bs-theme="dark"] .article-template-tutorial p,
[data-bs-theme="dark"] .article-template-comparison p,
[data-bs-theme="dark"] .article-template-guide p {
    color: #e5e7eb !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .article-template-review,
    .article-template-news,
    .article-template-smart-home,
    .article-template-tutorial,
    .article-template-comparison,
    .article-template-guide {
        padding: 1.5rem !important;
        margin: 1rem 0 !important;
        border-radius: 8px !important;
    }
}

/* === ACCESSIBILITY === */
.article-template-review:focus,
.article-template-news:focus,
.article-template-smart-home:focus,
.article-template-tutorial:focus,
.article-template-comparison:focus,
.article-template-guide:focus {
    outline: 2px solid currentColor !important;
    outline-offset: 2px !important;
}

/* === DEBUG HELPER === */
.article-template-review::before {
    content: "📝 TEMPLATE: REVIEW" !important;
    display: block !important;
    background: #2563eb !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    margin: -2rem -2rem 2rem -2rem !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

.article-template-news::before {
    content: "📰 TEMPLATE: NEWS" !important;
    display: block !important;
    background: #22c55e !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    margin: -2rem -2rem 2rem -2rem !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

.article-template-smart-home::before {
    content: "🏠 TEMPLATE: SMART HOME" !important;
    display: block !important;
    background: #9333ea !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    margin: -2rem -2rem 2rem -2rem !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

.article-template-tutorial::before {
    content: "📚 TEMPLATE: TUTORIAL" !important;
    display: block !important;
    background: #f97316 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    margin: -2rem -2rem 2rem -2rem !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

.article-template-comparison::before {
    content: "⚖️ TEMPLATE: COMPARISON" !important;
    display: block !important;
    background: #ef4444 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    margin: -2rem -2rem 2rem -2rem !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

.article-template-guide::before {
    content: "📖 TEMPLATE: GUIDE" !important;
    display: block !important;
    background: #14b8a6 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    margin: -2rem -2rem 2rem -2rem !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}
