/**
 * =============================================================================
 * HABITUZ - BLOG/ARTIGOS CSS
 * =============================================================================
 * Estilos específicos para as páginas de artigos/blog
 * 
 * IMPORTAÇÃO: Inclua este arquivo nas views de artigos via:
 * <link rel="stylesheet" href="<?= BASE_URL ?>assets/css/pages/articles.css">
 * =============================================================================
 */

/* =============== HERO FEATURED =============== */
.hero-featured {
    overflow: hidden;
}

.featured-image-wrapper {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
}

.featured-placeholder .material-symbols-outlined {
    font-size: 80px;
    color: #666;
}

.featured-content {
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-badge {
    display: inline-block;
    color: #E8A69E;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 1rem;
}

.category-badge:hover {
    color: var(--primary);
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.featured-title a:hover {
    color: #E8A69E !important;
}

.featured-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
}

/* =============== SECTION HEADERS =============== */
.section-header {
    text-align: center;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin: 0;
}

/* =============== ARTICLE CARDS =============== */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f4f8;
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.05);
}

.article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #f0f4f8 100%);
}

.article-placeholder .material-symbols-outlined {
    font-size: 48px;
    color: #94a3b8;
}

.article-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Badge de Categoria nos Cards */
.article-category-badge {
    display: inline-block;
    background-color: var(--primary);
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s ease;
}

.article-category-badge:hover {
    background-color: #8a4b45;
    color: #fff !important;
}

.article-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.article-title a:hover {
    color: var(--primary) !important;
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.article-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-date .material-symbols-outlined {
    font-size: 14px;
}

.article-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-link .material-symbols-outlined {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.article-link:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* =============== CATEGORY BOXES =============== */
.category-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.category-box:hover {
    box-shadow: var(--shadow-md);
}

.category-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.category-box-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.category-box-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #f4f6f9;
    padding: 4px 10px;
    border-radius: 20px;
}

.category-article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.category-article-list li {
    margin-bottom: 0.75rem;
}

.category-article-list li:last-child {
    margin-bottom: 0;
}

.category-article-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.category-article-link:hover {
    background: #f4f6f9;
}

.category-article-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.category-article-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-article-thumb-placeholder .material-symbols-outlined {
    font-size: 20px;
    color: #94a3b8;
}

.category-article-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-box-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(158, 90, 83, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.category-box-link:hover {
    background: rgba(158, 90, 83, 0.2);
}

.category-box-link .material-symbols-outlined {
    font-size: 18px;
}

/* =============== INDIVIDUAL ARTICLE CONTENT =============== */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--terracotta);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.article-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.article-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content a {
    color: var(--terracotta);
}

.article-content a:hover {
    text-decoration: underline;
}

/* Related Articles Section */
.article-related {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.article-related h4 {
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.article-related-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.article-related-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.article-related-link span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--terracotta);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.article-related-link strong {
    font-size: 0.95rem;
    line-height: 1.3;
}

.article-related-link:hover strong {
    color: var(--terracotta);
}

/* Special Badges */
.tag-badge:hover {
    background-color: var(--terracotta) !important;
    color: white !important;
}

/* =============== LISTING & CATEGORY PAGES =============== */
.articles-hero {
    background-color: var(--dark-bg);
}

.articles-hero .category-label {
    color: #E8A69E;
    border-color: #E8A69E !important;
}

.page-link {
    border: 1px solid #dee2e6;
    color: var(--text-dark);
}

.page-link:hover {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--terracotta) !important;
    border-color: var(--terracotta) !important;
    color: white !important;
}

/* =============== HORIZONTAL ARTICLE LIST (LIST VIEW) =============== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.article-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    background: white;
}

.article-list-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f4f8;
}

.article-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #f0f4f8 100%);
}

.article-list-thumb-placeholder .material-symbols-outlined {
    font-size: 24px;
    color: #94a3b8;
}

.article-list-content {
    flex-grow: 1;
    min-width: 0;
}

.article-list-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(158, 90, 83, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.article-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-item:hover .article-list-title {
    color: var(--primary);
}

.article-list-date {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.article-list-date .material-symbols-outlined {
    font-size: 14px;
}

.article-list-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f6f9;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.article-list-item:hover .article-list-arrow {
    background: var(--primary);
    color: white;
}

.article-list-arrow .material-symbols-outlined {
    font-size: 18px;
}

/* =============== RESPONSIVE LIST VIEW =============== */
@media (max-width: 767px) {
    .article-list-item {
        flex-wrap: wrap;
    }

    .article-list-thumb {
        width: 64px;
        height: 48px;
    }

    .article-list-content {
        flex-basis: calc(100% - 80px);
    }

    .article-list-date {
        flex-basis: 100%;
        padding-left: 80px;
        margin-top: -8px;
    }

    .article-list-arrow {
        display: none;
    }

    .article-list-title {
        font-size: 0.9rem;
    }
}

/* =============== SIDEBAR WIDGETS =============== */
.sidebar-link {
    transition: background-color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(158, 90, 83, 0.1);
    color: var(--terracotta) !important;
}

.tag-badge {
    transition: all 0.2s ease;
}

.tag-badge:hover,
.tag-badge.active {
    background-color: var(--terracotta) !important;
    color: white !important;
}

/* Sidebar CTA Widget */
.sidebar-cta-card {
    background: linear-gradient(135deg, #3F3F3F 0%, #161313 100%);
}

.sidebar-cta-icon {
    font-size: 40px;
    color: #E8A69E;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 991px) {
    .featured-image-wrapper {
        border-radius: 16px 16px 0 0;
        min-height: 250px;
    }

    .featured-content {
        padding: 2rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .featured-content {
        padding: 1.5rem;
    }

    .featured-title {
        font-size: 1.25rem;
    }

    .article-image-wrapper {
        height: 180px;
    }
}

/* =============================================================================
   ARTICLE CONTENT STYLES (ESTILO WIKI PARA ARTIGOS)
   =============================================================================
   Estilos de conteúdo rico para artigos técnicos - Mesma qualidade visual da Wiki
   ============================================================================= */

/* Header do Artigo Técnico */
.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #161313;
    line-height: 1.25;
    margin: 0;
}

/* Seção Genérica */
.article-section {
    margin-bottom: 40px;
}

.article-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #161313;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(158, 90, 83, 0.15);
}

.article-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3F3F3F;
    margin-top: 24px;
    margin-bottom: 12px;
}

