/* style.css - ADAPTADO PARA RESPONSIVIDADE TOTAL */

/* Reset + Fundo da Página */
body {
    margin: 0;
    background: #000;
    font-family: 'Poppins', sans-serif;
    display: flex; /* Mantém o body como flex para centralizar o conteúdo */
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Evita barra de rolagem horizontal */
}

/* REMOÇÃO DO WRAPPER FIXO (fixed-screen) */
/* O conteúdo agora se ajustará à largura da tela */

/* ==================================================================== */
/* ESTILOS DA PÁGINA INICIAL (index.html) - ADAPTADO PARA RESPONSIVIDADE */
/* ==================================================================== */

/* CONTAINER PRINCIPAL DA PÁGINA N1 */
.n1-wrapper {
    position: relative;
    width: 100vw; /* Ocupa 100% da largura da viewport */
    height: 100vh; /* Ocupa 100% da altura da viewport */
    max-width: 1920px; /* Limita o crescimento em telas muito grandes */
    margin: 0 auto;
    overflow: hidden;
}

/* IMAGEM DO DESIGN */
.n1-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* preenche a tela mantendo a proporção */
}

/* VÍDEO SOBREPOSTO (DENTRO DA IMAGEM) - POSICIONAMENTO RELATIVO À TELA */
.video-n1 {
    position: absolute;
    /* Usando porcentagem para manter a proporção e posição relativa */
    top: 60%; /* Ajustado para melhor visualização em telas menores */
    left: 50%;
    transform: translateX(-50%);
    width: 60vw; /* Largura relativa à viewport */
    max-width: 1280px; /* Limite máximo de largura */
    height: auto;
    border-radius: 12px;
    display: block;
}

/* BOTÃO ABAIXO DE TUDO */
.btn-n1-link {
    display: block;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn-n1 {
    display: inline-block;
    margin: 40px auto 80px auto;
    padding: 20px 100px; /* Reduzido para melhor visualização em telas menores */
    font-size: 2rem; /* Reduzido para melhor visualização em telas menores */
    max-width: 90%;
    border-radius: 30px;
    border: none;
    background: white;
    color: #5820a5;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

/* EFEITO HOVER DO BOTÃO */
.btn-n1:hover {
    background: #f6f1ff;
    transform: scale(1.05);
}

/* ==================================================================== */
/* ESTILOS DAS PÁGINAS DE QUESTÕES E RESULTADOS (pagina2.html, resultado.html) */
/* ==================================================================== */

/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ajuste do body para as páginas de questões */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* CONTAINER PRINCIPAL DAS QUESTÕES - AGORA RESPONSIVO */
.container {
    width: 95%; /* Ocupa 95% da largura da tela */
    max-width: 1200px; /* Limite máximo para telas grandes */
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Barra de Progresso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Cabeçalho */
.header {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.6rem;
    opacity: 0.95;
    margin-bottom: 5px;
    font-weight: 600;
}

.page-info {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* Container de Questões */
.questions-container {
    padding: 30px 20px;
}

.question-block {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question-number {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.question-text {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Opções de Resposta */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    padding: 15px 20px;
    border: 2px dashed #d1a7f0;
    background: white;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
}

.option-btn:hover {
    background: #f0e6ff;
    border-color: #764ba2;
    transform: translateX(5px);
}

.option-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
    border-style: solid;
}

/* Navegação */
.navigation {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-next,
.btn-back,
.btn-submit,
.btn-restart {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-next {
    background: linear-gradient(135deg, #26d0ce 0%, #1a2980 100%);
    color: white;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 208, 206, 0.4);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #26d0ce 0%, #1a2980 100%);
    color: white;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 208, 206, 0.4);
}

.btn-restart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-download-pdf {
    background: linear-gradient(135deg, #26d0ce 0%, #1a2980 100%);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.btn-download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 208, 206, 0.4);
}

/* Formulário */
.form-container {
    padding: 40px 30px;
}

.form-container h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Resultado */
.result-container {
    padding: 40px 30px;
}

.result-container h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.result-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.result-summary h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.top-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.type-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.type-card h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.type-card p {
    font-size: 1rem;
    opacity: 0.9;
}

.result-details {
    margin-bottom: 30px;
}
.result-details h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.scores-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.score-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.score-item strong {
    color: #667eea;
    font-size: 1.1rem;
}

.result-info {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.result-info p {
    color: #856404;
    margin-bottom: 10px;
    line-height: 1.7;
}

.result-info p:last-child {
    margin-bottom: 0;
}

/* Rodapé */
.footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    width: 100%;
}

.footer p {
    margin: 5px 0;
}

.credits {
    font-size: 0.85rem;
    font-style: italic;
}

/* MEDIA QUERIES PARA RESPONSIVIDADE */

/* Ajustes para tablets e telas menores que 900px */
@media (max-width: 900px) {
    /* Primeira Página */
    .video-n1 {
        top: 65%; /* Ajusta a posição do vídeo */
        width: 80vw; /* Aumenta a largura do vídeo */
    }
    .btn-n1 {
        font-size: 1.5rem;
        padding: 15px 60px;
        margin: 20px auto 40px auto;
    }

    /* Páginas de Questões */
    .header h1 {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 1.4rem;
    }
    .question-block {
        padding: 20px;
    }
    .option-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    .scores-table {
        grid-template-columns: 1fr; /* Coluna única para pontuações */
    }
}

/* Ajustes para celulares e telas menores que 480px */
@media (max-width: 480px) {
    /* Primeira Página */
    .video-n1 {
        top: 70%; /* Ajusta a posição do vídeo */
        width: 90vw; /* Ocupa quase toda a largura */
    }
    .btn-n1 {
        font-size: 1.2rem;
        padding: 10px 40px;
        margin: 10px auto 20px auto;
    }

    /* Páginas de Questões */
    body {
        padding: 10px;
    }
    .container {
        border-radius: 10px;
    }
    .header {
        padding: 20px 10px 10px;
    }
    .header h1 {
        font-size: 1.4rem;
    }
    .question-text {
        font-size: 0.9rem;
    }
    .btn-next, .btn-back {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* ==================================================================== */
/* ESTILOS PARA INFORMAÇÕES DE CONTATO */
/* ==================================================================== */

.form-info {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.form-info p {
    margin: 10px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.8;
}

.form-info strong {
    color: #667eea;
    font-weight: 600;
}

.form-info a {
    color: #26d0ce;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.form-info a:hover {
    color: #1a2980;
    text-decoration: underline;
}

.form-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-footer {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.contact-footer p {
    margin: 10px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.8;
}

.contact-footer strong {
    color: #667eea;
    font-weight: 600;
}

.contact-footer a {
    color: #26d0ce;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-footer a:hover {
    color: #1a2980;
    text-decoration: underline;
}

/* Ícones Sociais */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #667eea;
    transform: scale(1.1);
}

.social-icon img {
    width: 40px;
    height: 40px;
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon img {
        width: 35px;
        height: 35px;
    }
}
