/* assets/css/mmc.css */
/* CSS ISOLADO - Apenas para Calculadora MMC e MDC */

/* ===================================
   SEÇÃO DA CALCULADORA MMC E MDC
   ================================== */
.mmc-calculator-section {
    margin-bottom: 3rem;
}

.mmc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mmc-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.mmc-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.mmc-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
}

.mmc-inputs h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SISTEMA DE ABAS ESPECÍFICO MMC
   ================================== */
.mmc-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 1rem;
}

.mmc-tab-btn {
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    color: #5a6c7d;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
}

.mmc-tab-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
    transform: translateY(-2px);
}

.mmc-tab-btn.active {
    background: #28a745;
    color: white;
    border-color: #1e7e34;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* ===================================
   CONTEÚDO DAS ABAS MMC
   ================================== */
.mmc-tab-content {
    display: none;
}

.mmc-tab-content.active {
    display: block;
    animation: fadeInMmcTab 0.3s ease;
}

@keyframes fadeInMmcTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   INPUTS HORIZONTAIS MMC
   ================================== */
.mmc-inputs-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e6ed;
}

.mmc-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fff8;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    min-width: 120px;
}

.mmc-input-group:hover {
    border-color: #28a745;
    transform: translateY(-2px);
}

.mmc-input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-align: center;
}

.mmc-input-group input {
    width: 80px;
    padding: 0.8rem;
    border: 2px solid #28a745;
    border-radius: 6px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
}

.mmc-input-group input:focus {
    outline: none;
    border-color: #1e7e34;
    transform: scale(1.05);
    background: #f8fff8;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.mmc-input-group input:valid:not(:placeholder-shown) {
    border-color: #155724;
    background: #d4edda;
}

/* ===================================
   RESULTADO DISPLAY MMC
   ================================== */
.mmc-result-display {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    transition: all 0.3s ease;
}

.mmc-result-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
}

.mmc-result-display.wide {
    min-width: 300px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.mmc-result-label {
    font-weight: 600;
    color: #155724;
    font-size: 1rem;
}

.mmc-result-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #155724;
    font-family: 'Courier New', monospace;
}

.mmc-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0.5rem;
}

/* ===================================
   LISTAS DE MÚLTIPLOS E DIVISORES
   ================================== */
.mmc-multiplos-list,
.mmc-divisores-list {
    background: white;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #155724;
    font-weight: 600;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

/* ===================================
   FATORAÇÃO PRIMA
   ================================== */
.mmc-fatoracao-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #28a745;
}

.mmc-fatoracao-resultado {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #155724;
}

/* ===================================
   FÓRMULA ESPECÍFICA MMC
   ================================== */
.mmc-formula {
    background: #e8f5e8;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #155724;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLOS E AJUDA MMC
   ================================== */
.mmc-examples {
    text-align: center;
    margin: 1.5rem 0;
}

.mmc-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.mmc-example-btn {
    background: #f8fff8;
    border: 2px solid #28a745;
    color: #28a745;
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.mmc-example-btn:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
}

.mmc-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO MMC
   ================================== */
.mmc-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fff8;
    border: 2px solid #28a745;
    border-radius: 12px;
}

.mmc-explanation h3 {
    color: #28a745;
    margin-bottom: 1rem;
    text-align: center;
}

.mmc-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
}

.mmc-step h4 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.mmc-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   CONTEÚDO EDUCACIONAL MMC
   ================================== */
.mmc-educational-content {
    margin-top: 3rem;
}

.mmc-content-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
}

.mmc-content-block h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #28a745;
    padding-bottom: 0.5rem;
}

.mmc-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.mmc-content-block strong {
    color: #28a745;
}

/* ===================================
   FORMULA DISPLAY MMC
   ================================== */
.mmc-formula-display {
    background: #f8fff8;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.mmc-formula-display h4 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mmc-formula-display .formula p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #155724;
    font-weight: 600;
}

