/* ===================================
   QUIZ INTERATIVO - MÉTODO 95
   Sistema completo de quiz com 15 questões
   =================================== */

/* Seção Quiz */
.quiz-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    min-height: 600px;
}

/* Barra de Progresso do Quiz */
.quiz-progress-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.quiz-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.current-question {
    font-size: 1.1rem;
    color: #3498db;
}

.quiz-score {
    font-size: 1.1rem;
    color: #27ae60;
}

.quiz-progress-bar {
    width: 100%;
    height: 12px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Container de Questões */
.quiz-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    min-height: 500px;
}

/* Questão */
.quiz-question {
    display: none;
    animation: fadeInQuiz 0.5s ease;
}

.quiz-question.active {
    display: block;
}

@keyframes fadeInQuiz {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
}

.question-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.question-module {
    flex: 1;
}

.question-module-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Alternativas */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-option {
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateX(5px);
}

.option-letter {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    font-size: 1.05rem;
    color: #2c3e50;
    line-height: 1.5;
}

/* Alternativa Selecionada */
.quiz-option.selected {
    background: #e3f2fd;
    border-color: #3498db;
    border-width: 3px;
}

.quiz-option.selected .option-letter {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Alternativa Correta */
.quiz-option.correct {
    background: #d4edda;
    border-color: #28a745;
    border-width: 3px;
}

.quiz-option.correct .option-letter {
    background: linear-gradient(135deg, #28a745, #218838);
}

.quiz-option.correct::after {
    content: '\f058'; /* Font Awesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 1.5rem;
}

/* Alternativa Incorreta */
.quiz-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    border-width: 3px;
}

.quiz-option.incorrect .option-letter {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.quiz-option.incorrect::after {
    content: '\f057'; /* Font Awesome times-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-size: 1.5rem;
}

/* Desabilitar clique após resposta */
.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Feedback da Resposta */
.answer-feedback {
    margin-top: 25px;
    padding: 25px;
    border-radius: 12px;
    display: none;
    animation: slideDown 0.4s ease;
}

.answer-feedback.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

.answer-feedback.correct-feedback {
    background: #d4edda;
    border: 2px solid #28a745;
}

.answer-feedback.incorrect-feedback {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.feedback-icon {
    font-size: 1.8rem;
}

.correct-feedback .feedback-icon {
    color: #28a745;
}

.incorrect-feedback .feedback-icon {
    color: #dc3545;
}

.feedback-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.feedback-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2c3e50;
}

.feedback-text strong {
    color: #3498db;
    font-weight: 600;
}

/* Navegação do Quiz */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.quiz-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-btn-prev {
    background: #95a5a6;
    color: white;
}

.quiz-btn-prev:hover:not(:disabled) {
    background: #7f8c8d;
    transform: translateX(-3px);
}

.quiz-btn-next {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.quiz-btn-next:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateX(3px);
}

.quiz-btn-submit {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    flex: 1;
}

.quiz-btn-submit:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: scale(1.02);
}

.quiz-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Resultado Final */
.quiz-result {
    animation: zoomIn 0.6s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.result-icon {
    font-size: 4rem;
    color: #f39c12;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.result-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.result-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.score-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-total {
    font-size: 3rem;
    color: #7f8c8d;
    font-weight: 600;
}

.result-message {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.6;
}

.result-performance {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 1.05rem;
}

.performance-label {
    color: #7f8c8d;
    font-weight: 500;
}

.performance-value {
    color: #2c3e50;
    font-weight: 700;
}

.quiz-btn-restart {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 18px 40px;
    font-size: 1.1rem;
}

.quiz-btn-restart:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 768px) {
    .quiz-section {
        padding: 50px 15px;
    }
    
    .quiz-container {
        padding: 25px 20px;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .quiz-option {
        padding: 15px;
    }
    
    .option-text {
        font-size: 0.95rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .quiz-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-card {
        padding: 30px 20px;
    }
    
    .score-number {
        font-size: 3.5rem;
    }
    
    .score-total {
        font-size: 2rem;
    }
    
    .result-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .question-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quiz-progress-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .quiz-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quiz-option.correct::after,
    .quiz-option.incorrect::after {
        right: 10px;
        top: 10px;
        transform: none;
    }
}
