/* assets/css/conversao-bases.css */
/* CSS ISOLADO - Apenas para Calculadora de Conversão de Bases */
/* CORES COMPUTAÇÃO APLICADAS - MANTENDO TODAS AS CLASSES FUNCIONAIS */

/* ===== VARIÁVEIS COMPUTAÇÃO ===== */
:root {
    --primary: #2d3436;          /* Preto código */
    --secondary: #00b894;        /* Verde terminal */
    --accent: #0984e3;           /* Azul digital */
    --light: #f8f9fa;            /* Fundo cinza claro */
    --gradient: linear-gradient(135deg, #2d3436, #00b894);
    
    /* Cores complementares */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0ea5e9;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #d1d5db;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
}

/* ===================================
   SEÇÃO DA CALCULADORA BASES
   ================================== */
.bases-calculator-section {
    margin-bottom: 3rem;
}

.bases-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bases-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.bases-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.bases-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(45, 52, 54, 0.1);
    border: 1px solid var(--border);
}

/* ===================================
   INPUT SECTION
   ================================== */
.bases-input-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
}

.bases-input-group {
    flex: 1;
    min-width: 200px;
}

.bases-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.bases-input-group input,
.bases-input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.bases-input-group input:focus,
.bases-input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.bases-calculate-btn,
.bases-clear-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.bases-calculate-btn {
    background: var(--gradient);
    color: white;
}

.bases-calculate-btn:hover {
    background: linear-gradient(135deg, #00b894, #2d3436);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.bases-clear-btn {
    background: var(--light);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.bases-clear-btn:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

/* ===================================
   RESULTADO BASES
   ================================== */
.bases-resultado {
    background: linear-gradient(135deg, var(--light), rgba(45, 52, 54, 0.05));
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.bases-resultado h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.bases-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bases-result-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bases-result-item:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.bases-result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bases-result-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.bases-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.bases-info-item {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   EXPLICAÇÃO BASES
   ================================== */
.bases-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.1), rgba(9, 132, 227, 0.05));
    border: 2px solid var(--accent);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.bases-explanation h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ===================================
   CONTEÚDO EDUCACIONAL BASES
   ================================== */
.bases-educational-content {
    margin-top: 3rem;
}

.bases-content-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(45, 52, 54, 0.08);
    border: 1px solid var(--border);
}

.bases-content-block h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.bases-content-block p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Sistemas de Bases Grid */
.bases-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bases-system-card {
    background: linear-gradient(135deg, var(--light), var(--gray-100));
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bases-system-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.15);
}

.bases-system-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bases-system-card h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.bases-system-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.bases-example {
    font-family: 'Courier New', monospace;
    background: var(--primary);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Aplicações Grid */
.bases-applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bases-app-card {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(0, 184, 148, 0.05));
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.bases-app-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.2);
}

.bases-app-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bases-app-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.bases-app-card p {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Step by Step */
.bases-step-by-step {
    margin-top: 2rem;
}

.bases-step {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

.bases-step-number {
    background: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.bases-step-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.bases-step-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Fórmulas Grid */
.bases-formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bases-formula-card {
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.1), rgba(9, 132, 227, 0.05));
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bases-formula-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.2);
}

.bases-formula-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.bases-formula {
    font-family: 'Courier New', monospace;
    background: var(--accent);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.bases-formula-card p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   EXEMPLOS E AJUDA
   ================================== */
.bases-examples,
.bases-help {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light), var(--gray-100));
    border-radius: 15px;
    border: 1px solid var(--border);
}

.bases-examples h2,
.bases-help h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}

.bases-examples-grid,
.bases-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.bases-example-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bases-example-item:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.bases-example-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.bases-example-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.bases-example-btn {
    background: linear-gradient(135deg, var(--accent), #0369a1);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.bases-example-btn:hover {
    background: linear-gradient(135deg, #0369a1, var(--accent));
    transform: translateY(-1px);
}

.bases-help-item {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.bases-help-item:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.bases-help-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.bases-help-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.bases-help-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================
   FAQ, CREDIBILIDADE E REFERÊNCIAS - COMPUTAÇÃO
   ================================== */
.content-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 25px rgba(45, 52, 54, 0.08);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: 0 10px 35px rgba(45, 52, 54, 0.12);
    transform: translateY(-2px);
}

.content-block h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(45, 52, 54, 0.1);
}

.faq-item[open] {
    box-shadow: 0 8px 25px rgba(45, 52, 54, 0.15);
}

.faq-question {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.5rem;
    background: var(--white);
}

.faq-answer p {
    margin: 0.8rem 0;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Credibilidade Styles */
.credibilidade-container {
    background: linear-gradient(135deg, var(--light), rgba(45, 52, 54, 0.05));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credibilidade-icon {
    font-size: 2.5rem;
    color: var(--secondary);
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.credibilidade-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.credibilidade-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(45, 52, 54, 0.2);
}

/* Referências Styles */
.referencias-container {
    margin-top: 1.5rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.referencia-item {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.5rem;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.referencia-item:hover {
    background: rgba(45, 52, 54, 0.08);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(45, 52, 54, 0.1);
}

.referencia-item::before {
    content: "📖";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.referencia-item em {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* ===================================
   RESPONSIVIDADE BASES
   ================================== */
@media (max-width: 768px) {
    .bases-header h1 {
        font-size: 2rem;
    }
    
    .bases-header p {
        font-size: 1rem;
    }
    
    .bases-container {
        padding: 1.5rem;
    }
    
    .bases-input-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bases-input-group {
        min-width: unset;
    }
    
    .bases-results-grid {
        grid-template-columns: 1fr;
    }
    
    .bases-systems-grid,
    .bases-applications-grid,
    .bases-formulas-grid {
        grid-template-columns: 1fr;
    }
    
    .bases-examples-grid,
    .bases-help-grid {
        grid-template-columns: 1fr;
    }
    
    .bases-step {
        flex-direction: column;
        text-align: center;
    }
    
    .bases-step-number {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .bases-help-item {
        flex-direction: column;
        text-align: center;
    }
    
    .bases-help-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .content-block {
        padding: 1.5rem;
    }

    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .bases-content-block {
        padding: 1.5rem;
    }
    
    .bases-examples,
    .bases-help {
        padding: 1.5rem;
    }
    
    .bases-result-value {
        font-size: 1.2rem;
    }

    .content-block {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    .credibilidade-container {
        padding: 1.5rem;
    }

    .credibilidade-badges {
        gap: 0.5rem;
    }

    .credibilidade-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}