/* Truth Block Scoring Dashboard Styles */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --muted-color: #6c757d;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);

    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* Global Styles */
.dashboard-container {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header Section */
.dashboard-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--primary-color);
}

.dashboard-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.dashboard-subtitle {
    color: var(--muted-color);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.action-buttons .btn {
    margin-left: 10px;
    border-radius: 20px;
    transition: all var(--transition-speed) ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Main Score Section */
.main-score-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
}

.score-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        var(--success-color) 0deg,
        var(--success-color) calc(var(--score-percentage, 0) * 3.6deg),
        #e9ecef calc(var(--score-percentage, 0) * 3.6deg),
        #e9ecef 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: scoreCircleRotate 2s ease-in-out;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.score-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes scoreCircleRotate {
    from { transform: rotate(-90deg); }
    to { transform: rotate(0deg); }
}

/* Analysis Grid */
.analysis-grid {
    margin-bottom: 30px;
}

.analysis-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.analysis-card .card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.analysis-card.ai-analysis .card-header {
    background: var(--gradient-info);
}

.analysis-card.evidence-analysis .card-header {
    background: var(--gradient-warning);
}

.analysis-card.user-feedback .card-header {
    background: var(--gradient-success);
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.score-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.3);
}

.analysis-card .card-body {
    padding: 25px;
}

/* Metric Sections */
.metric-section {
    margin-bottom: 30px;
}

