/* Archetype Studio Quiz Styles */

.archetype-studio-quiz {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.quiz-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.quiz-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h1 {
    font-size: 3em;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-header .tagline {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
}

/* Intro */
.quiz-intro-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-intro-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.quiz-intro-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.quiz-intro-content li {
    padding: 12px 0;
    font-size: 1.1em;
    color: #555;
}

/* User Info Form */
.user-info-form {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.user-info-form h3 {
    color: #333;
    margin-bottom: 20px;
}

.user-info-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.user-info-form input:focus {
    outline: none;
    border-color: #667eea;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* Question Card */
.question-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.answer-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option input[type="radio"]:checked + .option-text {
    color: #667eea;
    font-weight: 600;
}

.option-text {
    font-size: 1.05em;
    color: #555;
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Result Card */
.result-card {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #f0f0f0;
}

.result-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #333;
}

.archetype-name {
    font-size: 2.2em;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archetype-tagline {
    font-size: 1.3em;
    color: #666;
    font-style: italic;
}

.result-section {
    margin: 40px 0;
}

.result-section h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.result-section ul {
    list-style: none;
    padding: 0;
}

.result-section li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.result-section li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #667eea;
    font-size: 1.5em;
}

.result-description p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
}

/* Score Bars */
.score-bars {
    margin-top: 20px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.score-label {
    min-width: 120px;
    font-weight: 600;
    color: #555;
}

.score-bar {
    flex: 1;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

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

.score-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .archetype-studio-quiz {
        padding: 15px;
    }
    
    .quiz-intro-content,
    .question-card,
    .result-card {
        padding: 25px;
    }
    
    .quiz-header h1 {
        font-size: 2em;
    }
    
    .question-text {
        font-size: 1.2em;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .score-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .score-bar {
        width: 100%;
    }
}