﻿/* ─────────────────────────────────────────────────────────────
   quiz_pedrosa.css  —  Estilos del módulo Quiz
   Metodología: BEM  |  Variables: global.css
   ───────────────────────────────────────────────────────────── */

/* ── Temas (Index) ─────────────────────────────────────────── */

.themes-section {
    padding: 60px 0;
}

.themes-section__card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 28px 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.themes-section__card:hover {
    box-shadow: 0 8px 30px rgba(1, 95, 234, 0.15);
    transform: translateY(-3px);
}

.themes-section__card-theme {
    display: block;
    font-family: var(--body-font);
    font-size: 13px;
    color: var(--main-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.themes-section__card-title {
    font-family: var(--heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 16px;
}

.themes-section__empty {
    font-family: var(--body-font);
    color: var(--body-color);
    text-align: center;
    font-size: 17px;
    padding: 40px 0;
}

/* ── Video ─────────────────────────────────────────────────── */

.video-section {
    padding: 60px 0;
}

.video-section__player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    margin-bottom: 24px;
}

.video-section__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Quiz (preguntas) ──────────────────────────────────────── */

.quiz {
    padding: 40px 0;
}

.quiz__question {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 28px 24px;
    margin-bottom: 24px;
}

.quiz__question-text {
    font-family: var(--heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 16px;
}

.quiz__question-image {
    width: 100%;
    max-width: 480px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: block;
}

.quiz__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz__option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz__option-input {
    width: 18px;
    height: 18px;
    accent-color: var(--main-color);
    cursor: pointer;
    flex-shrink: 0;
}

.quiz__option-label {
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--body-color);
    cursor: pointer;
    margin-bottom: 0;
}

.quiz__option-input:checked + .quiz__option-label {
    color: var(--main-color);
    font-weight: 500;
}

.quiz__submit {
    text-align: center;
    padding-top: 12px;
}

.quiz__error {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
    color: #856404;
    font-family: var(--body-font);
    font-size: 15px;
    text-align: center;
}

.quiz__error--hidden {
    display: none;
}

/* ── Resultados ────────────────────────────────────────────── */

.results {
    padding: 40px 0;
}

.results__scores {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.results__score-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 28px 40px;
    text-align: center;
    min-width: 180px;
}

.results__score-label {
    display: block;
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--body-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results__score-value {
    display: block;
    font-family: var(--heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--main-color);
}

.results__score-value--skipped {
    font-size: 14px;
    font-weight: 500;
    color: var(--body-color);
    opacity: 0.7;
    font-style: italic;
    letter-spacing: 0;
}

.results__attempt-answer--skipped {
    color: var(--body-color);
    opacity: 0.6;
    font-style: italic;
}

.results__question {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 16px;
}

.results__question-text {
    font-family: var(--heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 14px;
}

.results__attempts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.results__attempt,
.results__correct {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body-font);
    font-size: 15px;
    color: var(--body-color);
}

.results__attempt-label,
.results__correct-label {
    font-weight: 600;
    min-width: 80px;
    color: var(--black-color);
}

.results__attempt-status {
    font-weight: 700;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.results__attempt-status--correct {
    color: #28a745;
}

.results__attempt-status--wrong {
    color: #dc3545;
}

.results__correct-answer {
    color: #28a745;
    font-weight: 500;
}

/* ── Timer ─────────────────────────────────────────────────── */

.quiz-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
    margin-top: 16px;
}

.quiz-timer__label {
    font-family: var(--body-font);
    font-size: 15px;
    color: var(--body-color);
}

.quiz-timer__display {
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--main-color);
    letter-spacing: 2px;
}

.quiz-timer--urgent .quiz-timer__display {
    color: #dc3545;
}

/* ── Gracias ───────────────────────────────────────────────── */

.thanks {
    text-align: center;
    padding: 40px 24px;
}

.thanks__icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 16px;
}

.thanks__title {
    font-family: var(--heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 8px;
}

.thanks__message {
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--body-color);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .results__scores {
        flex-direction: column;
        align-items: center;
    }

    .results__attempt,
    .results__correct {
        flex-wrap: wrap;
    }

    .quiz-timer {
        flex-direction: column;
        gap: 4px;
    }
}
