/* ============================================
   ÁNGEL GUARDIÁN - CSS COMPACTO v2.6.0
   Espaçamentos reduzidos + Zero overflow
   ============================================ */

/* RESET ANTI-OVERFLOW */
*, *::before, *::after {
    box-sizing: border-box !important;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

/* CONTAINER PRINCIPAL - COMPACTO */
.angel-guardian-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    background: #000000;
    padding: 15px 10px; /* REDUZIDO de 20px */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden !important;
}

/* WRAPPER - COMPACTO */
.angel-test-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px; /* REDUZIDO de 20px */
}

/* TÍTULO PRINCIPAL - COMPACTO */
.main-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem); /* REDUZIDO */
    color: #fff;
    text-align: center;
    margin-bottom: 10px; /* REDUZIDO de 20px */
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
    font-weight: 900;
}

/* SUBTÍTULO - COMPACTO */
.subtitle-container {
    text-align: center;
    margin-bottom: 15px; /* REDUZIDO de 40px */
}

.subtitle-text {
    font-size: clamp(1rem, 3vw, 1.3rem); /* REDUZIDO */
    color: #b8b8d1;
    line-height: 1.5; /* REDUZIDO de 1.8 */
}

.highlight {
    color: #ffd700;
    font-weight: bold;
}

/* IMAGENS DOS ANJOS - COMPACTO */
.angels-images {
    text-align: center;
    margin: 15px 0; /* REDUZIDO de 30px */
}

.angels-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* REDUZIDO de 15px */
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3); /* REDUZIDO */
}

/* CONTAINER DAS PERGUNTAS */
.questions-container {
    width: 100%;
}

/* ETAPAS DAS PERGUNTAS - COMPACTO */
.question-step {
    display: none;
    width: 100%;
    padding: 10px 0; /* REDUZIDO de 20px */
}

.question-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in; /* MAIS RÁPIDO */
}

/* TEXTO DAS PERGUNTAS - COMPACTO */
.question-text {
    font-size: clamp(1.3rem, 4vw, 2rem); /* REDUZIDO */
    color: #fff;
    text-align: center;
    margin-bottom: 15px; /* REDUZIDO de 30px */
    font-weight: 700;
}

/* GRID DE OPÇÕES - COMPACTO */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px; /* REDUZIDO de 15px */
    margin: 15px 0; /* REDUZIDO de 30px */
    width: 100%;
}

.options-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr)); /* REDUZIDO */
    gap: 8px; /* REDUZIDO de 10px */
}

.options-grid.medium {
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); /* REDUZIDO */
    gap: 10px;
}

/* BOTÕES DE OPÇÃO - COMPACTO */
.option-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 12px; /* REDUZIDO de 20px 15px */
    border-radius: 10px; /* REDUZIDO de 12px */
    font-size: 1rem; /* REDUZIDO de 1.1rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.option-btn:hover {
    transform: translateY(-3px); /* REDUZIDO de -5px */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); /* REDUZIDO */
}

/* GRID DE DESAFIOS - COMPACTO */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* REDUZIDO */
    gap: 12px; /* REDUZIDO de 20px */
    margin: 15px 0; /* REDUZIDO de 30px */
    width: 100%;
}

.challenge-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* REDUZIDO de 15px */
    padding: 20px 15px; /* REDUZIDO de 30px 20px */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.challenge-box:hover {
    transform: translateY(-5px); /* REDUZIDO de -8px */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5); /* REDUZIDO */
}

.challenge-icon {
    font-size: 2.5rem; /* REDUZIDO de 3rem */
    margin-bottom: 10px; /* REDUZIDO de 15px */
}

.challenge-label {
    font-size: 1.1rem; /* REDUZIDO de 1.2rem */
    color: #fff;
    font-weight: 600;
}

/* INPUT DE NOME - COMPACTO */
.name-input {
    width: 100%;
    max-width: 500px;
    margin: 15px auto; /* REDUZIDO de 20px */
    display: block;
    padding: 15px 18px; /* REDUZIDO de 18px 20px */
    font-size: 1.1rem; /* REDUZIDO de 1.2rem */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px; /* REDUZIDO de 12px */
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.name-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2); /* REDUZIDO de 4px */
    background: rgba(255, 255, 255, 0.1);
}

/* BOTÃO CONTINUAR - COMPACTO */
.continue-btn {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 20px auto 10px; /* REDUZIDO de 30px auto 15px */
    padding: 15px 35px; /* REDUZIDO de 18px 40px */
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px; /* REDUZIDO de 30px */
    font-size: 1.1rem; /* REDUZIDO de 1.2rem */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); /* REDUZIDO */
}

.continue-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6); /* REDUZIDO */
}

/* BOTÃO VOLTAR - COMPACTO */
.back-btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 10px auto; /* REDUZIDO de 15px */
    padding: 12px 25px; /* REDUZIDO de 14px 30px */
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px; /* REDUZIDO de 25px */
    font-size: 0.95rem; /* REDUZIDO de 1rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* TELA DE ANÁLISE - COMPACTO */
