/* ===================================
   CSS COMPLETO LOGARITMOS - CORES MATEMÁTICA OFICIAIS
   Substitua todo o logaritmos.css existente
   ================================== */

:root {
    /* CORES MATEMÁTICA OFICIAIS */
    --primary: #667eea;          /* Azul lógico */
    --secondary: #764ba2;        /* Roxo precisão */
    --accent: #f093fb;           /* Rosa suave */
    --light: #f8f9ff;            /* Fundo azul claro */
    --gradient: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===================================
   SEÇÃO DA CALCULADORA LOGARITMOS
   ================================== */
.logaritmos-calculator-section {
    margin-bottom: 3rem;
}

.logaritmos-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logaritmos-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.logaritmos-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.logaritmos-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;
}

.logaritmos-inputs h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SISTEMA DE ABAS ESPECÍFICO LOGARITMOS
   ================================== */
.logaritmos-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 1rem;
}

.logaritmos-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;
}

.logaritmos-tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.logaritmos-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* ===================================
   CONTEÚDO DAS ABAS LOGARITMOS
   ================================== */
.logaritmos-tab-content {
    display: none;
}

.logaritmos-tab-content.active {
    display: block;
    animation: fadeInLogaritmosTab 0.3s ease;
}

@keyframes fadeInLogaritmosTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   INPUTS HORIZONTAIS LOGARITMOS
   ================================== */
.logaritmos-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;
}

.logaritmos-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    min-width: 100px;
}

.logaritmos-input-group:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.logaritmos-input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-align: center;
}

.logaritmos-input-group input {
    width: 80px;
    padding: 0.8rem;
    border: 2px solid var(--primary);
    border-radius: 6px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
}

.logaritmos-input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    transform: scale(1.05);
    background: var(--light);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.logaritmos-input-group input:valid:not(:placeholder-shown) {
    border-color: var(--secondary);
    background: var(--light);
}

.logaritmos-operation-symbol {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
    padding: 0.5rem;
}

/* ===================================
   RESULTADO DISPLAY LOGARITMOS
   ================================== */
.logaritmos-result-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    transition: all 0.3s ease;
}

.logaritmos-result-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.logaritmos-result-display.wide {
    min-width: 280px;
    padding: 1rem;
}

.logaritmos-result-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    font-family: 'Courier New', monospace;
}

/* ===================================
   PROPRIEDADES RESULTADO
   ================================== */
.logaritmos-propriedades-resultado {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.logaritmos-prop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--primary);
}

.logaritmos-prop-label {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.logaritmos-prop-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary);
    font-family: 'Courier New', monospace;
}

/* ===================================
   FÓRMULA ESPECÍFICA LOGARITMOS
   ================================== */
.logaritmos-formula {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLOS E AJUDA LOGARITMOS
   ================================== */
.logaritmos-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.logaritmos-examples.hidden {
    display: none;
}

.logaritmos-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.logaritmos-example-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.logaritmos-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.logaritmos-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    transition: all 0.3s ease;
}

.logaritmos-help.hidden {
    display: none;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO LOGARITMOS
   ================================== */
.logaritmos-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.logaritmos-explanation h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.logaritmos-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.logaritmos-step h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.logaritmos-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   CONTEÚDO EDUCACIONAL LOGARITMOS
   ================================== */
.logaritmos-educational-content {
    margin-top: 3rem;
}

.logaritmos-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;
}

.logaritmos-content-block h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.logaritmos-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.logaritmos-content-block strong {
    color: var(--primary);
}

/* ===================================
   FORMULA DISPLAY LOGARITMOS
   ================================== */
.logaritmos-formula-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.logaritmos-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.logaritmos-formula-display .formula p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
    font-weight: 600;
}

/* ===================================
   GRIDS EXEMPLOS E DICAS LOGARITMOS
   ================================== */
.logaritmos-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.logaritmos-example-item {
    background: var(--light);
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.logaritmos-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.logaritmos-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.logaritmos-example-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.logaritmos-example-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
}

