/* What If Scenarios Mode Styles */

.whatif-scenario-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.scenario-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scenario-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #2d3748);
}

.scenario-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.scenario-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border-left: 4px solid #ed8936;
}

.scenario-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #2d3748);
    margin-bottom: 1rem;
}

.scenario-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary, #4a5568);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.scenario-hint {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #fff5f5);
    border-radius: 8px;
    border-left: 3px solid #ed8936;
}

.scenario-hint summary {
    font-weight: 600;
    color: #ed8936;
    cursor: pointer;
    user-select: none;
}

.scenario-hint summary:hover {
    color: #dd6b20;
}

.scenario-hint p {
    margin-top: 0.75rem;
    color: var(--text-secondary, #718096);
    line-height: 1.6;
}

.adaptation-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.adaptation-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #2d3748);
    margin-bottom: 0.5rem;
}

.adaptation-prompt {
    color: var(--text-secondary, #718096);
    margin-bottom: 1.5rem;
}

.timer-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #f7fafc);
    border-radius: 8px;
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary, #667eea);
    min-width: 100px;
}

.adaptation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* Previous Adaptations */
.previous-adaptations {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.previous-adaptations h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #2d3748);
    margin-bottom: 1.5rem;
}

.adaptations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.adaptation-card {
    background: var(--bg-secondary, #f7fafc);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border, #e2e8f0);
    transition: all 0.2s ease;
}

.adaptation-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.adaptation-number {
    display: inline-block;
    background: var(--primary, #667eea);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.adaptation-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin-bottom: 0.5rem;
}

.adaptation-preview {
    font-size: 0.875rem;
    color: var(--text-secondary, #718096);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.view-adaptation-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    background: var(--primary, #667eea);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.view-adaptation-btn:hover {
    background: var(--primary-dark, #5a67d8);
}

/* Detail View */
.adaptation-detail-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

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

.detail-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #2d3748);
    margin-bottom: 0.5rem;
}

.detail-date {
    color: var(--text-secondary, #718096);
    font-size: 0.938rem;
}

.response-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.response-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #2d3748);
    margin-bottom: 1rem;
}

.response-content {
    font-size: 1.063rem;
    line-height: 1.8;
    color: var(--text-secondary, #4a5568);
    white-space: pre-wrap;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatif-scenario-view,
    .adaptation-detail-view {
        padding: 1rem;
    }
    
    .scenario-card,
    .adaptation-section,
    .previous-adaptations {
        padding: 1.5rem;
    }
    
    .timer-section {
        flex-direction: column;
        text-align: center;
    }
    
    .adaptations-grid {
        grid-template-columns: 1fr;
    }
    
    .adaptation-actions,
    .detail-actions {
        flex-direction: column;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .scenario-card,
    .adaptation-section,
    .previous-adaptations,
    .response-card {
        background: #1a202c;
    }
    
    .scenario-hint {
        background: #2d3748;
    }
    
    .timer-section {
        background: #2d3748;
    }
    
    .adaptation-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .form-textarea,
    .form-input {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-textarea:focus,
    .form-input:focus {
        background: #2d3748;
        border-color: #667eea;
        color: #e2e8f0;
    }
    
    .form-textarea::placeholder,
    .form-input::placeholder {
        color: #a0aec0;
    }
}
