/* Quiz Block Styles */

/* ===== LANDING SCREEN ===== */
.quiz-block {
    max-width: 800px;
    margin: 2rem auto;
}

.quiz-landing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.quiz-cover-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}


.quiz-meta {
    color: #92400e;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.quiz-start-btn {
    padding: 1rem 3rem;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

.quiz-start-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
}

/* ===== QUIZ CONTAINER ===== */
.quiz-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ===== PROGRESS BAR ===== */
.quiz-progress {
    margin-bottom: 2rem;
    display: flex;
    gap: 6px;
}

.progress-step {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.progress-step.done {
    background: #22c55e;
}

/* ===== QUESTION SLIDES ===== */
.question-slide {
    display: none;
    animation: fadeIn 0.4s ease;
}

.question-slide.active {
    display: block;
}

.question-counter {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-question-text {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
    line-height: 1.4;
}

.quiz-question-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* ===== ANSWERS ===== */
.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-answer-btn {
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-answer-btn:hover:not(.disabled) {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateX(5px);
}

.quiz-answer-btn.disabled {
    cursor: default;
}

.quiz-answer-btn.correct {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}

.quiz-answer-btn.correct::before {
    content: "✓ ";
    font-weight: bold;
}

.quiz-answer-btn.wrong {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}

.quiz-answer-btn.wrong::before {
    content: "✗ ";
    font-weight: bold;
}

/* ===== FEEDBACK ===== */
.quiz-feedback {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left: 4px solid #3b82f6;
    display: none;
}

.quiz-feedback strong {
    color: #1e40af;
}

/* ===== NEXT BUTTON ===== */
.quiz-next-area {
    margin-top: 1.5rem;
    text-align: center;
    display: none;
}

.quiz-next-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.quiz-next-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ===== RESULTS SCREEN ===== */
.quiz-results {
    text-align: center;
    display: none;
    padding: 1rem;
}

.results-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.quiz-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.results-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 8px solid white;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
}

.score-display {
    font-size: 2.5rem;
    font-weight: 900;
    color: #78350f;
    margin: 0;
}

.score-message {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.results-actions {
    margin-top: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .quiz-landing {
        padding: 2rem 1.5rem;
    }

    .quiz-title {
        font-size: 1.1rem;
    }

    .quiz-question-text {
        font-size: 1.2rem;
    }

    .quiz-answer-btn {
        padding: 1rem;
    }

    .score-display {
        font-size: 3rem;
    }
}