/* ===================================
   CALCULADORA ECONOMIA ÁGUA CHUVEIRO - CSS
   Área: SUSTENTABILIDADE
   ================================== */

:root {
    /* CORES DA ÁREA SUSTENTABILIDADE */
    --primary: #059669;          /* Verde ecológico */
    --secondary: #10b981;        /* Verde natureza */
    --accent: #fbbf24;           /* Amarelo energia */
    --light: #ecfdf5;            /* Fundo verde claro */
    --gradient: linear-gradient(135deg, #059669, #10b981);
}

/* ===================================
   LAYOUT PRINCIPAL
   ================================== */
.economia-agua-chuveiro-calculator-section {
    margin-bottom: 3rem;
}

.economia-agua-chuveiro-header {
    text-align: center;
    margin-bottom: 2rem;
}

.economia-agua-chuveiro-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.economia-agua-chuveiro-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.economia-agua-chuveiro-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;
    overflow-x: hidden;
    max-width: 100%;
}

/* ===================================
   INPUTS E FORMULÁRIOS
   ================================== */
.economia-agua-chuveiro-dados-basicos {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.economia-agua-chuveiro-dados-basicos h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.economia-agua-chuveiro-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.economia-agua-chuveiro-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.economia-agua-chuveiro-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.economia-agua-chuveiro-input-group input,
.economia-agua-chuveiro-input-group select {
    width: 100%;
    padding: 0.8rem;
    padding-right: 3rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.economia-agua-chuveiro-input-group input:focus,
.economia-agua-chuveiro-input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.economia-agua-chuveiro-unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: 600;
    pointer-events: none;
    margin-top: 0.75rem;
}

/* ===================================
   BOTÕES
   ================================== */
.economia-agua-chuveiro-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.economia-agua-chuveiro-calculate-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.economia-agua-chuveiro-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.economia-agua-chuveiro-clear-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.economia-agua-chuveiro-clear-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ===================================
   EXEMPLOS
   ================================== */
.economia-agua-chuveiro-examples {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.economia-agua-chuveiro-examples h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.economia-agua-chuveiro-example-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.economia-agua-chuveiro-example-btn {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.economia-agua-chuveiro-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO
   ================================== */
.economia-agua-chuveiro-resultado {
    background: white;
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15);
    animation: fadeIn 0.5s ease-out;
}

.economia-agua-chuveiro-resultado h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.economia-agua-chuveiro-resultado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.economia-agua-chuveiro-resultado-item {
    background: var(--light);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--secondary);
}

.economia-agua-chuveiro-resultado-valor {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.economia-agua-chuveiro-resultado-label {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

.economia-agua-chuveiro-comparacao {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.economia-agua-chuveiro-comparacao h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.economia-agua-chuveiro-comparacao-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.economia-agua-chuveiro-cenario {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
}

.economia-agua-chuveiro-cenario.atual {
    background: #fee2e2;
    color: #dc2626;
}

.economia-agua-chuveiro-cenario.novo {
    background: #d1fae5;
    color: #059669;
}

.economia-agua-chuveiro-cenario-valor {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.economia-agua-chuveiro-steps {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-top: 1rem;
}

/* ===================================
   CONTEÚDO EDUCACIONAL COMPLETO - OBRIGATÓRIO
   ================================== */
.educational-content {
    margin-top: 3rem;
}

.educational-content h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

/* CARDS EDUCACIONAIS - ESSENCIAL PARA VISUAL */
.content-block {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.content-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent);
}

.content-block h2,
.content-block h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-block h4 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.content-block p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Elementos visuais especiais */
.formula-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.formula-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Steps e listas */
.steps-list {
    margin: 1rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-number {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #5a6c7d;
    line-height: 1.6;
}

.tips-list li:before {
    content: "💧";
    position: absolute;
    left: 0;
    top: 0;
}

/* Grid de exemplos */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.example-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.example-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.example-calculation {
    background: white;
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.example-calculation p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Grid de aplicações */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.application-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent);
}

.application-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.application-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.application-item p {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Lista de referências */
.references-list {
    list-style: none;
    padding: 0;
}

.references-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 0.9rem;
}

.references-list li:before {
    content: "📖";
    position: absolute;
    left: 0;
    top: 0;
}

.references-list em {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   CARDS ESPECÍFICOS PARA ADS - DINÂMICOS
   ================================== */
.calc-explanation,
.explanation {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.8s ease;
    border-left: 4px solid var(--accent);
}

.calc-explanation h3,
.explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid var(--light);
    padding-bottom: 0.8rem;
}

.calc-explanation h4,
.explanation h4 {
    color: var(--secondary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.calc-explanation p,
.explanation p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.calc-legal,
.legal-explanation {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid rgba(5, 150, 105, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.calc-legal h3,
.legal-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid rgba(5, 150, 105, 0.1);
    padding-bottom: 0.8rem;
}

.calc-legal h4,
.legal-explanation h4 {
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.calc-legal p,
.legal-explanation p {
    color: #065f46;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.calc-legal ul,
.legal-explanation ul {
    color: #065f46;
    margin-left: 1.5rem;
}

.calc-legal li,
.legal-explanation li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ===================================
   DADOS FORNECIDOS - DENTRO DOS CARDS DINÂMICOS
   ================================== */
.dados-fornecidos {
    background: linear-gradient(135deg, var(--light), rgba(5, 150, 105, 0.08)) !important;
    border-radius: 12px !important;
    padding: 1.8rem !important;
    margin: 1.5rem 0 !important;
    border: 2px solid rgba(5, 150, 105, 0.15) !important;
    border-left: 5px solid var(--primary) !important;
    box-shadow: inset 0 2px 8px rgba(5, 150, 105, 0.05) !important;
}

.dados-fornecidos p {
    margin: 0.8rem 0 !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    padding: 0.3rem 0 !important;
    border-bottom: 1px dotted rgba(5, 150, 105, 0.2) !important;
    display: block !important;
}

.dados-fornecidos p:last-child {
    border-bottom: none !important;
}

.dados-fornecidos strong {
    color: var(--secondary) !important;
    font-weight: 700 !important;
}

/* ===================================
   FÓRMULAS DESTACADAS (PARA CARDS DINÂMICOS)
   ================================== */
.calc-explanation .formula-highlight,
.calc-legal .formula-highlight,
.explanation .formula-highlight,
.legal-explanation .formula-highlight {
    background: linear-gradient(135deg, var(--light) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-explanation .formula-highlight::before,
.calc-legal .formula-highlight::before,
.explanation .formula-highlight::before,
.legal-explanation .formula-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.calc-explanation .formula-main,
.calc-legal .formula-main,
.explanation .formula-main,
.legal-explanation .formula-main {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.calc-explanation .formula-highlight p,
.calc-legal .formula-highlight p,
.explanation .formula-highlight p,
.legal-explanation .formula-highlight p {
    color: var(--secondary) !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

/* ===================================
   STEPS DENTRO DOS CARDS DINÂMICOS
   ================================== */
.economia-agua-chuveiro-steps {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
}

.economia-agua-chuveiro-steps p {
    margin: 0.8rem 0 !important;
    color: #065f46 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

.economia-agua-chuveiro-steps strong {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Animações para cards dinâmicos */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 768px) {
    .economia-agua-chuveiro-header h1 {
        font-size: 2rem;
    }
    
    .economia-agua-chuveiro-input-row {
        flex-direction: column;
    }
    
    .economia-agua-chuveiro-input-group {
        min-width: 100%;
    }
    
    .economia-agua-chuveiro-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .economia-agua-chuveiro-example-buttons {
        flex-direction: column;
    }
    
    .economia-agua-chuveiro-resultado-grid {
        grid-template-columns: 1fr;
    }
    
    .economia-agua-chuveiro-comparacao-grid {
        grid-template-columns: 1fr;
    }
    
    .examples-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .economia-agua-chuveiro-container {
        padding: 1rem;
    }
    
    .economia-agua-chuveiro-dados-basicos {
        padding: 1rem;
    }
    
    .content-block {
        padding: 1.5rem;
    }
}