/* ===================================
   GRIDS EXEMPLOS E DICAS MMC
   ================================== */
.mmc-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mmc-example-item {
    background: #f8fff8;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.mmc-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #28a745;
}

.mmc-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mmc-example-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mmc-example-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
}

.mmc-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mmc-tip-item {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.mmc-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mmc-tip-item h4 {
    color: #155724;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mmc-tip-item p {
    color: #155724;
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLO DE SOLUÇÃO MMC
   ================================== */
.mmc-example-solution {
    background: #f8fff8;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.mmc-example-solution h4 {
    color: #28a745;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.mmc-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.mmc-solution-step h5 {
    color: #155724;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.mmc-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.mmc-solution-final {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.mmc-solution-final h5 {
    color: #155724;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.mmc-solution-final p {
    color: #155724;
    margin: 0;
    font-family: inherit;
}

/* ===================================
   FAQ, REFERÊNCIAS E CREDIBILIDADE
   ================================== */

/* FAQ Container */
.faq-container {
    margin-top: 0;
}

.faq-container h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid #28a745;
    padding-bottom: 0.5rem;
}

.faq-item {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.faq-question {
    background: #f8fff8;
    color: #28a745;
    padding: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 3rem;
}

.faq-question:hover {
    background: #28a745;
    color: white;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 1.2rem 1.2rem 1.2rem;
    background: white;
}

.faq-answer p {
    margin: 0.8rem 0;
    color: #444;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Referências Container */
.referencias-container {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.referencias-titulo {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
}

.referencias-content {
    color: #444;
}

.referencias-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #5a6c7d;
}

.referencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.referencia-item {
    background: #f8fff8;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.referencia-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.referencia-item strong {
    color: #28a745;
    font-weight: 600;
}

.referencias-observacao {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #155724;
    text-align: center;
    font-style: italic;
}

/* Credibilidade Container */
.credibilidade-container {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credibilidade-icon {
    font-size: 2.5rem;
    color: #28a745;
}

.credibilidade-title {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.credibilidade-content {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: white;
    color: #28a745;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #28a745;
    transition: all 0.3s ease;
}

.credibilidade-badge:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   ANIMAÇÕES MMC
   ================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE MMC
   ================================== */
@media (max-width: 768px) {
    .mmc-header h1 {
        font-size: 2rem;
    }
    
    .mmc-tabs {
        gap: 0.3rem;
    }
    
    .mmc-tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .mmc-inputs-horizontal {
        gap: 1rem;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .mmc-input-group {
        padding: 0.8rem;
        min-width: 100px;
    }
    
    .mmc-input-group input {
        width: 70px;
        font-size: 1rem;
    }
    
    .mmc-result-display {
        min-width: 120px;
        padding: 1.2rem;
    }
    
    .mmc-result-display.wide {
        min-width: 280px;
        flex-direction: column;
    }
    
    .mmc-multiplos-list,
    .mmc-divisores-list {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .mmc-examples-grid,
    .mmc-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .mmc-header h1 {
        font-size: 1.8rem;
    }
    
    .mmc-container {
        padding: 1rem;
    }
    
    .mmc-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .mmc-tab-btn {
        width: 140px;
    }
    
    .mmc-inputs-horizontal {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .mmc-input-group {
        min-width: 90px;
        padding: 0.6rem;
    }
    
    .mmc-input-group input {
        width: 60px;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .mmc-result-display {
        min-width: 100px;
        padding: 1rem;
    }
    
    .mmc-result-value {
        font-size: 1.5rem;
    }
    
    .mmc-multiplos-list,
    .mmc-divisores-list {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .mmc-fatoracao-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .mmc-fatoracao-resultado {
        font-size: 1rem;
    }
    
    .credibilidade-container,
    .referencias-container {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .credibilidade-title {
        font-size: 1.2rem;
    }
    
    .credibilidade-icon {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1rem;
        padding-right: 2.5rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
}