/* ../shared/calculadoras/optica-lentes/optica-lentes.css */
/* CSS ISOLADO - Apenas para Calculadora de Óptica e Lentes */

/* ===================================
   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);
}

/* ===================================
   CORREÇÕES CRÍTICAS - SEMPRE INCLUIR
   ================================== */
/* Previne barra horizontal */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.optica-lentes-calculator-section,
.optica-lentes-container,
.optica-lentes-inputs,
.content {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===================================
   SEÇÃO DA CALCULADORA ÓPTICA LENTES
   ================================== */
.optica-lentes-calculator-section {
    margin-bottom: 3rem;
}

.optica-lentes-header {
    text-align: center;
    margin-bottom: 2rem;
}

.optica-lentes-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.optica-lentes-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.optica-lentes-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;
}

.optica-lentes-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   DADOS BÁSICOS E INPUTS
   ================================== */
.optica-lentes-dados-basicos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.optica-lentes-input-section {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.optica-lentes-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.optica-lentes-input-group label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.optica-lentes-input-group input,
.optica-lentes-input-group select {
    padding: 0.8rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.optica-lentes-input-group input:focus,
.optica-lentes-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.2);
}

.optica-lentes-input-group small {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.optica-lentes-input-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.optica-lentes-input-row .optica-lentes-input-group {
    flex: 1;
    min-width: 200px;
}

/* ===================================
   BOTÕES DE AÇÃO
   ================================== */
.optica-lentes-button-container {
    text-align: center;
    margin: 2rem 0;
}

.optica-lentes-btn-calcular {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.optica-lentes-btn-calcular:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4);
}

.optica-lentes-btn-limpar {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 1.5rem auto 0;
}

.optica-lentes-btn-limpar:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   EXEMPLOS RÁPIDOS
   ================================== */
.optica-lentes-examples {
    background: var(--light);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.optica-lentes-examples h4 {
    color: var(--primary);
    margin: 0 0 1rem 0;
    text-align: center;
    font-size: 1.1rem;
}

.optica-lentes-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.optica-lentes-examples-grid button {
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.optica-lentes-examples-grid button:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   RESULTADO
   ================================== */
.optica-lentes-resultado {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.optica-lentes-resultado h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.optica-lentes-resultado-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
}

.optica-lentes-resultado-item h4 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.optica-lentes-resultado-item p {
    margin: 0;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===================================
   EXPLICAÇÃO DETALHADA
   ================================== */
.optica-lentes-detailed-explanation {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.optica-lentes-explanation-header h3 {
    color: var(--secondary);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.optica-lentes-step {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary);
}

.optica-lentes-step h4 {
    color: var(--secondary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.optica-lentes-step p {
    margin: 0.5rem 0;
    color: #444;
    line-height: 1.6;
}

.optica-lentes-step .formula {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    display: inline-block;
    margin: 0.5rem 0;
}

.dados-fornecidos p {
    margin: 0.3rem 0;
    padding-left: 1rem;
    color: var(--primary);
    font-weight: 500;
}

/* ===================================
   AVISO LEGAL
   ================================== */
.optica-lentes-legal-disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: slideInUp 0.5s ease;
}

.optica-lentes-legal-disclaimer h4 {
    color: #856404;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.optica-lentes-legal-disclaimer p {
    color: #664d03;
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   CONTEÚDO EDUCACIONAL
   ================================== */
.educational-content {
    margin-top: 3rem;
}

.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;
}

.content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.content-block strong {
    color: var(--secondary);
}

.content-block h3 {
    color: var(--secondary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.content-block h4 {
    color: var(--primary);
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.content-block ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #444;
}

.content-block ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-block ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #444;
}

/* ===================================
   FÓRMULAS GRID
   ================================== */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.formula-item {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.formula-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.2);
}

.formula-item h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.formula-item .formula {
    background: var(--secondary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    display: inline-block;
    margin: 0.8rem 0;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.formula-item small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.8rem;
    font-style: italic;
}

/* ===================================
   EXEMPLOS PRÁTICOS
   ================================== */
.example-item {
    background: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--secondary);
}

.example-item h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.example-item > p {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.example-calculation {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid #e0e6ed;
}

.example-calculation p {
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    background: var(--light);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    font-weight: 500;
    color: var(--primary);
}

.example-calculation p strong {
    color: var(--accent);
    font-weight: 700;
}

/* ===================================
   FAQ ÓPTICA LENTES
   ================================== */
.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;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===================================
   REFERÊNCIAS ÓPTICA LENTES
   ================================== */
.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 ÓPTICA LENTES
   ================================== */
.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;
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE ÓPTICA LENTES
   ================================== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .main-container {
        overflow-x: hidden;
    }
    
    .optica-lentes-header h1 {
        font-size: 1.8rem;
    }
    
    .optica-lentes-container {
        padding: 1rem;
    }
    
    .optica-lentes-input-section {
        padding: 1rem;
    }
    
    .optica-lentes-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .optica-lentes-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formulas-grid {
        grid-template-columns: 1fr;
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .optica-lentes-header h1 {
        font-size: 1.5rem;
    }
    
    .optica-lentes-header p {
        font-size: 1rem;
    }
    
    .optica-lentes-container {
        padding: 0.8rem;
    }
    
    .optica-lentes-input-section {
        padding: 0.8rem;
    }
    
    .optica-lentes-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .content-block {
        padding: 1rem;
    }
    
    .content-block h2 {
        font-size: 1.3rem;
    }
    
    .content-block p {
        font-size: 1rem;
    }
    
    .credibilidade-container {
        padding: 1.5rem;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   CORREÇÃO DO TÍTULO - ESPECIFICIDADE MÁXIMA
   ================================== */
body[data-page="optica-lentes"] .optica-lentes-header h1 {
    color: #0984e3 !important;
    background: transparent !important;
    -webkit-text-fill-color: #0984e3 !important;
}