/* assets/css/coordenadas-polares.css */
/* CSS ISOLADO - Apenas para Calculadora de Coordenadas Polares */
/* CORES DA GEOMETRIA: Verde Construção (#11998e), Verde Espacial (#38ef7d), Amarelo Medidas (#ffd32a) */

/* ===================================
   SEÇÃO DA CALCULADORA COORDENADAS POLARES
   ================================== */
.polar-calculator-section {
    margin-bottom: 3rem;
}

.polar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.polar-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.polar-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.polar-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;
}

.polar-inputs h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SISTEMA DE ABAS ESPECÍFICO POLAR
   ================================== */
.polar-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 1rem;
}

.polar-tab-btn {
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    color: #5a6c7d;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
}

.polar-tab-btn:hover {
    background: #11998e;
    color: white;
    border-color: #11998e;
    transform: translateY(-2px);
}

.polar-tab-btn.active {
    background: #11998e;
    color: white;
    border-color: #11998e;
    box-shadow: 0 3px 10px rgba(17, 153, 142, 0.3);
}

/* ===================================
   CONTEÚDO DAS ABAS POLAR
   ================================== */
.polar-tab-content {
    display: none;
}

.polar-tab-content.active {
    display: block;
    animation: fadeInPolarTab 0.3s ease;
}

@keyframes fadeInPolarTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   INPUTS POLAR
   ================================== */
.polar-conversion-input,
.polar-complex-input,
.polar-trig-input,
.polar-operations-input,
.polar-graph-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e6ed;
}

.polar-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #e8fff8;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
}

.polar-input-group:hover {
    border-color: #11998e;
    transform: translateY(-2px);
}

.polar-input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-align: center;
}

.polar-input-group input {
    width: 100px;
    padding: 0.8rem;
    border: 2px solid #11998e;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
}

.polar-input-group input:focus {
    outline: none;
    border-color: #11998e;
    transform: scale(1.05);
    background: #e8fff8;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.15);
}

.polar-input-group input:valid:not(:placeholder-shown) {
    border-color: #11998e;
    background: #e8fff8;
}

.polar-unit-select {
    padding: 0.3rem;
    border: 1px solid #11998e;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
    color: #11998e;
    font-weight: 600;
    margin-top: 0.3rem;
}

.polar-unit {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #11998e;
    font-weight: 600;
}

.polar-number-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #e8fff8;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
}

.polar-number-input {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: #11998e;
}

.polar-number-input input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid #11998e;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    background: white;
}

.polar-number-input span {
    color: #11998e;
    font-size: 1rem;
    font-weight: bold;
}

.polar-operation-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.polar-operation-select,
.polar-equation-select {
    padding: 0.8rem;
    border: 2px solid #11998e;
    border-radius: 6px;
    background: white;
    color: #11998e;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.polar-operation-symbol {
    font-size: 1.8rem;
    font-weight: bold;
    color: #11998e;
    min-width: 40px;
    text-align: center;
    padding: 0.5rem;
}

/* ===================================
   RESULTADO DISPLAY POLAR
   ================================== */
.polar-result-display {
    background: #e8fff8;
    border: 2px solid #11998e;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.polar-result-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.2);
}

.polar-result-display.wide {
    min-width: 300px;
    padding: 1rem;
}

.polar-result-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #11998e;
    font-family: 'Courier New', monospace;
}

.polar-result-value.large {
    font-size: 1.8rem;
}

.polar-result-unit {
    font-size: 0.9rem;
    color: #11998e;
    font-weight: 600;
}

/* ===================================
   RESULTADOS ESPECÍFICOS POLAR
   ================================== */
.polar-cartesian-result,
.polar-polar-result,
.polar-complex-resultado,
.polar-trig-resultado,
.polar-graph-resultado {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.polar-coord-item,
.polar-complex-item,
.polar-trig-item,
.polar-graph-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #11998e;
}

.polar-coord-label,
.polar-complex-label,
.polar-trig-label,
.polar-graph-label {
    font-size: 0.9rem;
    color: #11998e;
    font-weight: 600;
}

/* ===================================
   FÓRMULA ESPECÍFICA POLAR
   ================================== */
