/* ==========================================================================
   CSS Exclusivo para o Sistema de Artigos do TabuadaPro
   Mantém a identidade visual escura, aprimora a legibilidade e responsividade
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Estilos da Página de Índice (/artigos/index.html)
   -------------------------------------------------------------------------- */

.articles-hero {
    padding: var(--space-lg) 0;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: var(--space-lg);
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

.articles-hero h1 {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 30%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.articles-hero p {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

/* Barra de Busca Premium */
.search-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 16px 24px 16px 54px;
    font-family: inherit;
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    background: rgba(13, 20, 38, 0.45);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Categorias */
.categories-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.category-btn {
    background: var(--btn-dark);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    color: var(--text-primary);
    background: var(--btn-dark-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.category-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #060913;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Grid de Artigos */
.articles-grid {
    margin-bottom: var(--space-lg);
}

/* Card de Artigo */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.article-card-image-wrapper {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card-image {
    transform: scale(1.08);
}

.article-card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.article-card-category {
    color: var(--accent-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-title {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.article-card:hover .article-card-title {
    color: var(--accent-green);
}

.article-card-excerpt {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.article-card-readmore {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.article-card:hover .article-card-readmore {
    gap: 10px;
}

/* Paginação */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-section);
}

.pagination-btn {
    background: var(--btn-dark);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-btn:hover {
    color: var(--text-primary);
    background: var(--btn-dark-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.pagination-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #060913;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* --------------------------------------------------------------------------
   2. Estilos do Modelo de Artigo (/artigos/template-artigo.html)
   -------------------------------------------------------------------------- */

.article-page-container {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: var(--space-section);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
    text-align: left;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent-green);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Cabeçalho do Artigo */
.article-header {
    text-align: left;
    margin-bottom: 30px;
}

.article-header-category {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: inline-block;
}

.article-header h1 {
    font-size: 2.8em;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, var(--text-primary) 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-subtitle {
    font-size: 1.25em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Autor e Meta Informações */
.article-author-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--btn-dark-hover);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.author-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    text-align: left;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.article-meta-details {
    font-size: 0.85em;
}

/* Botões de Compartilhamento */
.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    background: var(--btn-dark);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.95em;
}

.share-btn:hover {
    color: var(--text-primary);
    background: var(--btn-dark-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.share-btn.whatsapp:hover { color: #25d366; }
.share-btn.telegram:hover { color: #0088cc; }
.share-btn.twitter:hover { color: #1da1f2; }
.share-btn.facebook:hover { color: #1877f2; }

/* Imagem Destacada */
.article-featured-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--card-border);
}

.article-featured-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.article-image-caption {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Área de Conteúdo */
.article-body {
    text-align: left;
}

.article-body p {
    font-size: 1.12em;
    line-height: 1.85;
    color: #cbd5e1; /* Levemente mais claro para leitura noturna confortável */
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 1.75em;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-green);
    padding-left: 14px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.35em;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-body li {
    font-size: 1.1em;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--text-primary);
}

/* Índice Automático / TOC */
.table-of-contents {
    background: rgba(13, 20, 38, 0.45);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.toc-list li {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.toc-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc-list li a:hover {
    color: var(--accent-green);
}

.toc-list li.toc-h3 {
    padding-left: 16px;
    font-size: 0.9em;
}

/* Blocos de Destaque / Callouts */
.callout-box {
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    display: flex;
    gap: 16px;
}

.callout-icon {
    font-size: 1.6em;
    line-height: 1;
}

.callout-content {
    flex-grow: 1;
}

.callout-title {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.1em;
}

.callout-content p {
    font-size: 0.98em;
    line-height: 1.6;
    margin: 0;
    color: #cbd5e1;
}

/* Caixa Dica Rápida */
.callout-box.tip {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.callout-box.tip .callout-title {
    color: var(--accent-green);
}

.callout-box.tip .callout-icon {
    color: var(--accent-green);
}

/* Caixa Resumo */
.callout-box.summary {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.callout-box.summary .callout-title {
    color: #818cf8;
}

.callout-box.summary .callout-icon {
    color: #818cf8;
}

/* Bloco de Destaque Geral */
.callout-box.highlight {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.callout-box.highlight .callout-title {
    color: var(--warning);
}

/* Bloco de Vídeo Preparado */
.video-container-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
}

.video-icon {
    font-size: 2.5em;
    color: var(--accent-green);
}

/* FAQ em Accordion (details/summary) */
.faq-section {
    margin-top: 50px;
    border-top: 1px solid var(--card-border);
    padding-top: 40px;
}

.faq-section h2 {
    font-size: 1.75em;
    margin-bottom: 24px;
}

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

.faq-accordion details {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion summary {
    padding: 20px 24px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    outline: none;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: '↓';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    color: var(--accent-green);
    font-weight: bold;
}

.faq-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-accordion details[open] {
    border-color: rgba(16, 185, 129, 0.3);
}

.faq-accordion-content {
    padding: 0 24px 20px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1em;
}

/* Call to Action (CTA) do Jogo */
.game-cta-box {
    background: radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 60%), var(--card-bg);
    border: 1px solid var(--accent-green);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.game-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.game-cta-title {
    font-size: 1.8em;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.game-cta-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px auto;
    font-size: 1.05em;
    line-height: 1.6;
}

/* Artigos Relacionados */
.related-articles-section {
    margin-top: 60px;
    border-top: 1px solid var(--card-border);
    padding-top: 40px;
}

.related-articles-section h2 {
    font-size: 1.75em;
    margin-bottom: 24px;
    text-align: left;
}

/* Grid de Artigos Relacionados */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* Navegação Anterior / Próximo */
.articles-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
    margin-top: 40px;
    gap: 20px;
}

.art-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: 45%;
    text-align: left;
}

.art-nav-link.next {
    align-items: flex-end;
    text-align: right;
}

.art-nav-label {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.art-nav-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.art-nav-link:hover .art-nav-title {
    color: var(--accent-green);
}

/* --------------------------------------------------------------------------
   3. Ajustes de Responsividade
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .articles-hero h1 {
        font-size: 2em;
    }
    
    .article-header h1 {
        font-size: 2em;
    }
    
    .article-subtitle {
        font-size: 1.1em;
    }
    
    .game-cta-box {
        padding: 30px 20px;
    }
    
    .art-nav-title {
        font-size: 0.9em;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-author-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .articles-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .art-nav-link {
        max-width: 100%;
    }
    
    .art-nav-link.next {
        align-items: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   Classes de Suporte para a Biblioteca de Animações
   ========================================================================== */

/* Esconde elementos a serem revelados se o JS estiver ativo para evitar "flicker" */
.js-enabled .animate-fade-slide,
.js-enabled .animate-reveal {
    opacity: 0;
}

/* Suporte para Dica Rápida com Timer Bar */
.callout-box.tip {
    position: relative;
    overflow: hidden;
}

.timer-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.timer-bar {
    height: 100%;
    background: var(--accent-green);
    width: 100%;
}

/* Animações de Hover */
.animate-shake-hover {
    transition: transform 0.2s ease;
}

.animate-glow {
    border-radius: 12px;
}

/* ==========================================================================
   Suporte a CTA Triplo de Botões Responsivos
   ========================================================================== */
.cta-buttons-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%;
}

/* Botões de Call-to-Action (CTA) mais elegantes e sofisticados nos artigos */
.btn-cta {
    font-size: 1rem !important; /* Reduzido de 1.25em */
    padding: 12px 24px !important; /* Reduzido de 16px 36px */
    min-width: 200px !important; /* Reduzido de 280px */
    max-width: 100% !important;
    border-radius: 12px !important; /* Mais fino que 16px */
    height: auto !important;
}

.cta-buttons-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
    width: 100%;
}

.cta-buttons-container .btn-cta {
    flex: 1;
    min-width: 180px !important;
    max-width: 250px !important;
    margin: 0;
}

@media (max-width: 768px) {
    .cta-buttons-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    
    .cta-buttons-container .btn-cta {
        width: 100% !important;
        max-width: 280px !important;
        min-width: 200px !important;
    }

    .btn-cta {
        max-width: 280px !important;
        display: inline-flex !important;
    }
}

/* ==========================================================================
   Animação Especial e Desafios Rápidos (Artigo de Divisão)
   ========================================================================== */
.math-transform-container {
    position: relative;
    width: 320px;
    height: 80px;
    margin: 35px auto;
    background: rgba(7, 18, 25, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-family: var(--mono-font);
    font-size: 2.2rem;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Escala responsiva no mobile para evitar overflow e garantir funcionamento do Intersection Observer */
@media (max-width: 480px) {
    .math-transform-container {
        transform: scale(0.85);
        margin: 20px auto;
        transform-origin: center center;
    }
}

.math-token {
    position: absolute;
    top: 0;
    height: 80px;
    line-height: 80px; /* Alinhamento vertical perfeito sem usar transform */
    display: inline-block;
}

.token-a { left: 30px; color: var(--accent-green); }
.token-op { left: 95px; color: var(--text-secondary); }
.token-b { left: 155px; color: var(--accent-blue); }
.token-eq { left: 215px; color: var(--text-secondary); }
.token-res { left: 265px; color: var(--text-primary); }

/* Grid de Desafios */
.desafios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.desafio-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-family: var(--mono-font);
    font-size: 1.15rem;
    font-weight: 600;
}

.desafio-formula {
    color: var(--text-secondary);
}

.desafios-grid .desafio-item .desafio-resposta {
    display: inline-block;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 6px;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.7);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
}

.desafios-grid .desafio-item .desafio-resposta.revealed {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1);
}

/* ==========================================================================
   Animação de Grupos de Multiplicação (Artigo de Ensino de Tabuada)
   ========================================================================== */
.multiplication-anim-container {
    position: relative;
    max-width: 580px;
    margin: 35px auto;
    padding: 25px;
    background: rgba(7, 18, 25, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.02);
    text-align: center;
    overflow: hidden;
}

.multiplication-groups-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.multiplication-group {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(59, 130, 246, 0.25);
    border-radius: 18px;
    width: 140px;
    padding: 12px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.multiplication-group:hover {
    transform: scale(1.03);
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.multiplication-group:active {
    transform: scale(0.96);
    background: rgba(59, 130, 246, 0.08);
}

.group-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balls-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    justify-items: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.ball {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 35% 35%, #60a5fa, #1d4ed8);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.5);
}

.animate-multiplication-groups .ball {
    opacity: 0;
}

.multiplication-equation {
    margin-top: 25px;
    font-family: var(--mono-font);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.animate-multiplication-groups .multiplication-equation {
    opacity: 0;
}

@media (max-width: 480px) {
    .multiplication-anim-container {
        padding: 10px;
        border-radius: 16px;
    }
    .multiplication-groups-wrapper {
        gap: 8px;
        justify-content: space-between;
    }
    .multiplication-group {
        width: 88px;
        padding: 8px 4px;
        border-width: 1px;
    }
    .group-label {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    .balls-container {
        width: 52px;
        height: 52px;
        gap: 6px;
    }
    .ball {
        width: 16px;
        height: 16px;
        box-shadow: 0 2px 6px rgba(29, 78, 216, 0.4);
    }
    .multiplication-equation {
        font-size: 1.4rem;
        margin-top: 15px;
    }
}

/* ==========================================================================
   Animação do Caminho de Aprendizagem (Artigo Como Estudar Matemática Sozinho)
   ========================================================================== */
.learning-path-container {
    max-width: 580px;
    margin: 35px auto;
    padding: 25px;
    background: rgba(7, 18, 25, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.02);
}

.learning-row {
    display: flex;
    align-items: center;
    margin: 18px 0;
    gap: 15px;
}

.learning-label {
    width: 130px;
    font-weight: 700;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.learning-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.learning-track.completed {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.learning-node {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    position: absolute;
    top: -5px;
    left: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.learning-node.waiting {
    background: #3b82f6; /* azul/cinza de espera */
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.learning-node.locked,
.learning-node.active-first {
    background: #ef4444; /* vermelho para bloqueado */
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.learning-node.active {
    background: #10b981; /* verde correndo */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.learning-node.completed {
    background: #ffffff; /* branco concluido */
    box-shadow: 0 0 15px #ffffff, 0 0 5px rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
    .learning-path-container {
        padding: 15px 10px;
        border-radius: 16px;
    }
    .learning-row {
        margin: 12px 0;
        gap: 8px;
    }
    .learning-label {
        width: 100px;
        font-size: 0.75rem;
    }
    .learning-track {
        height: 8px;
    }
    .learning-node {
        width: 14px;
        height: 14px;
        top: -4px;
    }
}


