/* assets/css/coordenadas-geograficas.css */
/* CSS ISOLADO - Apenas para Calculadora de Coordenadas Geográficas */

/* ===================================
   VARIÁVEIS CSS - CORES DE GEOCIÊNCIAS
   ================================== */
:root {
    --primary: #d63031;          /* Vermelho terra */
    --secondary: #0984e3;        /* Azul oceano */
    --accent: #fdcb6e;           /* Amarelo sol */
    --light: #ffeaa7;            /* Fundo amarelo claro */
    --gradient: linear-gradient(135deg, #d63031, #0984e3);
}

/* ===================================
   SEÇÃO DA CALCULADORA COORDENADAS
   ================================== */
.coordenadas-calculator-section {
    margin-bottom: 3rem;
}

.coordenadas-header {
    text-align: center;
    margin-bottom: 2rem;
}

.coordenadas-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.coordenadas-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.coordenadas-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;
}

.coordenadas-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SELEÇÃO DE SISTEMA
   ================================== */
.coordenadas-system-selection {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ===================================
   DADOS BÁSICOS COORDENADAS
   ================================== */
.coordenadas-dados-basicos {
    background: #e8f5e8;
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.coordenadas-dados-basicos h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.coordenadas-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.coordenadas-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coordenadas-input-group label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.coordenadas-input-group input,
.coordenadas-input-group select {
    padding: 0.8rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.coordenadas-input-group input:focus,
.coordenadas-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.2);
}

.coordenadas-input-group small {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* ===================================
   INPUTS DE COORDENADAS
   ================================== */
.coordenadas-coord-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.coordenadas-coord-input:focus-within {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.2);
}

.coordenadas-coord-input input {
    border: none;
    padding: 0.8rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
}

.coordenadas-coord-input input:focus {
    outline: none;
    transform: none;
    box-shadow: none;
}

.coordenadas-unit {
    background: var(--secondary);
    color: white;
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

/* ===================================
   COORDENADAS DMS (GRAUS, MINUTOS, SEGUNDOS)
   ================================== */
.coordenadas-dms-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.coordenadas-dms-group {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #ddd;
}

.coordenadas-dms-group h5 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.coordenadas-dms-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.coordenadas-dms-part {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 6px;
    padding: 0.3rem;
}

.coordenadas-dms-part input {
    width: 60px;
    border: none;
    padding: 0.4rem;
    text-align: center;
    font-size: 0.9rem;
}

.coordenadas-dms-part input:focus {
    outline: none;
}

.coordenadas-dms-part span {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1rem;
}

.coordenadas-dms-inputs select {
    padding: 0.5rem;
    border: 2px solid var(--secondary);
    border-radius: 6px;
    background: white;
    color: var(--secondary);
    font-weight: bold;
    min-width: 60px;
}

/* ===================================
   BOTÕES
   ================================== */
.coordenadas-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.coordenadas-btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.3);
}

.coordenadas-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.4);
}

.coordenadas-btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coordenadas-btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   RESULTADO COORDENADAS
   ================================== */
.coordenadas-resultado {
    background: var(--gradient);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    color: white;
    animation: slideInUp 0.5s ease;
}

.coordenadas-resultado h3 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.coordenadas-resultado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.coordenadas-resultado-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.coordenadas-resultado-item h4 {
    color: #f8f9fa;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.coordenadas-resultado-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.coordenadas-resultado-unit {
    color: #d5f4e6;
    font-size: 0.9rem;
}

/* ===================================
   EXPLICAÇÃO COORDENADAS
   ================================== */