.article-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #3F3F3F;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-section p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #3F3F3F;
}

/* Intro Box */
.article-intro-box {
    background: linear-gradient(135deg, rgba(158, 90, 83, 0.05), rgba(158, 90, 83, 0.02));
    border-left: 4px solid #9E5A53;
    border-radius: 0 12px 12px 0;
    padding: 24px;
    margin-bottom: 24px;
}

.article-intro-box p {
    margin-bottom: 12px;
    color: #3F3F3F;
}

.article-intro-box p:last-child {
    margin-bottom: 0;
}

/* Table of Contents */
.article-toc {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.article-toc h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3F3F3F;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.article-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.article-toc-list li {
    counter-increment: toc;
    margin-bottom: 8px;
}

.article-toc-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #F8F9FA;
    border-radius: 8px;
    text-decoration: none;
    color: #3F3F3F;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.article-toc-list li a::before {
    content: counter(toc);
    width: 24px;
    height: 24px;
    background: #9E5A53;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.article-toc-list li a:hover {
    background: rgba(158, 90, 83, 0.1);
    color: #9E5A53;
}

/* Figuras e Placeholders de Imagem */
.article-figure {
    margin: 32px 0;
    text-align: center;
}

.article-image-placeholder {
    background: linear-gradient(135deg, #F4F6F9, #E8EAED);
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.article-image-placeholder .material-symbols-outlined {
    font-size: 48px;
    color: #9CA3AF;
}

.article-image-placeholder p {
    font-size: 0.85rem;
    color: #6B7280;
    max-width: 400px;
    margin: 0;
    line-height: 1.5;
}

.article-figure figcaption {
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 12px;
    font-style: italic;
}

/* Destaques / Highlights */
.article-highlight {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.article-highlight-icon {
    flex-shrink: 0;
}

.article-highlight-icon .material-symbols-outlined {
    font-size: 24px;
}

.article-highlight-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-highlight-content strong {
    display: block;
    margin-bottom: 4px;
}

.article-highlight-info {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid #10B981;
}

.article-highlight-info .article-highlight-icon .material-symbols-outlined {
    color: #10B981;
}

.article-highlight-warning {
    background: rgba(217, 119, 6, 0.08);
    border-left: 4px solid #D97706;
}

.article-highlight-warning .article-highlight-icon .material-symbols-outlined {
    color: #D97706;
}

.article-highlight-terracotta {
    background: rgba(158, 90, 83, 0.08);
    border-left: 4px solid #9E5A53;
}

.article-highlight-terracotta .article-highlight-icon .material-symbols-outlined {
    color: #9E5A53;
}

/* Tabelas */
.article-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.article-table caption {
    padding: 16px;
    font-weight: 700;
    color: #3F3F3F;
    background: #F8F9FA;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-table thead {
    background: #3F3F3F;
    color: white;
}

.article-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
}

.article-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F0F0F0;
    color: #3F3F3F;
}

.article-table tbody tr:hover {
    background: rgba(158, 90, 83, 0.03);
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-table-compact th,
.article-table-compact td {
    padding: 10px 16px;
}

.article-table-compact th {
    background: #F8F9FA;
    color: #3F3F3F;
    width: 35%;
}

/* Listas */
.article-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.article-list li {
    position: relative;
    padding: 12px 16px 12px 48px;
    margin-bottom: 8px;
    background: #F8F9FA;
    border-radius: 8px;
    line-height: 1.5;
}

.article-list-check li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 12px;
    width: 20px;
    height: 20px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Timeline */
.article-timeline {
    position: relative;
    padding-left: 32px;
    margin: 32px 0;
}

.article-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #9E5A53, rgba(158, 90, 83, 0.2));
}

.article-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.article-timeline-item:last-child {
    padding-bottom: 0;
}

.article-timeline-marker {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: #9E5A53;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(158, 90, 83, 0.3);
}

.article-timeline-content {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 16px 20px;
}

.article-timeline-year {
    display: inline-block;
    background: #9E5A53;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.article-timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #3F3F3F;
}

/* Card Grid */
.article-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.article-card-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.article-card-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-card-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #9E5A53;
    color: white;
}

