/* AI Adoption Quiz Styles */

.ai-quiz-section {
    background: var(--surface-color, #f8fafc);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.quiz-title {
    color: var(--primary-color, #475569);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quiz-description {
    color: var(--text-secondary, #64748b);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-form {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-question {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    transition: box-shadow 0.3s ease;
}

.quiz-question:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.question-text {
    color: var(--text-primary, #1e293b);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.question-number {
    background: var(--primary-color, #475569);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.question-options {
    display: grid;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: flex-start; /* Allow multi-line labels to align from top */
    padding: 0.75rem;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--primary-color, #475569);
    background-color: var(--surface-color, #f8fafc);
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
    accent-color: var(--primary-color, #475569);
}

.quiz-option label {
    display: block; /* Ensure wrapping works inside flex container */
    cursor: pointer;
    color: var(--text-primary, #1e293b);
    font-weight: 500;
    flex: 1;
    margin: 0;
    line-height: 1.4;
    white-space: normal; /* Allow multi-line */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.quiz-option input:checked + label {
    color: var(--primary-color, #475569);
}

.quiz-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.quiz-submit,
.quiz-reset {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-submit {
    background: var(--primary-color, #475569);
    color: white;
}

.quiz-submit:hover {
    background: var(--primary-dark, #334155);
    transform: translateY(-2px);
}

.quiz-reset {
    background: transparent;
    color: var(--text-secondary, #64748b);
    border: 2px solid var(--border-color, #e2e8f0);
}

.quiz-reset:hover {
    border-color: var(--primary-color, #475569);
    color: var(--primary-color, #475569);
}

/* Results Styles */
.quiz-results {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
}

.results-title {
    color: var(--primary-color, #475569);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.results-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.score-value {
    color: var(--primary-color, #475569);
    font-size: 2rem;
}

.adoption-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.adoption-badge.advanced {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.adoption-badge.intermediate {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.adoption-badge.beginner {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.adoption-badge.starter {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.adoption-badge.newcomer {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

.adoption-icon {
    font-size: 3rem;
}

.adoption-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.adoption-description {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.department-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.department-tag {
    background: var(--primary-color, #475569);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary, #1e293b);
}

.next-steps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color, #475569);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-quiz-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .question-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .question-number {
        align-self: flex-start;
    }
    
    .quiz-actions {
        flex-direction: column;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .adoption-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .adoption-icon {
        font-size: 2rem;
    }
}

/* Dark mode support */
[data-theme="dark"] .ai-quiz-section {
    background: var(--surface-dark, #1e293b);
}

[data-theme="dark"] .quiz-question {
    background: var(--background-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}

[data-theme="dark"] .quiz-results {
    background: var(--background-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}

/* Quiz CTA Section */
.quiz-cta-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color, #475569) 0%, var(--primary-dark, #334155) 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.quiz-cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.quiz-cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.quiz-cta-button {
    background: white !important;
    color: var(--primary-color, #475569) !important;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quiz-cta-button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quiz-cta-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Responsive CTA styles */
@media (max-width: 768px) {
    .quiz-cta-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .quiz-cta-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .quiz-cta-button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}
