/* Aspie Quiz Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.quiz-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.quiz-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.quiz-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.progress-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 8px;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 500;
}

.quiz-content {
    padding: 2rem;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Welcome Screen Styles */
.welcome-content h2 {
    color: #4a90e2;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.info-box h3 {
    color: #333;
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-box li:last-child {
    border-bottom: none;
}

.domains-info {
    margin-bottom: 2rem;
}

.domains-info h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.domain-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.domain-item:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.domain-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.instructions {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.instructions h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.answer-options-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.option-guide {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.option-symbol {
    background: #4a90e2;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.disclaimer {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.disclaimer p {
    color: #721c24;
    margin: 0;
}

/* Quiz Screen Styles */
.question-container {
    margin-bottom: 3rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.domain-label {
    background: #4a90e2;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.question-number {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.question-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.5;
}

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

.answer-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.answer-option:hover {
    border-color: #4a90e2;
    background: #f8f9fa;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option input[type="radio"]:checked + .option-text {
    color: #4a90e2;
    font-weight: 500;
}

.answer-option input[type="radio"]:checked + .option-text .option-symbol {
    background: #4a90e2;
    color: white;
}

.option-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.option-text .option-symbol {
    background: #6c757d;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Results Screen Styles */
.results-content h2 {
    color: #4a90e2;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.total-score {
    text-align: center;
    margin-bottom: 3rem;
}

.score-circle {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.probability-text {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

.domain-scores {
    margin-bottom: 3rem;
}

.domain-scores h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.domain-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.domain-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e9ecef;
}

.domain-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.domain-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a90e2;
}

.interpretation {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.interpretation h3 {
    color: #0056b3;
    margin-bottom: 1rem;
}

.interpretation p {
    color: #333;
    margin-bottom: 1rem;
}

.next-steps {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.next-steps h3 {
    color: #333;
    margin-bottom: 1rem;
}

.next-steps ul {
    color: #666;
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        margin: 0;
        min-height: 100vh;
    }
    
    .quiz-header {
        padding: 1.5rem;
    }
    
    .quiz-header h1 {
        font-size: 2rem;
    }
    
    .quiz-content {
        padding: 1.5rem;
    }
    
    .domains-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .answer-options-guide {
        grid-template-columns: 1fr 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .quiz-header h1 {
        font-size: 1.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .answer-options-guide {
        grid-template-columns: 1fr;
    }
    
    .domain-results {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .quiz-container {
        box-shadow: none;
    }
    
    .quiz-header {
        background: #4a90e2;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .navigation-buttons,
    .action-buttons {
        display: none;
    }
}