.article-card-item-header .material-symbols-outlined {
    font-size: 24px;
}

.article-card-item-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.article-card-item-header-olive {
    background: #9DB159;
}

.article-card-item-header-navy {
    background: #5760A5;
}

.article-card-item-header-bronze {
    background: #B47936;
}

.article-card-item-header-sky {
    background: #6E9CAF;
}

.article-card-item-header-purple {
    background: #915699;
}

.article-card-item-body {
    padding: 20px;
}

.article-card-item-body p {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 12px;
}

.article-card-item-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-card-item-body li {
    font-size: 0.85rem;
    color: #3F3F3F;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.article-card-item-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #9E5A53;
    font-weight: bold;
}

/* CTA Box */
.article-cta-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #3F3F3F, #161313);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
}

.article-cta-content {
    flex: 1;
}

.article-cta-content h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.article-cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.article-cta-action {
    flex-shrink: 0;
}

/* Stats Row */
.article-stats-row {
    display: flex;
    gap: 20px;
    margin: 32px 0;
    justify-content: center;
}

.article-stat-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
    min-width: 180px;
}

.article-stat-card-highlight {
    background: linear-gradient(135deg, #9E5A53, #8A4F49);
    border: none;
}

.article-stat-card-highlight .article-stat-number,
.article-stat-card-highlight .article-stat-label {
    color: white;
}

.article-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #9E5A53;
    line-height: 1;
    margin-bottom: 8px;
}

.article-stat-label {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 500;
}

/* Lesson Box */
.article-lesson-box {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.article-lesson-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(217, 119, 6, 0.05));
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

.article-lesson-header .material-symbols-outlined {
    color: #D97706;
    font-size: 24px;
}

.article-lesson-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #D97706;
}

.article-lesson-content {
    padding: 20px;
}

.article-lesson-content p {
    margin: 0;
    line-height: 1.7;
}

/* FAQ Section */
.article-faq-section {
    background: #F8F9FA;
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
}

.article-faq-section h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
}

.article-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-faq-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #3F3F3F;
    transition: background 0.2s;
}

.article-faq-question:hover {
    background: rgba(158, 90, 83, 0.03);
}

.article-faq-question .material-symbols-outlined {
    color: #9E5A53;
    font-size: 20px;
}

.article-faq-question::after {
    content: '▼';
    margin-left: auto;
    font-size: 0.7rem;
    color: #9CA3AF;
    transition: transform 0.2s;
}

.article-faq-item[open] .article-faq-question::after {
    transform: rotate(180deg);
}

.article-faq-answer {
    padding: 0 20px 20px 52px;
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.7;
}