.logaritmos-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.logaritmos-tip-item {
    background: var(--light);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.logaritmos-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logaritmos-tip-item h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.logaritmos-tip-item p {
    color: var(--secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLO DE SOLUÇÃO LOGARITMOS
   ================================== */
.logaritmos-example-solution {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.logaritmos-example-solution h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.logaritmos-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.logaritmos-solution-step h5 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.logaritmos-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.logaritmos-solution-final {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.logaritmos-solution-final h5 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.logaritmos-solution-final p {
    color: var(--secondary);
    margin: 0;
    font-family: inherit;
}

/* ===================================
   PADRÃO SEO - FAQ, CREDIBILIDADE, REFERÊNCIAS
   ================================== */

/* FAQ ESPECÍFICO LOGARITMOS */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: var(--light);
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.15);
}

.faq-question {
    background: var(--primary);
    color: white;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    outline: none;
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question::marker {
    color: white;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e0e6ed;
}

.faq-answer p {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
}

/* CREDIBILIDADE MATEMÁTICA - FUNDO BRANCO */
.credibilidade-container {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credibilidade-icon {
    font-size: 3rem;
    color: var(--primary);
}

.credibilidade-title {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.credibilidade-content {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.credibilidade-badge:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* REFERÊNCIAS ACADÊMICAS */
.referencias-container {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}

.referencias-title {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.referencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.referencia-item {
    background: var(--light);
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    position: relative;
    transition: all 0.3s ease;
}

.referencia-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    background: white;
}

.referencia-item:before {
    content: "📖";
    margin-right: 0.5rem;
    font-size: 1rem;
}

.referencia-item strong {
    color: var(--secondary);
}

/* ===================================
   ANIMAÇÕES LOGARITMOS
   ================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE LOGARITMOS
   ================================== */
@media (max-width: 768px) {
    .logaritmos-header h1 {
        font-size: 2rem;
    }
    
    .logaritmos-tabs {
        gap: 0.3rem;
    }
    
    .logaritmos-tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 85px;
    }
    
    .logaritmos-inputs-horizontal {
        gap: 1rem;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .logaritmos-input-group {
        padding: 0.8rem;
        min-width: 90px;
    }
    
    .logaritmos-input-group input {
        width: 70px;
        font-size: 1rem;
    }
    
    .logaritmos-operation-symbol {
        font-size: 1.5rem;
        min-width: 30px;
    }
    
    .logaritmos-result-display {
        min-width: 110px;
        padding: 1.2rem;
    }
    
    .logaritmos-result-display.wide {
        min-width: 250px;
    }
    
    .logaritmos-examples-grid,
    .logaritmos-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-header {
        flex-direction: column;
        text-align: center;
    }
    
    .credibilidade-icon {
        font-size: 2.5rem;
    }
    
    .credibilidade-title {
        font-size: 1.3rem;
    }
    
    .credibilidade-badges {
        gap: 0.5rem;
    }
    
    .credibilidade-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .referencias-container {
        padding: 1.5rem;
    }
    
    .referencia-item {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logaritmos-header h1 {
        font-size: 1.8rem;
    }
    
    .logaritmos-container {
        padding: 1rem;
    }
    
    .logaritmos-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .logaritmos-tab-btn {
        width: 130px;
    }
    
    .logaritmos-inputs-horizontal {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .logaritmos-input-group {
        min-width: 80px;
        padding: 0.6rem;
    }
    
    .logaritmos-input-group input {
        width: 60px;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .logaritmos-operation-symbol {
        font-size: 1.3rem;
    }
    
    .logaritmos-result-display {
        min-width: 100px;
        padding: 1rem;
    }
    
    .logaritmos-result-value {
        font-size: 1.5rem;
    }
    
    .logaritmos-result-display.wide {
        min-width: 200px;
    }
    
    .logaritmos-prop-item {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .logaritmos-example-icon {
        font-size: 2rem;
    }
}