.polar-formula {
    background: #e8fff8;
    border: 2px solid #11998e;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #11998e;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLOS E AJUDA POLAR
   ================================== */
.polar-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.polar-examples.hidden {
    display: none;
}

.polar-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.polar-example-btn {
    background: #e8fff8;
    border: 2px solid #11998e;
    color: #11998e;
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.polar-example-btn:hover {
    background: #11998e;
    color: white;
    transform: translateY(-2px);
}

.polar-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    transition: all 0.3s ease;
}

.polar-help.hidden {
    display: none;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO POLAR
   ================================== */
.polar-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8fff8;
    border: 2px solid #11998e;
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.polar-explanation h3 {
    color: #11998e;
    margin-bottom: 1rem;
    text-align: center;
}

.polar-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #11998e;
}

.polar-step h4 {
    color: #11998e;
    margin-bottom: 0.5rem;
}

.polar-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   CARDS DINÂMICOS COMPATIBILIDADE (MANTIDO INTACTO)
   ================================== */
/* Classes para cards de explicação dinâmicos criados via JavaScript */
.explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8fff8;
    border: 2px solid #11998e;
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.explanation h3 {
    color: #11998e;
    margin-bottom: 1rem;
    text-align: center;
}

.explanation h4 {
    color: #11998e;
    margin-bottom: 0.5rem;
}

.explanation p {
    margin: 0.3rem 0;
    color: #444;
}

/* Classes para cards de fundamentação dinâmicos */
.legal-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8fff8;
    border: 2px solid #11998e;
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.calc-legal {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8fff8;
    border: 2px solid #11998e;
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.legal-explanation h3,
.calc-legal h3 {
    color: #11998e;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-explanation h4,
.calc-legal h4 {
    color: #11998e;
    margin-bottom: 0.8rem;
}

.legal-explanation p,
.calc-legal p {
    margin: 0.5rem 0;
    color: #11998e;
    line-height: 1.6;
}

/* ===================================
   CONTEÚDO EDUCACIONAL POLAR
   ================================== */
.polar-educational-content {
    margin-top: 3rem;
}

.polar-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;
}

.polar-content-block h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #11998e;
    padding-bottom: 0.5rem;
}

.polar-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.polar-content-block strong {
    color: #11998e;
}

/* ===================================
   FORMULA DISPLAY POLAR
   ================================== */
.polar-formula-display {
    background: #e8fff8;
    border: 2px solid #11998e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.polar-formula-display h4 {
    color: #11998e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.polar-formula-display .formula p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #11998e;
    font-weight: 600;
}

/* ===================================
   GRIDS EXEMPLOS POLAR
   ================================== */
.polar-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.polar-example-item {
    background: #e8fff8;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.polar-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #11998e;
}

.polar-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #11998e;
}

.polar-example-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.polar-example-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   SEÇÕES ADICIONAIS (FAQ, REFERÊNCIAS, CREDIBILIDADE)
   ================================== */

/* Content Block - Estilo base para FAQ, Referências e Credibilidade */
.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 h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #11998e;
    padding-bottom: 0.5rem;
}

/* ===== FAQ CONTAINER ===== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #11998e;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.1);
}

.faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border-radius: 8px;
}

.faq-question:hover {
    background: #e8fff8;
    color: #11998e;
}

.faq-item[open] .faq-question {
    background: #11998e;
    color: white;
    border-bottom: 1px solid #11998e;
    border-radius: 8px 8px 0 0;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e0e6ed;
}

.faq-answer p {
    margin: 0;
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer strong {
    color: #11998e;
}

/* ===== REFERÊNCIAS LISTA (MANTENDO CLASSES FUNCIONAIS) ===== */
.referencias-lista {
    margin-top: 1.5rem;
}

.referencia-item {
    background: #e8fff8;
    border: 1px solid #11998e;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #11998e;
}

.referencia-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.15);
}

.referencia-item strong {
    color: #11998e;
    font-weight: 600;
}

/* ===== CREDIBILIDADE CONTAINER ===== */
.credibilidade-container {
    background: linear-gradient(135deg, #e8fff8 0%, #e8fff8 100%);
    border: 2px solid #11998e;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.1);
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credibilidade-icon {
    font-size: 2.5rem;
    color: #11998e;
}

.credibilidade-title {
    color: #11998e;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.credibilidade-content {
    color: #11998e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: #11998e;
    font-weight: 700;
    font-size: 1.2rem;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: #11998e;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
}

.credibilidade-badge:hover {
    background: #38ef7d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 239, 125, 0.4);
}

/* ===================================
   ANIMAÇÕES POLAR
   ================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE POLAR
   ================================== */
@media (max-width: 768px) {
    .polar-header h1 {
        font-size: 2rem;
    }
    
    .polar-tabs {
        gap: 0.3rem;
    }
    
    .polar-tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 85px;
    }
    
    .polar-conversion-input,
    .polar-complex-input,
    .polar-trig-input,
    .polar-operations-input,
    .polar-graph-input {
        gap: 1rem;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .polar-input-group {
        padding: 0.8rem;
        min-width: 100px;
    }
    
    .polar-input-group input {
        width: 80px;
        font-size: 0.9rem;
    }
    
    .polar-number-input input {
        width: 50px;
        font-size: 0.8rem;
    }
    
    .polar-operation-symbol {
        font-size: 1.5rem;
        min-width: 30px;
    }
    
    .polar-result-display {
        min-width: 120px;
        padding: 1.2rem;
    }
    
    .polar-result-display.wide {
        min-width: 250px;
    }
    
    .polar-examples-grid {
        grid-template-columns: 1fr;
    }

    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .polar-header h1 {
        font-size: 1.8rem;
    }
    
    .polar-container {
        padding: 1rem;
    }
    
    .polar-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .polar-tab-btn {
        width: 140px;
    }
    
    .polar-input-group {
        min-width: 90px;
        padding: 0.6rem;
    }
    
    .polar-input-group input {
        width: 70px;
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .polar-number-input input {
        width: 45px;
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    .polar-result-display {
        min-width: 100px;
        padding: 1rem;
    }
    
    .polar-result-value {
        font-size: 1.2rem;
    }
    
    .polar-result-value.large {
        font-size: 1.5rem;
    }
    
    .polar-result-display.wide {
        min-width: 200px;
    }
    
    .polar-coord-item,
    .polar-complex-item,
    .polar-trig-item,
    .polar-graph-item {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .polar-example-icon {
        font-size: 2rem;
    }
    
    .polar-operation-select,
    .polar-equation-select {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .content-block {
        padding: 1.5rem;
    }
    
    .content-block h3 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .credibilidade-container {
        padding: 1.5rem;
    }
    
    .credibilidade-title {
        font-size: 1.2rem;
    }
    
    .credibilidade-content {
        font-size: 1rem;
    }
}