/* Checklist */
.article-checklist {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

/* Bibliography */
.article-bibliography {
    background: #F8F9FA;
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
}

.article-bibliography h2 {
    border-bottom: none;
    padding-bottom: 0;
}

.article-reference-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-reference-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #3F3F3F;
    line-height: 1.5;
}

.article-reference-list li:last-child {
    margin-bottom: 0;
}

.article-ref-icon {
    flex-shrink: 0;
}

.article-ref-icon .material-symbols-outlined {
    color: #9E5A53;
    font-size: 20px;
}

.article-reference-list em {
    font-style: italic;
}

/* Footer do Artigo Técnico */
.article-tech-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #F0F0F0;
}

.article-footer-meta {
    background: rgba(158, 90, 83, 0.05);
    border-radius: 12px;
    padding: 20px 24px;
}

.article-footer-meta p {
    margin: 0;
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.6;
}

/* Responsivo para Artigos Técnicos */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .article-stats-row {
        flex-direction: column;
        align-items: stretch;
    }

    .article-stat-card {
        min-width: auto;
    }

    .article-card-grid {
        grid-template-columns: 1fr;
    }

    .article-timeline {
        padding-left: 24px;
    }

    .article-timeline-marker {
        left: -24px;
        width: 18px;
        height: 18px;
    }

    .article-faq-section {
        padding: 20px;
    }

    .article-bibliography {
        padding: 20px;
    }
}

/* =============================================================================
   COMPATIBILIDADE: Classes wiki-* para Artigos
   =============================================================================
   Permite usar as classes wiki-* dentro de .article-content
   Mantém compatibilidade com conteúdo já existente usando classes wiki-*
   ============================================================================= */

