/* NH Driving Scenarios - Stylesheet */

.nh-scenarios-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.scenarios-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #003d82;
}

.scenarios-header h2 {
    color: #003d82;
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.scenarios-subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

/* Intro Card */
.intro-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.intro-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.6em;
}

.intro-card p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* Category Select */
.category-select {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.category-select label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.scenario-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scenario-select:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.scenario-select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* AI Badge */
.ai-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-icon {
    font-size: 1.3em;
}

/* Buttons */
.btn-start,
.btn-next-scenario,
.btn-change-category {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start {
    background: white;
    color: #764ba2;
    width: 100%;
    margin-top: 10px;
}

.btn-start:hover:not(:disabled) {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-start:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.btn-next-scenario {
    background: #003d82;
    color: white;
    flex: 2;
}

.btn-next-scenario:hover {
    background: #002d62;
    transform: translateY(-2px);
}

.btn-change-category {
    background: #6c757d;
    color: white;
    flex: 1;
}

.btn-change-category:hover {
    background: #5a6268;
}

/* Scenario Display */
.scenario-display {
    animation: fadeIn 0.5s ease;
}

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

/* Category Badge */
.scenario-category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.badge-icon {
    font-size: 1.2em;
}

/* Scenario Card */
.scenario-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.scenario-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
}

.scenario-text {
    font-size: 1.25em;
    line-height: 1.7;
    color: #333;
    font-weight: 500;
    text-align: left;
}

/* Response Options */
.response-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.response-option {
    background: white;
    border: 3px solid #dee2e6;
    padding: 20px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    font-size: 1.05em;
}

.response-option:hover:not(:disabled) {
    border-color: #003d82;
    background: #e7f3ff;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.response-option:disabled {
    cursor: not-allowed;
}

.option-letter {
    background: #003d82;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3em;
    flex-shrink: 0;
}

.option-text {
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

/* Correct/Incorrect States */
.response-option.correct {
    background: #d4edda;
    border-color: #28a745;
    border-width: 4px;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.response-option.correct .option-letter {
    background: #28a745;
}

.response-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    border-width: 4px;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.response-option.incorrect .option-letter {
    background: #dc3545;
}

/* Scenario Feedback */
.scenario-feedback {
    margin-top: 30px;
}

.feedback-correct,
.feedback-incorrect {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feedback-correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
}

.feedback-incorrect {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 5px solid #dc3545;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feedback-icon {
    font-size: 2.5em;
}

.feedback-title {
    font-size: 1.6em;
    font-weight: 700;
}

.feedback-correct .feedback-title {
    color: #155724;
}

.feedback-incorrect .feedback-title {
    color: #721c24;
}

.feedback-explanation {
    font-size: 1.15em;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

/* Scenario Stats */
.scenario-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #003d82;
}

.stat-label {
    display: block;
    font-size: 0.95em;
    color: #666;
    margin-top: 5px;
}

/* Feedback Actions */
.feedback-actions {
    display: flex;
    gap: 15px;
}

/* Tips Section */
.scenarios-tips {
    background: #fff3cd;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #ffc107;
    margin-top: 30px;
}

.scenarios-tips h4 {
    color: #856404;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.scenarios-tips ul {
    margin: 0;
    padding-left: 20px;
}

.scenarios-tips li {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.scenarios-tips strong {
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nh-scenarios-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .scenarios-header h2 {
        font-size: 1.6em;
    }
    
    .intro-card {
        padding: 25px;
    }
    
    .scenario-card {
        padding: 25px;
    }
    
    .scenario-text {
        font-size: 1.1em;
    }
    
    .response-option {
        padding: 15px 20px;
        font-size: 1em;
    }
    
    .option-letter {
        width: 38px;
        height: 38px;
        font-size: 1.1em;
    }
    
    .scenario-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .btn-next-scenario,
    .btn-change-category {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .feedback-header {
        flex-direction: column;
        text-align: center;
    }
    
    .feedback-icon {
        font-size: 2em;
    }
    
    .feedback-title {
        font-size: 1.3em;
    }
}

/* Animation for new scenario */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.response-option {
    animation: slideIn 0.3s ease;
}

/* Print Styles */
@media print {
    .btn-start,
    .btn-next-scenario,
    .btn-change-category {
        display: none;
    }
    
    .nh-scenarios-container {
        box-shadow: none;
    }
    
    .intro-card,
    .scenario-card {
        background: #f0f0f0 !important;
    }
}
