/* ===================================================================== */
/*                    CALCULADORA DE CAMPO ELÉTRICO - CSS               */
/* ===================================================================== */

/* ===================================
   VARIÁVEIS CSS - CORES DE FÍSICA
   ================================== */
:root {
    --primary: #0984e3;          /* Azul energia */
    --secondary: #6c5ce7;        /* Roxo força */
    --accent: #00b894;           /* Verde movimento */
    --light: #e8f4fd;            /* Fundo azul claro */
    --gradient: linear-gradient(135deg, #0984e3, #6c5ce7);
}

/* ===================================
   LAYOUT PRINCIPAL E RESPONSIVIDADE
   ================================== */

/* Previne barra horizontal */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.campo-eletrico-calculator-section,
.campo-eletrico-container,
.educational-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container da calculadora */
.campo-eletrico-container {
    padding: 2rem 1rem;
}

.campo-eletrico-container h1 {
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.campo-eletrico-description {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===================================
   CALCULADORA - CARD PRINCIPAL
   ================================== */

.campo-eletrico-calculator-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(9, 132, 227, 0.15);
    border: 1px solid #e0e6ed;
    padding: 2rem;
    margin-bottom: 2rem;
}

.campo-eletrico-input-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* ===================================
   INPUTS E FORMULÁRIOS
   ================================== */

.campo-eletrico-input-group {
    margin-bottom: 1.5rem;
}

.campo-eletrico-input-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.campo-eletrico-input-with-unit {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.campo-eletrico-input-with-unit input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.campo-eletrico-input-with-unit input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
    outline: none;
}

.campo-eletrico-unit-select, .campo-eletrico-select {
    padding: 0.75rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.campo-eletrico-unit-select:focus, .campo-eletrico-select:focus {
    border-color: var(--primary);
    outline: none;
}

#constanteCustom {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* ===================================
   BOTÕES
   ================================== */

.campo-eletrico-buttons-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 1.5rem 0;
}

.campo-eletrico-btn-primary, .campo-eletrico-btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.campo-eletrico-btn-primary {
    background: var(--gradient);
    color: white;
}

.campo-eletrico-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(9, 132, 227, 0.3);
}

.campo-eletrico-btn-secondary {
    background: #f8f9fa;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.campo-eletrico-btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   EXEMPLOS RÁPIDOS
   ================================== */

.campo-eletrico-examples-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e6ed;
}

.campo-eletrico-examples-section h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.campo-eletrico-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.campo-eletrico-example-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
}

.campo-eletrico-example-btn:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.3);
}

/* ===================================
   RESULTADO
   ================================== */

.campo-eletrico-result-section {
    margin: 2rem 0;
}

.campo-eletrico-result-card {
    background: var(--gradient);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(9, 132, 227, 0.3);
}

.campo-eletrico-result-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.campo-eletrico-result-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.campo-eletrico-result-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.campo-eletrico-result-unit {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.campo-eletrico-result-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* ===================================
   EXPLICAÇÃO E AVISO LEGAL
   ================================== */

.campo-eletrico-explanation-section, .campo-eletrico-legal-section {
    margin: 2rem 0;
}

.campo-eletrico-explanation-card, .campo-eletrico-legal-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    padding: 2rem;
}

.campo-eletrico-explanation-card h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.campo-eletrico-legal-card {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.campo-eletrico-legal-card h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.campo-eletrico-legal-card p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   SEÇÃO EDUCACIONAL - ESTILOS OBRIGATÓRIOS
   ================================== */

/* Container principal educacional */
.educational-content {
    padding: 2rem 1rem;
}

/* Cards educacionais - OBRIGATÓRIO */
.content-block {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(9, 132, 227, 0.15);
}

.content-block h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.5rem;
}

.content-block h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.content-block h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-block p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.content-block strong {
    color: var(--secondary);
}

/* ===================================
   FÓRMULAS - VISUAL DESTACADO OBRIGATÓRIO
   ================================== */

.formula-highlight {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.formula-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

/* Grid de fórmulas */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.formula-item {
    background: var(--light);
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.formula-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary);
    background: white;
    padding: 0.5rem;
    border-radius: 5px;
    margin: 0;
}

/* Dados sem bolinhas - IMPORTANTE */
.dados-fornecidos p {
    margin: 0.3rem 0;
    padding-left: 1rem;
    color: var(--secondary);
    font-weight: 500;
}

/* ===================================
   EXEMPLOS PRÁTICOS - VISUAL
   ================================== */
.example-item {
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 1rem 0;
}

.example-calculation {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e0e6ed;
}

.example-calculation p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* ===================================
   DICAS - LISTA VISUAL
   ================================== */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    background: var(--light);
    border: 1px solid #e0e6ed;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    margin: 0.8rem 0;
    transition: all 0.3s ease;
}

.tips-list li:hover {
    background: var(--gradient);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.2);
}

/* ===================================
   APLICAÇÕES - GRID COLORIDO OBRIGATÓRIO
   ================================== */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.application-item {
    background: var(--light);
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.application-item:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(9, 132, 227, 0.3);
}

.application-item h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.application-item:hover h4 {
    color: white;
}

/* ===================================
   FAQ CAMPO ELÉTRICO
   ================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: var(--light);
    color: var(--primary);
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    list-style: none;
}

.faq-question:hover {
    background: var(--secondary);
    color: white;
}

.faq-question::marker {
    display: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    color: #444;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===================================
   REFERÊNCIAS - LISTA PERSONALIZADA OBRIGATÓRIA
   ================================== */
.references-container {
    margin-top: 1.5rem;
}

.references-list {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: var(--light);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.accuracy-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.accuracy-note h5 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.accuracy-note p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===================================
   CREDIBILIDADE CAMPO ELÉTRICO
   ================================== */
.credibilidade-container {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.credibilidade-icon {
    font-size: 2rem;
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
}

.credibilidade-content {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

.credibilidade-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ===================================
   PASSOS DE CÁLCULO
   ================================== */
.campo-eletrico-step {
    background: var(--light);
    border-radius: 8px;
    padding: 1.2rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
}

.campo-eletrico-step h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ===================================
   RESPONSIVIDADE MOBILE
   ================================== */

@media (max-width: 768px) {
    .campo-eletrico-container {
        padding: 1rem 0.5rem;
    }
    
    .campo-eletrico-container h1 {
        font-size: 2rem;
    }
    
    .campo-eletrico-calculator-card {
        padding: 1.5rem;
    }
    
    .campo-eletrico-input-with-unit {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .campo-eletrico-unit-select {
        min-width: 100%;
    }
    
    .campo-eletrico-buttons-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .campo-eletrico-btn-primary, .campo-eletrico-btn-secondary {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .campo-eletrico-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .campo-eletrico-result-number {
        font-size: 2rem;
    }
    
    .formulas-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-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) {
    .campo-eletrico-container h1 {
        font-size: 1.8rem;
    }
    
    .campo-eletrico-calculator-card {
        padding: 1rem;
    }
    
    .campo-eletrico-result-number {
        font-size: 1.8rem;
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
    
    .content-block h3 {
        font-size: 1.3rem;
    }
    
    .credibilidade-container {
        padding: 1.5rem;
    }
}

/* ===================================
   CORREÇÃO DO TÍTULO - ESPECIFICIDADE MÁXIMA
   ================================== */
body[data-page="campo-eletrico"] .campo-eletrico-container h1 {
    color: #0984e3 !important;
    background: transparent !important;
    -webkit-text-fill-color: #0984e3 !important;
}