.analyzing-screen {
    display: none;
    text-align: center;
    padding: 40px 15px; /* REDUZIDO de 60px 20px */
}

.analyzing-screen.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

.analyzing-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* REDUZIDO */
    color: #fff;
    margin-bottom: 20px; /* REDUZIDO de 30px */
    font-weight: 700;
}

.percentage-display {
    font-size: clamp(2.5rem, 8vw, 5rem); /* REDUZIDO */
    color: #ffd700;
    font-weight: 900;
    margin: 20px 0; /* REDUZIDO de 30px */
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

.progress-container-analyzing {
    width: 100%;
    max-width: 600px;
    height: 12px; /* REDUZIDO de 15px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto; /* REDUZIDO de 30px */
}

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

.analyzing-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.2rem); /* REDUZIDO */
    color: #b8b8d1;
    margin-top: 15px; /* REDUZIDO de 20px */
}

/* TELA DE RESULTADO - COMPACTO */
.result-screen {
    display: none;
    text-align: center;
    padding: 30px 15px; /* REDUZIDO de 40px 20px */
}

.result-screen.active {
    display: block;
    animation: fadeIn 0.6s ease-in;
}

.result-title {
    font-size: clamp(1.3rem, 4vw, 2.2rem); /* REDUZIDO */
    color: #fff;
    margin-bottom: 20px; /* REDUZIDO de 30px */
    font-weight: 700;
    line-height: 1.3;
}

.result-title span {
    color: #ffd700;
    font-size: clamp(1.5rem, 5vw, 2.8rem); /* REDUZIDO */
    display: block;
    margin: 8px 0; /* REDUZIDO de 10px */
}

.result-angel-container {
    margin: 25px 0; /* REDUZIDO de 40px */
}

.result-angel-img {
    max-width: 100%;
    max-height: 500px; /* REDUZIDO de 600px */
    height: auto;
    border-radius: 15px; /* REDUZIDO de 20px */
    box-shadow: 0 12px 50px rgba(255, 215, 0, 0.3); /* REDUZIDO */
}

.angel-description {
    font-size: clamp(1rem, 3vw, 1.3rem); /* REDUZIDO */
    color: #b8b8d1;
    line-height: 1.6; /* REDUZIDO de 1.8 */
    margin: 20px auto; /* REDUZIDO de 30px */
    max-width: 800px;
}

.angel-role {
    color: #ffd700;
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 1.4rem); /* REDUZIDO */
}

.call-to-action {
    font-size: clamp(1.1rem, 3vw, 1.4rem); /* REDUZIDO */
    color: #fff;
    margin: 20px 0; /* REDUZIDO de 30px */
    font-weight: 600;
}

/* BOTÃO CTA FINAL - COMPACTO */
.final-cta-btn {
    display: inline-block;
    margin: 20px auto; /* REDUZIDO de 30px */
    padding: 18px 40px; /* REDUZIDO de 22px 50px */
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a0033;
    border: none;
    border-radius: 30px; /* REDUZIDO de 35px */
    font-size: clamp(1rem, 3vw, 1.3rem); /* REDUZIDO */
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.5); /* REDUZIDO */
    text-transform: uppercase;
}

.final-cta-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 45px rgba(255, 215, 0, 0.7); /* REDUZIDO */
}

/* ANIMAÇÃO */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* REDUZIDO de 30px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVO - TABLET */
@media (max-width: 768px) {
    .angel-guardian-container {
        padding: 12px 8px; /* REDUZIDO */
    }
    
    .angel-test-wrapper {
        padding: 0 12px; /* REDUZIDO */
    }
    
    .main-title {
        margin-bottom: 8px; /* REDUZIDO */
    }
    
    .subtitle-container {
        margin-bottom: 12px; /* REDUZIDO */
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px; /* REDUZIDO */
    }
    
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* REDUZIDO */
    }
}

/* RESPONSIVO - MOBILE */
@media (max-width: 480px) {
    .angel-guardian-container {
        padding: 10px 5px;
    }
    
    .angel-test-wrapper {
        padding: 0 8px; /* REDUZIDO */
    }
    
    .main-title {
        margin-bottom: 5px; /* REDUZIDO */
    }
    
    .subtitle-container {
        margin-bottom: 10px; /* REDUZIDO */
    }
    
    .angels-images {
        margin: 10px 0; /* REDUZIDO */
    }
    
    .question-text {
        margin-bottom: 12px; /* REDUZIDO */
    }
    
    .options-grid {
        gap: 6px; /* REDUZIDO */
        margin: 12px 0; /* REDUZIDO */
    }
    
    .options-grid.small {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px; /* REDUZIDO */
    }
    
    .option-btn {
        padding: 12px 8px; /* REDUZIDO */
        font-size: 0.95rem; /* REDUZIDO */
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 10px; /* REDUZIDO */
    }
    
    .challenge-box {
        padding: 18px 12px; /* REDUZIDO */
    }
}
