/* WP Insights Quiz Frontend Styles */
.wp-quiz-container {
    max-width: 800px;
    width: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

/* Header */
.wp-quiz-header-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.wp-quiz-header-text h1 {
    font-size: 2rem;
    color: #222;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.wp-quiz-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Score Bar Superior - Fixo no Topo */
.wp-quiz-score-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: fixed;
    top: 186px;
    z-index: 1000;
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wp-score-dot {
    width: 12px;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wp-score-dot.is-correct {
    background-color: #28a745;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.wp-score-dot.is-incorrect {
    background-color: #dc3545;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
}

.wp-quiz-question {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #ffffff;
}

/* Imagem da Pergunta */
.wp-quiz-image-container {
    margin-bottom: 20px;
    text-align: center;
}

.wp-quiz-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;

}

.wp-quiz-title {
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.wp-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wp-quiz-option-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    position: relative;
    font-weight: 500;
}

.wp-quiz-option-label:hover {
    background: #f8fbff;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.wp-quiz-option-label input[type="radio"] {
    margin-right: 15px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Animações e Estados */
.wp-quiz-option-label.is-correct {
    background-color: #e6ffed !important;
    border-color: #28a745 !important;
    color: #155724;
    animation: zoomInSuccess 0.4s ease forwards;
}

@keyframes zoomInSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1.02);
    }
}

.wp-quiz-option-label.is-incorrect {
    background-color: #f8dbdb !important;
    border-color: #dc3545 !important;
    color: #721c24;
    animation: shakeTranslate 0.4s ease;
}

@keyframes shakeTranslate {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    50% {
        transform: translateX(8px);
    }

    75% {
        transform: translateX(-4px);
    }
}

.wp-quiz-option-label.is-disabled {
    pointer-events: none;
    opacity: 0.9;
}

.wp-quiz-icon {
    margin-left: auto;
    font-size: 1.4rem;
}

.wp-quiz-option-label.is-correct .wp-quiz-icon::after {
    content: "✅";
}

.wp-quiz-option-label.is-incorrect .wp-quiz-icon::after {
    content: "❌";
}

/* Explicação */
.wp-quiz-explanation {
    margin-top: 20px;
    padding: 18px;
    background-color: #f0f7ff;
    border-left: 5px solid #0073aa;
    border-radius: 6px;
    font-size: 1rem;
    color: #444;
    animation: slideDownFade 0.5s ease-out;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resultados */
.wp-quiz-results-container {
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #eee;
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
}

.wp-quiz-score-text {
    font-size: 2rem;
    font-weight: 800;
    color: #0073aa;
    margin-bottom: 25px;
}

.wp-quiz-restart-btn {
    background: #333;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wp-quiz-restart-btn:hover {
    background: #000;
    transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 600px) {
    .wp-quiz-container {
        padding: 15px;
        margin: 10px;
    }

    .wp-quiz-header-text h1 {
        font-size: 1.5rem;
    }

    .wp-quiz-option-label {
        padding: 12px 15px;
    }
}