/* ====================================================
   TEMPLATES DE ARTIGOS - ESTILOS ESPECÍFICOS
   ==================================================== */

/* === TEMPLATE: REVIEW === */
.article-template-review {
    --review-primary: #3498db;
    --review-secondary: #2ecc71;
    --review-accent: #f39c12;
    --review-bg: #f8f9fa;
}

.article-template-review .article-intro {
    background: linear-gradient(135deg, var(--review-primary), var(--review-secondary));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.article-template-review .product-specs {
    background: var(--review-bg);
    border-left: 4px solid var(--review-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.article-template-review .product-specs ul {
    list-style: none;
    padding: 0;
}

.article-template-review .product-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.article-template-review .review-pros {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.article-template-review .review-pros h2 {
    color: #155724;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
}

.article-template-review .review-cons {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.article-template-review .review-cons h2 {
    color: #721c24;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 0.5rem;
}

.article-template-review .review-rating {
    text-align: center;
    margin: 2rem 0;
}

.article-template-review .rating-box {
    background: linear-gradient(45deg, var(--review-accent), #e67e22);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    display: inline-block;
    min-width: 250px;
}

.article-template-review .rating-score {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.article-template-review .rating-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* === TEMPLATE: NEWS === */
.article-template-news {
    --news-primary: #e74c3c;
    --news-secondary: #34495e;
    --news-accent: #f1c40f;
}

.article-template-news .news-headline {
    border-bottom: 3px solid var(--news-primary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.article-template-news .news-category {
    background: var(--news-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-template-news .news-date {
    color: #666;
    font-style: italic;
    margin: 0;
}

.article-template-news .lead-text {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--news-secondary);
    border-left: 4px solid var(--news-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.article-template-news .news-quote {
    background: #f8f9fa;
    border-left: 4px solid var(--news-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    position: relative;
}

.article-template-news .news-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--news-primary);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.article-template-news .news-quote cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--news-secondary);
}

.article-template-news .news-source {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* === TEMPLATE: SMART HOME === */
.article-template-smart-home {
    --smart-primary: #9b59b6;
    --smart-secondary: #1abc9c;
    --smart-accent: #e67e22;
    --smart-bg: #ecf0f1;
}

.article-template-smart-home .smart-home-intro {
    background: linear-gradient(135deg, var(--smart-primary), var(--smart-secondary));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.article-template-smart-home .device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.article-template-smart-home .device-card {
    background: white;
    border: 2px solid var(--smart-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.article-template-smart-home .device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-template-smart-home .device-card h3 {
    color: var(--smart-primary);
    margin-bottom: 1rem;
}

.article-template-smart-home .setup-guide {
    background: var(--smart-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-template-smart-home .setup-guide ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.article-template-smart-home .setup-guide li {
    counter-increment: step-counter;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--smart-primary);
    position: relative;
}

.article-template-smart-home .setup-guide li::before {
    content: counter(step-counter);
    background: var(--smart-primary);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.article-template-smart-home .automation-tips {
    background: linear-gradient(45deg, var(--smart-accent), #d35400);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

/* === TEMPLATE: TUTORIAL === */
.article-template-tutorial {
    --tutorial-primary: #2ecc71;
    --tutorial-secondary: #3498db;
    --tutorial-accent: #f39c12;
}

.article-template-tutorial .tutorial-intro {
    background: linear-gradient(135deg, var(--tutorial-primary), var(--tutorial-secondary));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.article-template-tutorial .requirements {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-template-tutorial .requirements h2 {
    color: #856404;
    border-bottom: 2px solid var(--tutorial-accent);
    padding-bottom: 0.5rem;
}

.article-template-tutorial .step {
    background: white;
    border: 2px solid var(--tutorial-primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.article-template-tutorial .step h3 {
    color: var(--tutorial-primary);
    margin-bottom: 1rem;
}

.article-template-tutorial .step-tip {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid var(--tutorial-secondary);
}

.article-template-tutorial .troubleshooting {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.article-template-tutorial .faq-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.article-template-tutorial .faq-item h4 {
    color: var(--tutorial-secondary);
    margin-bottom: 1rem;
}

/* === TEMPLATE: COMPARISON === */
.article-template-comparison {
    --comp-primary: #34495e;
    --comp-secondary: #95a5a6;
    --comp-accent: #e74c3c;
}

.article-template-comparison .comparison-overview {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.article-template-comparison .item-card {
    background: white;
    border: 2px solid var(--comp-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.article-template-comparison .item-card:hover {
    transform: scale(1.05);
    border-color: var(--comp-accent);
}

.article-template-comparison .vs-divider {
    background: var(--comp-accent);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    text-align: center;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-template-comparison .comparison-table table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-template-comparison .comparison-table th {
    background: var(--comp-primary);
    color: white;
    padding: 1rem;
    text-align: center;
}

.article-template-comparison .comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.article-template-comparison .comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.article-template-comparison .comparison-verdict {
    background: linear-gradient(135deg, var(--comp-accent), #c0392b);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

/* === TEMPLATE: GUIDE === */
.article-template-guide {
    --guide-primary: #8e44ad;
    --guide-secondary: #2c3e50;
    --guide-accent: #e67e22;
}

.article-template-guide .article-intro {
    background: linear-gradient(135deg, var(--guide-primary), var(--guide-secondary));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.article-template-guide h2 {
    color: var(--guide-primary);
    border-bottom: 2px solid var(--guide-accent);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem 0;
}

.article-template-guide h3 {
    color: var(--guide-secondary);
    margin: 1.5rem 0 1rem 0;
}

/* === MODO ESCURO === */
[data-bs-theme="dark"] .article-template-review .product-specs,
[data-bs-theme="dark"] .article-template-smart-home .setup-guide,
[data-bs-theme="dark"] .article-template-tutorial .troubleshooting {
    background: #2d3748;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .article-template-comparison .item-card,
[data-bs-theme="dark"] .article-template-smart-home .device-card,
[data-bs-theme="dark"] .article-template-tutorial .step,
[data-bs-theme="dark"] .article-template-tutorial .faq-item {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

[data-bs-theme="dark"] .article-template-comparison .comparison-table td {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

[data-bs-theme="dark"] .article-template-comparison .comparison-table tr:nth-child(even) {
    background: #1a202c;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .article-template-comparison .comparison-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-template-comparison .vs-divider {
        order: -1;
        margin: 1rem auto;
    }
    
    .article-template-smart-home .device-grid {
        grid-template-columns: 1fr;
    }
    
    .article-template-review .rating-box,
    .article-template-smart-home .smart-home-intro,
    .article-template-tutorial .tutorial-intro {
        padding: 1.5rem;
    }
    
    .article-template-review .rating-score {
        font-size: 2rem;
    }
}

/* === ANIMAÇÕES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-template-review .review-rating,
.article-template-comparison .comparison-verdict {
    animation: fadeInUp 0.6s ease-out;
}

/* === IMPRESSÃO === */
@media print {
    .article-template-review .rating-box,
    .article-template-smart-home .device-card,
    .article-template-comparison .item-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
