/* ../shared/calculadoras/entropia/entropia.css */
/* CSS ISOLADO - Apenas para Calculadora de Entropia */

/* ===================================
   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);
}

/* ===================================
   SEÇÃO DA CALCULADORA ENTROPIA
   ================================== */
.entropia-calculator-section {
    margin-bottom: 3rem;
}

.entropia-header {
    text-align: center;
    margin-bottom: 2rem;
}

.entropia-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.entropia-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.entropia-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;
}

.entropia-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SELETOR DE TIPO DE ENTROPIA
   ================================== */
.entropia-type-selector {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.entropia-type-selector h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.entropia-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.entropia-radio-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.entropia-radio-option:hover {
    border-color: var(--secondary);
    background: var(--light);
    transform: translateY(-2px);
}

.entropia-radio-option input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--secondary);
}

.entropia-radio-option input[type="radio"]:checked + span {
    color: var(--secondary);
    font-weight: 600;
}

.entropia-radio-option span {
    font-size: 1.1rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

/* ===================================
   INPUTS DINÂMICOS ENTROPIA
   ================================== */
.entropia-inputs {
    margin-bottom: 2rem;
}

.entropia-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.entropia-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.entropia-input-group label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.entropia-input-group input,
.entropia-input-group select {
    padding: 0.8rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.entropia-input-group input:focus,
.entropia-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.2);
}

/* ===================================
   BOTÕES DE AÇÃO ENTROPIA
   ================================== */
.entropia-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.entropia-btn-primary {
    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);
}

.entropia-btn-primary:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4);
}

.entropia-btn-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.entropia-btn-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   RESULTADO ENTROPIA
   ================================== */
.entropia-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;
}

.entropia-resultado-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.entropia-resultado-header h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin: 0;
}

.entropia-resultado-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* ===================================
   CARDS DE RESULTADO ESPECÍFICOS
   ================================== */
#entropiaResultadoValues {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.entropia-result-main {
    background: linear-gradient(135deg, var(--light), #ffffff);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.1);
}

.entropia-result-main h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.entropia-value {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent);
    margin: 1rem 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0, 184, 148, 0.1);
}

.entropia-unit {
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 600;
    margin-left: 0.5rem;
    font-family: 'Segoe UI', sans-serif;
}

.entropia-result-main p {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    background: var(--light);
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 4px solid var(--secondary);
}

.entropia-result-details {
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.1);
}

.entropia-result-details h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.5rem;
}

.entropia-result-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entropia-result-details li {
    background: var(--light);
    margin-bottom: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-size: 1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.entropia-result-details li:hover {
    background: #f0f4ff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.1);
}

.entropia-result-details li strong {
    color: var(--primary);
    font-weight: 700;
}

.entropia-result-details li:last-child {
    margin-bottom: 0;
}

.entropia-resultado-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.entropia-resultado-footer p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO ENTROPIA
   ================================== */
.entropia-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.entropia-explanation h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.entropia-calculation-step {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.entropia-calculation-step h5 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.entropia-calculation-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLOS E AJUDA ENTROPIA
   ================================== */
.entropia-examples {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.entropia-example-btn {
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.entropia-example-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.entropia-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    transition: all 0.3s ease;
}

.entropia-help.hidden {
    display: none;
}

/* ===================================
   CONTEÚDO EDUCACIONAL ENTROPIA
   ================================== */
.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;
}

/* ===================================
   FÓRMULAS E EQUAÇÕES ENTROPIA
   ================================== */
.entropia-formulas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.entropia-formula-card {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.entropia-formula-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.2);
}

.entropia-formula-card h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.entropia-formula-card p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

.entropia-formula-card p:first-of-type {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

.entropia-formula-card p:last-of-type {
    font-family: inherit;
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
    margin-top: 0.8rem;
}

/* ===================================
   GRIDS DE APLICAÇÕES E DICAS
   ================================== */
.entropia-applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.entropia-app-card {
    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;
}

.entropia-app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.entropia-app-card h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.entropia-app-card p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.entropia-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.entropia-tip-card {
    background: var(--light);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.entropia-tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.entropia-tip-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.entropia-tip-card p {
    color: var(--primary);
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   CITAÇÃO DA LEI TERMODINÂMICA
   ================================== */
.entropia-law-quote {
    background: var(--light);
    border-left: 5px solid var(--secondary);
    margin: 1.5rem 0;
    padding: 1.5rem;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.entropia-law-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

/* ===================================
   CALCULADORAS RELACIONADAS
   ================================== */
.entropia-related-calculators {
    margin-top: 3rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.entropia-related-calculators h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.entropia-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.entropia-related-card {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.entropia-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.entropia-related-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.entropia-related-card p {
    color: #5a6c7d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===================================
   FAQ ENTROPIA
   ================================== */
.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 ENTROPIA
   ================================== */
.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 ENTROPIA
   ================================== */
.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 ENTROPIA
   ================================== */
@media (max-width: 768px) {
    .entropia-header h1 {
        font-size: 1.8rem;
    }
    
    .entropia-container {
        padding: 1rem;
    }
    
    .entropia-type-selector {
        padding: 1rem;
    }
    
    .entropia-radio-group {
        gap: 0.8rem;
    }
    
    .entropia-radio-option {
        padding: 0.8rem;
    }
    
    .entropia-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .entropia-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .entropia-btn-primary,
    .entropia-btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 1rem;
    }
    
    .entropia-value {
        font-size: 2rem;
    }
    
    .entropia-examples {
        flex-direction: column;
        align-items: center;
    }
    
    .entropia-example-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .entropia-formulas {
        grid-template-columns: 1fr;
    }
    
    .entropia-applications-grid,
    .entropia-tips-grid,
    .entropia-related-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) {
    .entropia-header h1 {
        font-size: 1.5rem;
    }
    
    .entropia-header p {
        font-size: 1rem;
    }
    
    .entropia-container {
        padding: 0.8rem;
    }
    
    .entropia-type-selector {
        padding: 0.8rem;
    }
    
    .entropia-value {
        font-size: 1.8rem;
    }
    
    .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="entropia"] .entropia-header h1 {
    color: #0984e3 !important;
    background: transparent !important;
    -webkit-text-fill-color: #0984e3 !important;
}