/**
 * Quiz Performance Over Time Styles
 */

.quiz-performance-section {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quiz-performance-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.quiz-performance-chart {
    margin: 20px 0;
    width: 100%;
    max-width: 600px;
}

.quiz-performance-svg {
    width: 100%;
    height: auto;
    display: block;
}

.quiz-performance-point {
    cursor: pointer;
    transition: r 0.2s ease;
}

.quiz-performance-point:hover {
    r: 6;
}

.quiz-performance-smoothed-line {
    stroke-dasharray: none;
}

.quiz-performance-smoothed-point {
    pointer-events: none;
}

.quiz-performance-insight {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-secondary, #f5f7fa);
    border-radius: 8px;
    border-left: 4px solid var(--accent, #3b82f6);
}

.quiz-performance-insight p {
    margin: 0;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.6;
    font-size: 14px;
}

.quiz-performance-explanation {
    margin-top: 20px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding-top: 16px;
}

.quiz-performance-explanation-toggle {
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    color: var(--accent, #3b82f6);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    width: 100%;
    text-align: left;
}

.quiz-performance-explanation-toggle:hover {
    color: var(--accent-hover, #2563eb);
}

.quiz-performance-explanation-toggle i {
    font-size: 14px;
}

.explanation-chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.quiz-performance-explanation-content {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-secondary, #f5f7fa);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary, #6b7280);
}

.quiz-performance-explanation-content h3 {
    font-size: 16px;
    margin: 0 0 12px 0;
    color: var(--text-primary, #1a1a1a);
}

.quiz-performance-explanation-content p {
    margin: 0 0 12px 0;
}

.quiz-performance-explanation-content ul,
.quiz-performance-explanation-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.quiz-performance-explanation-content li {
    margin: 6px 0;
}

.quiz-performance-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary, #6b7280);
}

.quiz-performance-empty p {
    margin: 8px 0;
    font-size: 14px;
}

.quiz-performance-empty-hint {
    font-size: 12px;
    color: var(--text-tertiary, #9ca3af);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-performance-section {
        padding: 16px;
    }
    
    .quiz-performance-chart {
        max-width: 100%;
    }
    
    .quiz-performance-svg {
        max-height: 200px;
    }
}

