/* ReactifyWP Compatible Quiz Styles */

.quiz-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h1 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.quiz-header p {
    color: #666;
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.quiz-section {
    margin-bottom: 2rem;
}

.question {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.question h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.quiz-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.quiz-button:hover {
    transform: translateY(-2px);
}

.quiz-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quiz-results {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.quiz-results h2 {
    color: #333;
    margin-bottom: 1rem;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin: 1rem 0;
}

/* ReactifyWP container compatibility */
[data-reactify-slug] {
    min-height: 400px;
}

.reactify-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading states */
.reactify-loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.reactify-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .quiz-header h1 {
        font-size: 1.5rem;
    }
    
    .reactify-container {
        padding: 1rem;
        margin: 0.5rem;
    }
}
