/* assets/css/escala-desenho.css */
/* CSS ISOLADO - Apenas para Calculadora de Escala de Desenho */

/* ===================================
   VARIÁVEIS DE CORES - ARTES
   ================================== */
:root {
    --primary: #e91e63;          /* Rosa criativo */
    --secondary: #9c27b0;        /* Roxo artístico */
    --accent: #ff9800;           /* Laranja inspiração */
    --light: #fce4ec;            /* Fundo rosa claro */
    --gradient: linear-gradient(135deg, #e91e63, #9c27b0);
}

/* ===================================
   SEÇÃO DA CALCULADORA ESCALA DE DESENHO
   ================================== */
.escala-calculator-section {
    margin-bottom: 3rem;
}

.escala-header {
    text-align: center;
    margin-bottom: 2rem;
}

.escala-header h1 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.3);
}

.escala-header p {
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.escala-calculator-container {
    background: linear-gradient(135deg, var(--light) 0%, #f8e1e7 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.escala-calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    border-radius: 20px 20px 0 0;
}

.escala-calculator {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.escala-calculator h3 {
    color: var(--primary);
    margin-bottom: 1.8rem;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--light);
    padding-bottom: 0.8rem;
}

/* ===================================
   INPUTS E CONTROLES - ESCALA DE DESENHO
   ================================== */
.escala-input-group {
    margin-bottom: 1.8rem;
}

.escala-input-group label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.escala-help-text {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
    font-style: italic;
}

.escala-input-group input,
.escala-input-group select {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.escala-input-group input:focus,
.escala-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    transform: translateY(-2px);
}

.escala-input-group input:invalid {
    border-color: #dc3545;
}

/* Input com unidade */
.escala-input-with-unit {
    display: flex;
    gap: 0.5rem;
}

.escala-input-with-unit input {
    flex: 2;
}

.escala-input-with-unit select {
    flex: 1;
    min-width: 80px;
}

/* Inputs em linha */
.escala-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Grupos de operação */
.escala-operation-group {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.escala-operation-group:hover {
    background: var(--light);
    border-color: var(--primary);
}

/* ===================================
   BOTÕES - ESCALA DE DESENHO
   ================================== */
.escala-buttons {
    text-align: center;
    margin: 2rem 0;
}

.escala-calculate-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.escala-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.6);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.escala-calculate-btn:active {
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO - ESCALA DE DESENHO
   ================================== */
.escala-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
}

.escala-result h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.escala-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.escala-result-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.escala-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
    border-color: var(--primary);
}

.escala-result-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.escala-result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ===================================
   TABELA DE CONVERSÕES
   ================================== */
.escala-conversions {
    background: linear-gradient(135deg, var(--light), #f8e1e7);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.escala-conversions h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.escala-conversions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.escala-conversions-table th,
.escala-conversions-table td {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.escala-conversions-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.escala-conversions-table td {
    color: #2c3e50;
    font-size: 0.9rem;
}

.escala-conversions-table tr:hover td {
    background: var(--light);
}

/* ===================================
   FÓRMULA E DETALHES - ESCALA DE DESENHO
   ================================== */
.escala-formula {
    background: var(--light);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1rem;
    color: #2c3e50;
}

.escala-formula strong {
    color: var(--primary);
}

/* ===================================
   EXEMPLOS E AJUDA - ESCALA DE DESENHO
   ================================== */
.escala-examples {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.escala-examples p {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
}

.escala-example-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.escala-example-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.escala-help {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light), #f8e1e7);
    border-radius: 10px;
    border: 1px solid var(--primary);
}

.escala-help p {
    margin: 0;
    color: var(--secondary);
}

/* ===================================
   EXPLICAÇÃO DETALHADA - ESCALA DE DESENHO
   ================================== */
.escala-explanation {
    margin-top: 2rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--light) 0%, #f8e1e7 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
}

.escala-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.8rem;
}

.escala-step {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.escala-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
    border-color: var(--primary);
}

.escala-step h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.escala-step p {
    margin: 0.5rem 0;
    color: #2c3e50;
    line-height: 1.6;
}

.escala-step strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   CARDS DINÂMICOS - COMO FOI CALCULADO E FUNDAMENTAÇÃO
   ================================== */

/* Card explicação dinâmico */
.calc-explanation {
    background: linear-gradient(135deg, var(--light) 0%, #f8e1e7 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
}

.calc-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.8rem;
}

/* Card fundamentação dinâmico */
.calc-legal {
    background: linear-gradient(135deg, var(--light) 0%, #f8e1e7 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
}

.calc-legal h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.8rem;
}

/* Dados fornecidos nos cards dinâmicos */
.dados-fornecidos p {
    margin: 0.3rem 0;
    padding-left: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* ===================================
   CONTEÚDO EDUCACIONAL - ESCALA DE DESENHO
   ================================== */
.escala-educational-content {
    margin-top: 3rem;
}

.escala-content-block {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.escala-content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid var(--light);
    padding-bottom: 1rem;
}

.escala-content-block p {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

/* ===================================
   GRID DE EXEMPLOS - ESCALA DE DESENHO
   ================================== */
.escala-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.escala-example-card {
    background: linear-gradient(135deg, var(--light), #f8e1e7);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.1);
}

.escala-example-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.25);
    border-color: var(--accent);
}

.escala-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.escala-example-card h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.escala-example-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   FÓRMULA DISPLAY - ESCALA DE DESENHO
   ================================== */
.escala-formula-display {
    background: linear-gradient(135deg, var(--light), #f8e1e7);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.escala-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.formula {
    text-align: center;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
}

.formula p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.formula strong {
    color: var(--primary);
}

/* ===================================
   STEPS E CONCEITOS - ESCALA DE DESENHO
   ================================== */
.escala-step-by-step {
    margin: 2rem 0;
}

.escala-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light), #ffffff);
    border-radius: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.1);
}

.escala-step-number {
    background: var(--gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.escala-step-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.escala-step-content p {
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
}

.escala-concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.escala-concept-card {
    background: linear-gradient(135deg, var(--light), #f8e1e7);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.1);
}

.escala-concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
    border-color: var(--accent);
}

.escala-concept-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.escala-concept-card p {
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.escala-highlight {
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.escala-highlight p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===================================
   REFERÊNCIAS - NOVA SEÇÃO FORMATADA
   ================================== */
.referencias-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.referencia-item {
    background: white;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    line-height: 1.6;
    color: #2c3e50;
    font-size: 0.95rem;
}

.referencia-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
    border-left-color: var(--accent);
}

.referencia-item:last-child {
    margin-bottom: 0;
}

.accuracy-note {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.accuracy-note h5 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accuracy-note p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* ===================================
   RESPONSIVIDADE - ESCALA DE DESENHO
   ================================== */
@media (max-width: 768px) {
    .escala-header h1 {
        font-size: 2rem;
    }
    
    .escala-calculator-container {
        padding: 1.5rem;
    }
    
    .escala-calculator {
        padding: 1.5rem;
    }
    
    .escala-result-grid {
        grid-template-columns: 1fr;
    }
    
    .escala-examples-grid,
    .escala-concepts-grid {
        grid-template-columns: 1fr;
    }
    
    .escala-inputs-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .escala-step {
        flex-direction: column;
        text-align: center;
    }
    
    .escala-step-number {
        align-self: center;
    }
    
    .escala-input-with-unit {
        flex-direction: column;
    }
    
    .escala-conversions-table {
        font-size: 0.8rem;
    }
    
    .escala-conversions-table th,
    .escala-conversions-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .escala-content-block {
        padding: 1.5rem;
    }
    
    .escala-example-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .escala-calculate-btn {
        width: 100%;
        padding: 1.2rem;
    }
    
    .escala-result-value {
        font-size: 1.4rem;
    }
}

/* ===================================
   ANIMAÇÕES - ESCALA DE DESENHO
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.escala-result-value {
    animation: pulse 2s infinite;
}

/* ===================================
   UTILS - ESCALA DE DESENHO
   ================================== */
.hidden {
    display: none !important;
}

.escala-text-center {
    text-align: center;
}

.escala-mb-2 {
    margin-bottom: 2rem;
}

/* ===================================
   EXPLICAÇÃO DETALHADA COM FUNDAMENTAÇÃO TÉCNICA - ESCALA DE DESENHO
   ================================== */
.escala-detailed-explanation {
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--light) 0%, #f8e1e7 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
}

.escala-detailed-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.8rem;
}

.escala-technical-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.escala-technical-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.escala-technical-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
    border-color: var(--primary);
}

.escala-technical-section h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.8rem;
}

.escala-technical-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.escala-technical-item:hover {
    background: #f8e1e7;
    transform: translateY(-2px);
}

.escala-technical-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.escala-technical-content p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 0.95rem;
}

.escala-technical-content strong {
    color: var(--primary);
    font-weight: 600;
}