/**
 * 📚 ESTILOS PARA MÓDULOS INTERATIVOS
 * Versão: 1.0.0
 * Data: 18/05/2026
 */

/* Container principal */
#modulos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Introdução */
.modulos-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.modulos-intro h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.modulos-intro p {
    font-size: 1.2rem;
    color: #64748b;
}

/* Botão voltar */
.btn-voltar {
    background: #64748b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    background: #475569;
    transform: translateX(-4px);
}

/* Grid de disciplinas */
.disciplinas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.disciplina-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.disciplina-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.disciplina-icone {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.disciplina-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.disciplina-cor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
}

/* Grid de termos */
.termos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.termo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.termo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.termo-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.termo-card p {
    opacity: 0.9;
}

/* Grid de módulos */
.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modulo-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #3b82f6;
}

.modulo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.modulo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modulo-header h3 {
    font-size: 1.3rem;
    color: #1e293b;
    flex: 1;
}

.modulo-badge {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modulo-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modulo-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-iniciar {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-iniciar:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Header de estudo */
.estudo-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progresso-container {
    margin-top: 1rem;
}

.progresso-texto {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.progresso-barra {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.progresso-preenchido {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* Container do tópico */
.topico-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.topico-container h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 2rem;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 1rem;
}

/* Conteúdo */
.conteudo-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.conteudo-box h3 {
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.conteudo-box h4 {
    color: #475569;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.conteudo-box ul, .conteudo-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.conteudo-box li {
    margin-bottom: 0.5rem;
    color: #475569;
}

/* Boxes especiais */
.exemplo-box, .dica-box {
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.exemplo-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.dica-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.anuncio, .noticia {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.anuncio h5, .noticia h5 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Exercícios */
.exercicios-container {
    margin-top: 3rem;
}

.exercicios-container h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.exercicios-intro {
    color: #64748b;
    margin-bottom: 2rem;
}

.exercicio-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #3b82f6;
}

.exercicio-numero {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.exercicio-pergunta {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Opções */
.opcoes-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.opcao-radio {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.opcao-radio:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.opcao-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.opcao-radio span {
    flex: 1;
    color: #475569;
    font-size: 1rem;
}

/* Input completar */
.input-completar {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.input-completar:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Botão verificar */
.btn-verificar {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-verificar:hover {
    background: #2563eb;
    transform: scale(1.02);
}

.btn-verificar:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Feedback */
.feedback-container {
    margin-top: 1rem;
}

.feedback {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-correto {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.feedback-errado {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.feedback-aviso {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Navegação de tópicos */
.navegacao-topicos {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

/* Conclusão */
.conclusao-container {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.conclusao-icone {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.conclusao-container h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.conclusao-container p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
}

.pontuacao-final {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pontuacao-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
}

.pontuacao-numero {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.pontuacao-label {
    font-size: 1rem;
    color: #64748b;
}

.conclusao-acoes {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsivo */
@media (max-width: 768px) {
    .modulos-intro h2 {
        font-size: 2rem;
    }
    
    .disciplinas-grid,
    .termos-grid,
    .modulos-grid {
        grid-template-columns: 1fr;
    }
    
    .topico-container {
        padding: 1.5rem;
    }
    
    .navegacao-topicos {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pontuacao-final {
        grid-template-columns: 1fr;
    }
}