.coordenadas-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.coordenadas-explanation h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.coordenadas-step {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.coordenadas-step h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.coordenadas-step p {
    color: #2c3e50;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.coordenadas-step code {
    background: var(--light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

/* ===================================
   EXEMPLOS
   ================================== */
.coordenadas-examples {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.coordenadas-examples h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.coordenadas-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.coordenadas-example-btn {
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--secondary);
    font-weight: 600;
}

.coordenadas-example-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.2);
}

.coordenadas-example-btn small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* ===================================
   AJUDA
   ================================== */
.coordenadas-help {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.coordenadas-help h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.coordenadas-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.coordenadas-help-item {
    text-align: center;
    padding: 1rem;
}

.coordenadas-help-item h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.coordenadas-help-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===================================
   CONTEÚDO EDUCACIONAL COORDENADAS
   ================================== */
.coordenadas-educational-content {
    margin-top: 3rem;
}

.coordenadas-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;
}

.coordenadas-content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.coordenadas-content-block p {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.coordenadas-content-block strong {
    color: var(--secondary);
}

.coordenadas-formula-display {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.coordenadas-formula-display h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.formula {
    text-align: center;
}

.formula p {
    background: white;
    border-radius: 6px;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

/* ===================================
   GRID DE EXEMPLOS NO CONTEÚDO
   ================================== */
.coordenadas-examples-grid-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.coordenadas-example-item {
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.coordenadas-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.coordenadas-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.coordenadas-example-item h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.coordenadas-example-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   EXEMPLO PRÁTICO DETALHADO
   ================================== */
.coordenadas-example-solution {
    background: var(--light);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid var(--secondary);
}

.coordenadas-example-solution h4 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.coordenadas-solution-step {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary);
}

.coordenadas-solution-step h5 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.coordenadas-solution-step p {
    color: #2c3e50;
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.coordenadas-solution-final {
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.coordenadas-solution-final h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.coordenadas-solution-final p {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

/* ===================================
   GRID DE DICAS
   ================================== */
.coordenadas-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.coordenadas-tip-item {
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.coordenadas-tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.coordenadas-tip-item h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.coordenadas-tip-item p {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   FAQ COORDENADAS GEOGRÁFICAS
   ================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: var(--light);
    color: var(--primary);
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    list-style: none;
}

.faq-question:hover {
    background: var(--secondary);
    color: white;
}

.faq-question::marker {
    display: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    color: #444;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===================================
   REFERÊNCIAS COORDENADAS
   ================================== */
.references-container {
    margin-top: 1.5rem;
}

.references-list {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: var(--light);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.accuracy-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.accuracy-note h5 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.accuracy-note p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===================================
   CREDIBILIDADE COORDENADAS
   ================================== */
.credibilidade-container {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    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: 2rem;
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
}

.credibilidade-content {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

.credibilidade-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ===================================
   RESPONSIVIDADE COORDENADAS
   ================================== */
@media (max-width: 768px) {
    .coordenadas-header h1 {
        font-size: 2rem;
    }
    
    .coordenadas-container {
        padding: 1.5rem;
    }
    
    .coordenadas-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .coordenadas-input-group {
        min-width: auto;
    }
    
    .coordenadas-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .coordenadas-btn-primary,
    .coordenadas-btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .coordenadas-dms-inputs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .coordenadas-dms-part {
        justify-content: center;
    }
    
    .coordenadas-resultado-grid {
        grid-template-columns: 1fr;
    }
    
    .coordenadas-examples-grid,
    .coordenadas-help-grid {
        grid-template-columns: 1fr;
    }
    
    .coordenadas-examples-grid-content,
    .coordenadas-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .coordenadas-content-block {
        padding: 1.5rem;
    }
    
    .coordenadas-content-block h2 {
        font-size: 1.5rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .coordenadas-container {
        padding: 1rem;
    }
    
    .coordenadas-dados-basicos {
        padding: 1rem;
    }
    
    .coordenadas-dms-part input {
        width: 50px;
    }
    
    .coordenadas-resultado,
    .coordenadas-explanation {
        padding: 1.5rem;
    }
    
    .coordenadas-content-block {
        padding: 1rem;
    }
    
    .coordenadas-formula-display {
        padding: 1rem;
    }
    
    .credibilidade-container {
        padding: 1.5rem;
    }
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   CLASSE HIDDEN PARA CONTROLE DE EXIBIÇÃO
   ================================== */
.hidden {
    display: none !important;
}

/* ===================================
   CORREÇÃO DO TÍTULO - ESPECIFICIDADE MÁXIMA
   ================================== */
body[data-page="coordenadas-geograficas"] .coordenadas-header h1 {
    color: #d63031 !important;
    background: transparent !important;
    -webkit-text-fill-color: #d63031 !important;
}


/*Trecho responsável por apagar o ad educacional enquanto estiver no google, depois pode reinserir*/
.ads-educational-middle.enhanced-ad {
    display: none !important;
}