/* ../shared/calculadoras/termodinamica/termodinamica.css */
/* CSS ISOLADO - Calculadora Termodinâmica - ÁREA FÍSICA */

/* ===== VARIÁVEIS DE COR - ÁREA FÍSICA ===== */
:root {
    --fisica-primary: #0984e3;      /* Azul energia */
    --fisica-secondary: #6c5ce7;    /* Roxo força */
    --fisica-accent: #00b894;       /* Verde movimento */
    --fisica-light: #e8f4fd;       /* Fundo azul claro */
    --fisica-gradient: linear-gradient(135deg, #0984e3, #6c5ce7);
}


/* ===================================
   CORREÇÕES CRÍTICAS - SEMPRE INCLUIR
   ================================== */
/* Previne barra horizontal */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.termodinamica-calculator-section,
.termodinamica-container,
.termodinamica-inputs,
.content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container educacional EXATO */
.educational-content { 
    margin-top: 3rem; 
}

.content-block { 
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(9, 132, 227, 0.15);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fisica-gradient);
    border-radius: 20px;
    padding: 2px;
    margin: -2px;
    z-index: -1;
}

.content-block h2 {
    color: var(--fisica-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-block h3 {
    color: var(--fisica-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-block p {
    color: #2c3e50;
    line-height: 1.8;
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
}

.content-block ul {
    padding-left: 0;
    margin: 1rem 0;
}

.content-block ul li {
    background: linear-gradient(135deg, var(--fisica-light) 0%, #e8f0ff 100%);
    padding: 0.8rem 1.2rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border-left: 4px solid var(--fisica-primary);
    list-style: none;
    position: relative;
    color: #2c3e50;
    font-weight: 500;
}

.content-block ul li::before {
    content: "▶";
    color: var(--fisica-primary);
    font-weight: bold;
    margin-right: 0.8rem;
}

.content-block ol {
    padding-left: 0;
    margin: 1rem 0;
    counter-reset: custom-counter;
}

.content-block ol li {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe8cc 100%);
    padding: 0.8rem 1.2rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
    list-style: none;
    position: relative;
    counter-increment: custom-counter;
    color: #2c3e50;
    font-weight: 500;
}

.content-block ol li::before {
    content: counter(custom-counter);
    background: #ff9800;
    color: white;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

/* ===================================
   CALCULADORA TERMODINÂMICA - FÍSICA
   ================================== */
.termodinamica-calculator-section {
    background: var(--fisica-gradient);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(9, 132, 227, 0.3);
}

.termodinamica-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.termodinamica-header h1 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.termodinamica-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.termodinamica-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px 20px 0 0;
    margin-top: -10px;
}

.termodinamica-inputs h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.termodinamica-dados-basicos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.termodinamica-input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--fisica-light);
    border-radius: 12px;
    border: 1px solid var(--fisica-primary);
}

.termodinamica-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.termodinamica-input-group label {
    color: var(--fisica-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.termodinamica-input-group input,
.termodinamica-input-group select {
    padding: 0.8rem 1rem;
    border: 2px solid var(--fisica-primary);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.termodinamica-input-group input:focus,
.termodinamica-input-group select:focus {
    outline: none;
    border-color: var(--fisica-secondary);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.termodinamica-input-group small {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.termodinamica-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.termodinamica-button-container {
    text-align: center;
    margin: 2rem 0;
}

.termodinamica-btn-calcular {
    background: var(--fisica-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.termodinamica-btn-calcular:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(9, 132, 227, 0.4);
}

.termodinamica-btn-calcular:active {
    transform: translateY(-1px);
}

/* Exemplos Rápidos - FÍSICA */
.termodinamica-examples {
    background: var(--fisica-accent);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.termodinamica-examples h4 {
    color: white;
    margin: 0 0 1rem 0;
    text-align: center;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.termodinamica-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.termodinamica-examples-grid button {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.termodinamica-examples-grid button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Resultado - FÍSICA */
.termodinamica-resultado {
    background: var(--fisica-gradient);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(9, 132, 227, 0.3);
    animation: slideIn 0.5s ease-out;
}

.termodinamica-resultado h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.termodinamica-resultado-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.termodinamica-resultado-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.termodinamica-resultado-item p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.termodinamica-btn-limpar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 1.5rem auto 0;
    backdrop-filter: blur(10px);
}

.termodinamica-btn-limpar:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Explicação Detalhada - FÍSICA */
.termodinamica-detailed-explanation {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e0e6ed;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.5s ease-out;
}

.termodinamica-explanation-header h3 {
    color: var(--fisica-primary);
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.termodinamica-step {
    background: var(--fisica-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--fisica-primary);
}

.termodinamica-step h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.termodinamica-step p {
    margin: 0.5rem 0;
    color: #444;
    line-height: 1.6;
}

.termodinamica-step .formula {
    background: var(--fisica-primary);
    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 sem bolinhas */
.dados-fornecidos p {
    margin: 0.3rem 0;
    padding-left: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Aviso legal padrão - FÍSICA */
.termodinamica-legal-disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: slideIn 0.5s ease-out;
}

.termodinamica-legal-disclaimer h4 {
    color: #856404;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.termodinamica-legal-disclaimer p {
    color: #664d03;
    margin: 0;
    line-height: 1.6;
}

/* Aviso legal padrão - FÍSICA */
#termodinamicaLegalDisclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: slideIn 0.5s ease-out;
}

.termodinamicaLegalDisclaimer  h4 {
    color: #856404;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.termodinamicaLegalDisclaimer  p {
    color: #664d03;
    margin: 0;
    line-height: 1.6;
}

/* Fórmulas Grid - FÍSICA */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.formula-item {
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.formula-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fisica-gradient);
    border-radius: 15px;
    padding: 2px;
    margin: -2px;
    z-index: -1;
}

.formula-item h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.formula-item h4::before {
    content: "🌡️";
    font-size: 1.1rem;
}

.formula-item .formula {
    background: var(--fisica-gradient);
    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(9, 132, 227, 0.3);
    letter-spacing: 0.5px;
}

.formula-item small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.8rem;
    font-style: italic;
    background: var(--fisica-light);
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--fisica-primary);
}

/* Exemplos */
.example-item {
    background: linear-gradient(145deg, var(--fisica-light) 0%, #ffeaea 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.example-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--fisica-gradient);
}

.example-item h4 {
    color: var(--fisica-primary);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-item h4::before {
    content: "🌡️";
}

.example-item > p {
    color: #2c3e50;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.example-calculation {
    background: linear-gradient(145deg, #ffffff 0%, #f0f8ff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid transparent;
    position: relative;
}

.example-calculation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fisica-gradient);
    border-radius: 12px;
    padding: 2px;
    margin: -2px;
    z-index: -1;
    opacity: 0.8;
}

.example-calculation p {
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    background: var(--fisica-light);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--fisica-primary);
    font-weight: 500;
    color: #2c3e50;
}

.example-calculation p strong {
    color: var(--fisica-primary);
    font-weight: 700;
}

/* ===================================
   FAQ + REFERÊNCIAS + CREDIBILIDADE - FÍSICA
   ================================== */
.content-block h3 {
    color: var(--fisica-primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--fisica-primary);
    padding-bottom: 0.5rem;
}

/* FAQ específico - FÍSICA */
.faq-container {
    margin-top: 1rem;
}

.faq-item {
    background: var(--fisica-light);
    border: 1px solid var(--fisica-primary);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.1);
}

.faq-question {
    background: var(--fisica-primary);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.faq-question:hover {
    background: var(--fisica-secondary);
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid rgba(9, 132, 227, 0.2);
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #2c3e50;
}

.faq-answer strong {
    color: var(--fisica-primary);
    font-weight: 600;
}

/* Referências específico - FÍSICA */
.references-container {
    margin-top: 1rem;
}

.references-list {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: var(--fisica-light);
    border-left: 4px solid var(--fisica-primary);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.referencia-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.referencia-item em {
    color: var(--fisica-secondary);
    font-weight: 600;
}

/* Credibilidade específico - FÍSICA */
.credibilidade-container {
    background: linear-gradient(135deg, var(--fisica-light), #f0f8ff);
    border: 2px solid var(--fisica-primary);
    border-radius: 15px;
    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: 2.5rem;
}

.credibilidade-title {
    color: var(--fisica-primary);
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.credibilidade-content {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--fisica-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--fisica-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(9, 132, 227, 0.3);
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   RESPONSIVIDADE CORRIGIDA - FÍSICA
   ================================== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .main-container {
        overflow-x: hidden;
    }
    
    .termodinamica-container {
        padding: 1rem;
        margin: 0;
    }
    
    .content-block {
        padding: 1.5rem;
        margin: 0 0 1.5rem 0;
    }
    
    .termodinamica-input-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .termodinamica-header h1 {
        font-size: 2rem;
    }
    
    .termodinamica-header p {
        font-size: 1rem;
    }
    
    .termodinamica-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formulas-grid {
        grid-template-columns: 1fr;
    }
    
    .termodinamica-input-section {
        padding: 1rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .termodinamica-header {
        padding: 1.5rem;
    }
    
    .termodinamica-header h1 {
        font-size: 1.8rem;
    }
    
    .termodinamica-container {
        padding: 1rem;
    }
    
    .content-block {
        padding: 1rem;
    }
    
    .termodinamica-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .termodinamica-btn-calcular {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .credibilidade-container {
        padding: 1rem;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

