/* Debate Mode Styles */

.debate-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

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

.debate-progress {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary, #e2e8f0);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #4a5568);
}

.debate-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.debate-side {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.debate-side.active {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    border: 2px solid var(--primary, #667eea);
}

.for-side.active {
    border-color: #48bb78;
}

.against-side.active {
    border-color: #e53e3e;
}

.side-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border, #e2e8f0);
}

.side-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

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

.argument-count {
    font-size: 0.875rem;
    color: var(--text-secondary, #718096);
    font-weight: 600;
}

.arguments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
}

.argument-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary, #f7fafc);
    border-radius: 8px;
    border-left: 3px solid var(--primary, #667eea);
}

.for-side .argument-card {
    border-left-color: #48bb78;
}

.against-side .argument-card {
    border-left-color: #e53e3e;
}

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

.for-side .argument-number {
    background: #48bb78;
}

.against-side .argument-number {
    background: #e53e3e;
}

.argument-card p {
    flex: 1;
    font-size: 0.938rem;
    color: var(--text-primary, #2d3748);
    line-height: 1.6;
    margin: 0;
}

.debate-vs {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
}

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

.argument-input-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin-bottom: 1rem;
}

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

/* Summary View */
.debate-summary {
    max-width: 1000px;
    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-sides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.summary-side h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #2d3748);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border, #e2e8f0);
}

.for-summary h3 {
    border-bottom-color: #48bb78;
    color: #2f855a;
}

.against-summary h3 {
    border-bottom-color: #e53e3e;
    color: #c53030;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary, #f7fafc);
    border-radius: 8px;
    line-height: 1.6;
}

.summary-list li strong {
    display: block;
    color: var(--primary, #667eea);
    margin-bottom: 0.5rem;
}

.no-arguments {
    color: var(--text-tertiary, #a0aec0);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

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

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

.reflection-section p {
    color: var(--text-secondary, #718096);
    margin-bottom: 1rem;
}

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

/* Mobile Responsive */
@media (max-width: 968px) {
    .debate-arena {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .debate-vs {
        order: 2;
        padding: 1rem 0;
        transform: rotate(90deg);
    }
    
    .for-side {
        order: 1;
    }
    
    .against-side {
        order: 3;
    }
    
    .summary-sides {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .debate-view,
    .debate-summary {
        padding: 1rem;
    }
    
    .debate-side,
    .argument-input-section,
    .summary-side,
    .reflection-section {
        padding: 1.5rem;
    }
    
    .debate-actions,
    .summary-actions {
        flex-direction: column;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .debate-side,
    .argument-input-section,
    .stat-card,
    .summary-side,
    .reflection-section {
        background: #1a202c;
    }
    
    .argument-card,
    .summary-list li {
        background: #2d3748;
    }
    
    .debate-progress {
        background: #2d3748;
    }
    
    .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;
    }
}