.article-content .wiki-section { margin-bottom: 40px; }
.article-content .wiki-section h2 { font-size: 1.5rem; font-weight: 700; color: #161313; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid rgba(158, 90, 83, 0.15); }
.article-content .wiki-section h3 { font-size: 1.2rem; font-weight: 700; color: #3F3F3F; margin-top: 24px; margin-bottom: 12px; }
.article-content .wiki-section p { margin-bottom: 16px; line-height: 1.8; color: #3F3F3F; }

.article-content .wiki-intro-box { background: linear-gradient(135deg, rgba(158, 90, 83, 0.05), rgba(158, 90, 83, 0.02)); border-left: 4px solid #9E5A53; border-radius: 0 12px 12px 0; padding: 24px; margin-bottom: 24px; }
.article-content .wiki-intro-box p { margin-bottom: 12px; color: #3F3F3F; }
.article-content .wiki-intro-box p:last-child { margin-bottom: 0; }

.article-content .wiki-toc { background: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 12px; padding: 24px; margin-bottom: 32px; }
.article-content .wiki-toc h2 { font-size: 1.1rem; font-weight: 700; color: #3F3F3F; margin-bottom: 16px; padding-bottom: 0; border-bottom: none; }
.article-content .wiki-toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.article-content .wiki-toc-list li { counter-increment: toc; margin-bottom: 8px; }
.article-content .wiki-toc-list li a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #F8F9FA; border-radius: 8px; text-decoration: none; color: #3F3F3F; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.article-content .wiki-toc-list li a::before { content: counter(toc); width: 24px; height: 24px; background: #9E5A53; color: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.article-content .wiki-toc-list li a:hover { background: rgba(158, 90, 83, 0.1); color: #9E5A53; }

.article-content .wiki-figure { margin: 32px 0; text-align: center; }
.article-content .wiki-image-placeholder { background: linear-gradient(135deg, #F4F6F9, #E8EAED); border: 2px dashed #D1D5DB; border-radius: 12px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.article-content .wiki-image-placeholder .material-symbols-outlined { font-size: 48px; color: #9CA3AF; }
.article-content .wiki-image-placeholder p { font-size: 0.85rem; color: #6B7280; max-width: 400px; margin: 0; line-height: 1.5; }
.article-content .wiki-figure figcaption { font-size: 0.85rem; color: #6B7280; margin-top: 12px; font-style: italic; }

.article-content .wiki-highlight { display: flex; gap: 16px; padding: 20px 24px; border-radius: 12px; margin: 24px 0; }
.article-content .wiki-highlight-icon { flex-shrink: 0; }
.article-content .wiki-highlight-icon .material-symbols-outlined { font-size: 24px; }
.article-content .wiki-highlight-content { flex: 1; font-size: 0.95rem; line-height: 1.6; }
.article-content .wiki-highlight-content strong { display: block; margin-bottom: 4px; }
.article-content .wiki-highlight-info { background: rgba(16, 185, 129, 0.08); border-left: 4px solid #10B981; }
.article-content .wiki-highlight-info .wiki-highlight-icon .material-symbols-outlined { color: #10B981; }
.article-content .wiki-highlight-warning { background: rgba(217, 119, 6, 0.08); border-left: 4px solid #D97706; }
.article-content .wiki-highlight-warning .wiki-highlight-icon .material-symbols-outlined { color: #D97706; }
.article-content .wiki-highlight-terracotta { background: rgba(158, 90, 83, 0.08); border-left: 4px solid #9E5A53; }
.article-content .wiki-highlight-terracotta .wiki-highlight-icon .material-symbols-outlined { color: #9E5A53; }

.article-content .wiki-table-wrapper { overflow-x: auto; margin: 24px 0; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.05); }
.article-content .wiki-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.article-content .wiki-table caption { padding: 16px; font-weight: 700; color: #3F3F3F; background: #F8F9FA; text-align: left; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.article-content .wiki-table thead { background: #3F3F3F; color: white; }
.article-content .wiki-table th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 0.85rem; }
.article-content .wiki-table td { padding: 14px 16px; border-bottom: 1px solid #F0F0F0; color: #3F3F3F; }
.article-content .wiki-table tbody tr:hover { background: rgba(158, 90, 83, 0.03); }
.article-content .wiki-table tbody tr:last-child td { border-bottom: none; }
.article-content .wiki-table-compact th, .article-content .wiki-table-compact td { padding: 10px 16px; }
.article-content .wiki-table-compact th { background: #F8F9FA; color: #3F3F3F; width: 35%; }

.article-content .wiki-list { list-style: none; padding: 0; margin: 20px 0; }
.article-content .wiki-list li { position: relative; padding: 12px 16px 12px 48px; margin-bottom: 8px; background: #F8F9FA; border-radius: 8px; line-height: 1.5; }
.article-content .wiki-list-check li::before { content: '✓'; position: absolute; left: 16px; top: 12px; width: 20px; height: 20px; background: #10B981; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }

.article-content .wiki-timeline { position: relative; padding-left: 32px; margin: 32px 0; }
.article-content .wiki-timeline::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, #9E5A53, rgba(158, 90, 83, 0.2)); }
.article-content .wiki-timeline-item { position: relative; padding-bottom: 24px; }
.article-content .wiki-timeline-item:last-child { padding-bottom: 0; }
.article-content .wiki-timeline-marker { position: absolute; left: -32px; top: 4px; width: 24px; height: 24px; background: #9E5A53; border-radius: 50%; border: 4px solid white; box-shadow: 0 2px 8px rgba(158, 90, 83, 0.3); }
.article-content .wiki-timeline-content { background: white; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 10px; padding: 16px 20px; }
.article-content .wiki-timeline-year { display: inline-block; background: #9E5A53; color: white; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 8px; }
.article-content .wiki-timeline-content p { margin: 0; font-size: 0.9rem; color: #3F3F3F; }

.article-content .wiki-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.article-content .wiki-card { background: white; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 12px; overflow: hidden; transition: all 0.2s; }
.article-content .wiki-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.article-content .wiki-card-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #9E5A53; color: white; }
.article-content .wiki-card-header .material-symbols-outlined { font-size: 24px; }
.article-content .wiki-card-header h4 { margin: 0; font-size: 1rem; font-weight: 700; }
.article-content .wiki-card-header-olive { background: #9DB159; }
.article-content .wiki-card-header-navy { background: #5760A5; }
.article-content .wiki-card-header-bronze { background: #B47936; }
.article-content .wiki-card-header-sky { background: #6E9CAF; }
.article-content .wiki-card-header-purple { background: #915699; }
.article-content .wiki-card-body { padding: 20px; }
.article-content .wiki-card-body p { font-size: 0.9rem; color: #6B7280; margin-bottom: 12px; }
.article-content .wiki-card-body ul { list-style: none; padding: 0; margin: 0; }
.article-content .wiki-card-body li { font-size: 0.85rem; color: #3F3F3F; padding: 6px 0; padding-left: 20px; position: relative; background: transparent; }
.article-content .wiki-card-body li::before { content: '•'; position: absolute; left: 0; color: #9E5A53; font-weight: bold; }

.article-content .wiki-stats-row { display: flex; gap: 20px; margin: 32px 0; justify-content: center; }
.article-content .wiki-stat-card { background: white; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 12px; padding: 24px 32px; text-align: center; min-width: 180px; }
.article-content .wiki-stat-card-highlight { background: linear-gradient(135deg, #9E5A53, #8A4F49); border: none; }
.article-content .wiki-stat-card-highlight .wiki-stat-number, .article-content .wiki-stat-card-highlight .wiki-stat-label { color: white; }
.article-content .wiki-stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: #9E5A53; line-height: 1; margin-bottom: 8px; }
.article-content .wiki-stat-label { font-size: 0.85rem; color: #6B7280; font-weight: 500; }

.article-content .wiki-lesson-box { background: white; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 12px; overflow: hidden; margin: 24px 0; }
.article-content .wiki-lesson-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(217, 119, 6, 0.05)); border-bottom: 1px solid rgba(217, 119, 6, 0.2); }
.article-content .wiki-lesson-header .material-symbols-outlined { color: #D97706; font-size: 24px; }
.article-content .wiki-lesson-header h4 { margin: 0; font-size: 1rem; font-weight: 700; color: #D97706; }
.article-content .wiki-lesson-content { padding: 20px; }
.article-content .wiki-lesson-content p { margin: 0; line-height: 1.7; }

.article-content .wiki-faq-section { background: #F8F9FA; border-radius: 16px; padding: 32px; margin: 40px 0; }
.article-content .wiki-faq-section h2 { border-bottom: none; padding-bottom: 0; margin-bottom: 24px; }
.article-content .wiki-faq-list { display: flex; flex-direction: column; gap: 12px; }
.article-content .wiki-faq-item { background: white; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.05); }
.article-content .wiki-faq-question { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 20px; background: transparent; border: none; text-align: left; cursor: pointer; font-size: 1rem; font-weight: 600; color: #3F3F3F; transition: background 0.2s; list-style: none; }
.article-content .wiki-faq-question::-webkit-details-marker { display: none; }
.article-content .wiki-faq-question:hover { background: rgba(158, 90, 83, 0.03); }
.article-content .wiki-faq-question .material-symbols-outlined { color: #9E5A53; font-size: 20px; }
.article-content .wiki-faq-question::after { content: '▼'; margin-left: auto; font-size: 0.7rem; color: #9CA3AF; transition: transform 0.2s; }
.article-content .wiki-faq-item[open] .wiki-faq-question::after { transform: rotate(180deg); }
.article-content .wiki-faq-answer { padding: 0 20px 20px 52px; font-size: 0.95rem; color: #6B7280; line-height: 1.7; }

.article-content .wiki-checklist { background: white; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 12px; padding: 24px; margin: 24px 0; }

.article-content .wiki-bibliography { background: #F8F9FA; border-radius: 16px; padding: 32px; margin-top: 40px; }
.article-content .wiki-bibliography h2 { border-bottom: none; padding-bottom: 0; }
.article-content .wiki-reference-list { list-style: none; padding: 0; margin: 0; }
.article-content .wiki-reference-list li { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: white; border-radius: 8px; margin-bottom: 10px; font-size: 0.9rem; color: #3F3F3F; line-height: 1.5; }
.article-content .wiki-reference-list li:last-child { margin-bottom: 0; }
.article-content .wiki-ref-icon { flex-shrink: 0; }
.article-content .wiki-ref-icon .material-symbols-outlined { color: #9E5A53; font-size: 20px; }
.article-content .wiki-reference-list em { font-style: italic; }

.article-content .wiki-footer { margin-top: 48px; padding-top: 32px; border-top: 2px solid #F0F0F0; }
.article-content .wiki-footer-meta { background: rgba(158, 90, 83, 0.05); border-radius: 12px; padding: 20px 24px; }
.article-content .wiki-footer-meta p { margin: 0; font-size: 0.9rem; color: #6B7280; line-height: 1.6; }

@media (max-width: 768px) {
    .article-content .wiki-stats-row { flex-direction: column; align-items: stretch; }
    .article-content .wiki-stat-card { min-width: auto; }
    .article-content .wiki-card-grid { grid-template-columns: 1fr; }
    .article-content .wiki-timeline { padding-left: 24px; }
    .article-content .wiki-timeline-marker { left: -24px; width: 18px; height: 18px; }
    .article-content .wiki-faq-section { padding: 20px; }
    .article-content .wiki-bibliography { padding: 20px; }
}