.metric-section h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Gauge Containers */
.gauge-container {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    height: 120px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.gauge-container canvas {
    max-width: 100%;
    height: auto;
}

.gauge-value {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Reasoning Types */
.reasoning-types {
    margin-bottom: 25px;
}

.reasoning-item {
    background: var(--light-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all var(--transition-speed) ease;
}

.reasoning-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.reasoning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reasoning-type {
    font-weight: 600;
    color: var(--dark-color);
    text-transform: capitalize;
}

.reasoning-weight {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.reasoning-bar {
    background: #dee2e6;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.reasoning-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
    animation: fillAnimation 2s ease-in-out;
}

@keyframes fillAnimation {
    from { width: 0%; }
}

.reasoning-description {
    font-size: 0.9rem;
    color: var(--muted-color);
    font-style: italic;
}

/* Fallacies Section */
.fallacies-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fallacy-count {
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 0.9rem;
    min-width: 24px;
    text-align: center;
}

.fallacy-item {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid var(--danger-color);
}

.fallacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.fallacy-type {
    font-weight: 600;
    color: var(--danger-color);
    text-transform: capitalize;
}

.fallacy-penalty {
    background: var(--danger-color);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.fallacy-description {
    font-size: 0.9rem;
    color: #744d4d;
}

.no-fallacies {
    text-align: center;
    padding: 20px;
    color: var(--success-color);
    font-weight: 500;
}

.no-fallacies i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Evidence Analysis */
.evidence-meter {
    margin-bottom: 25px;
}

.meter-container {
    position: relative;
    margin: 20px 0;
}

.meter-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    border-radius: 10px;
    transition: width 2s ease-in-out;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted-color);
}

/* Evidence Patterns */
.evidence-patterns {
    margin-bottom: 25px;
}

.pattern-grid {
    display: grid;
    gap: 15px;
}

.pattern-category {
    background: var(--light-color);
    border-radius: 8px;
    padding: 15px;
}

.pattern-category h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strong-evidence h5 {
    color: var(--success-color);
}

.weak-evidence h5 {
    color: var(--danger-color);
}

.pattern-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pattern-tag {
    background: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
    transition: all var(--transition-speed) ease;
}

.pattern-tag:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-light);
}

.strong-evidence .pattern-tag {
    border-color: var(--success-color);
    color: var(--success-color);
}

.weak-evidence .pattern-tag {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Word Cloud */
.word-cloud-section {
    margin-bottom: 25px;
}

.word-cloud-container {
    background: var(--light-color);
    border-radius: 8px;
    padding: 20px;
    min-height: 120px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.word-cloud-item {
    padding: 4px 8px;
    background: white;
    border-radius: 15px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.word-cloud-item:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

/* Content Stats */
.content-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: var(--light-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted-color);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* User Feedback */
.comment-overview {
    text-align: center;
    margin-bottom: 25px;
}

.stat-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-success);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-circle .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Stance Chart */
.stance-chart-container {
    margin-bottom: 25px;
    text-align: center;
}

/* Comment Previews */
.recent-comments {
    margin-top: 25px;
}

.comment-preview {
    background: var(--light-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-color);
}

.comment-stance {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.stance-agree {
    background: #d4edda;
    color: #155724;
}

.stance-disagree {
    background: #f8d7da;
    color: #721c24;
}

.stance-neutral {
    background: #e2e3e5;
    color: #383d41;
}

.comment-score {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--muted-color);
    line-height: 1.4;
}

.no-comments {
    text-align: center;
    padding: 30px;
    color: var(--muted-color);
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* Content Display */
.content-display-section {
    margin-bottom: 30px;
}

.content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.content-card .card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.content-metadata .badge {
    margin-left: 8px;
}

.truth-block-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-color);
    padding: 30px;
    background: #fafafa;
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.truth-block-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: serif;
}

/* Calculation Flow */
.calculation-flow-section {
    margin-bottom: 30px;
}

.flow-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.flow-card .card-header {
    background: var(--dark-color);
    color: white;
    padding: 20px;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    min-width: 200px;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.flow-step.final-step {
    background: var(--gradient-success);
    color: white;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.final-step .step-icon {
    background: rgba(255,255,255,0.2);
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.final-step .step-content h4 {
    color: white;
}

.step-formula {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
}

.final-step .step-formula {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.step-result {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.final-result {
    color: white;
    font-size: 1.3rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enhanced Flow Diagram Styles */
.flow-plus {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.step-icon.ai-component {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step-icon.user-component {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.step-icon.total-component {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.step-details {
    margin: 5px 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.step-calculation {
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.1);
    padding: 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 5px 0;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

/* Stance Impact Details */
.stance-impact-details {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.stance-impact-details h5 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.impact-metrics .metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.impact-metrics .metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 500;
    color: #495057;
}

.metric-value {
    font-weight: 600;
    color: var(--primary-color);
}

.stance-distribution-mini .stance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
}

.stance-agree {
    color: #27ae60;
}

.stance-disagree {
    color: #e74c3c;
}

.stance-neutral {
    color: #6c757d;
}

.percentage {
    font-weight: 500;
    color: #495057;
}

/* Stance Distribution Enhancements */
.stance-chart-container {
    margin-bottom: 25px;
}

.stance-chart-container h4 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.chart-explanation {
    margin-bottom: 15px;
    font-style: italic;
}

.chart-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.chart-wrapper canvas {
    max-width: 100%;
    height: auto;
}

.stance-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stance-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.stance-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.stance-color.agree {
    background-color: #27ae60;
}

.stance-color.disagree {
    background-color: #e74c3c;
}

.stance-color.neutral {
    background-color: #6c757d;
}

.stance-text {
    color: #495057;
    font-weight: 500;
}

/* Comment Overview Improvements */
.comment-overview {
    margin-bottom: 25px;
}

.comment-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.stat-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.9;
}

/* Quality Analysis Styling */
.quality-analysis {
    margin-bottom: 25px;
}

.quality-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.quality-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.quality-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column;
        padding: 20px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .flow-plus {
        margin: 10px 0;
    }

    .flow-step {
        min-width: 100%;
        max-width: 300px;
    }

    .stat-circle {
        width: 100px;
        height: 100px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .chart-wrapper {
        max-width: 180px;
    }
}

/* Action Panel */
.action-panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 30px;
    margin-bottom: 30px;
}

.action-panel h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.action-panel p {
    color: var(--muted-color);
    margin-bottom: 0;
}

.action-panel .action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-panel .btn {
    border-radius: 20px;
    padding: 10px 20px;
    transition: all var(--transition-speed) ease;
}

.action-panel .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .analysis-grid .col-lg-4 {
        margin-bottom: 20px;
    }

    .flow-diagram {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }

    .dashboard-header {
        padding: 20px;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .main-score-section {
        padding: 20px;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

    .score-circle::before {
        width: 120px;
        height: 120px;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .analysis-card .card-body {
        padding: 15px;
    }

    .flow-step {
        min-width: auto;
        width: 100%;
    }

    .action-panel .action-buttons {
        justify-content: center;
    }

    .content-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .dashboard-header .col-md-4 {
        margin-top: 15px;
        text-align: center !important;
    }

    .action-buttons .btn {
        margin: 5px;
    }

    .main-score-section .row {
        flex-direction: column;
    }

    .score-breakdown-chart {
        margin-top: 20px;
    }
}

/* Animation Classes */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform var(--transition-speed) ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Chart Containers */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Quality Breakdown Styles */
#qualityBreakdown .quality-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#qualityBreakdown .quality-label {
    font-weight: 500;
}

#qualityBreakdown .quality-value {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Truth Block Content Section in Middle Column */
.truth-block-content-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.truth-block-content-section h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.truth-block-content-section h4 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.truth-block-text-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.truth-block-text-container .truth-block-text {
    background: transparent;
    padding: 0;
    border-left: none;
    font-size: 1rem;
    line-height: 1.5;
}

.truth-block-text-container .truth-block-text::before {
    display: none;
}

.content-metadata .badge {
    margin-right: 8px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stats-grid .stat-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.stats-grid .stat-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
    margin-bottom: 4px;
}

.stats-grid .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    display: block;
}
