/* Devil's Advocate Mode Styles */

.advocate-challenge-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

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

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary, #e2e8f0);
    border-radius: 4px;
    overflow: hidden;
}

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

.challenge-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 #e53e3e;
}

.challenge-category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #fed7d7;
    color: #c53030;
    border-radius: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.challenge-hints {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #f7fafc);
    border-radius: 8px;
}

.challenge-hints summary {
    font-weight: 600;
    color: var(--primary, #667eea);
    cursor: pointer;
    user-select: none;
}

.challenge-hints summary:hover {
    color: var(--primary-dark, #5a67d8);
}

.challenge-hints ul {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
}

.challenge-hints li {
    color: var(--text-secondary, #718096);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

.response-section label {
    display: block;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin-bottom: 0.75rem;
}

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

/* Summary View */
.advocate-summary {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

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

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

.summary-header p {
    font-size: 1.125rem;
    color: var(--text-secondary, #718096);
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary, #667eea);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #718096);
    font-weight: 500;
}

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

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

.summary-challenge-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.summary-challenge-item:last-child {
    border-bottom: none;
}

.challenge-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #667eea);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.challenge-info {
    flex: 1;
}

.challenge-info strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary, #2d3748);
    margin-bottom: 0.25rem;
}

.challenge-info .challenge-category {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.response-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary, #f7fafc);
    border-radius: 8px;
}

.response-preview strong {
    font-size: 0.875rem;
    color: var(--primary, #667eea);
}

.response-preview p {
    margin-top: 0.5rem;
    font-size: 0.938rem;
    color: var(--text-secondary, #4a5568);
    line-height: 1.6;
}

.skipped-label {
    color: var(--text-tertiary, #a0aec0);
    font-style: italic;
    margin-top: 0.5rem;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .advocate-challenge-view,
    .advocate-summary {
        background: transparent;
    }
    
    .challenge-card,
    .response-section,
    .summary-challenges,
    .stat-card {
        background: #1a202c;
    }
    
    .challenge-hints,
    .response-preview {
        background: #2d3748;
    }
    
    .form-textarea {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-textarea:focus {
        background: #2d3748;
        border-color: #667eea;
        color: #e2e8f0;
    }
    
    .form-textarea::placeholder {
        color: #a0aec0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .advocate-challenge-view,
    .advocate-summary {
        padding: 1rem;
    }
    
    .challenge-card,
    .response-section {
        padding: 1.5rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .response-actions,
    .summary-actions {
        flex-direction: column;
    }
}
