/*
 * TruthSignal Fact Analysis
 * Steve Jobs Edition: Insanely Great
 * "Simplicity is the ultimate sophistication"
 */

:root {
    --truth-green: #34C759;
    --truth-yellow: #FF9500;
    --truth-red: #FF3B30;
    --truth-blue: #007AFF;
    --bg-primary: #000000;
    --bg-secondary: #1C1C1E;
    --bg-tertiary: #2C2C2E;
    --text-primary: #FFFFFF;
    --text-secondary: #98989D;
    --separator: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Reset Everything */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.fact-analysis-jobs {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Hero Section - Full Screen Impact */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, #000 0%, #1a1a1a 100%);
}

.credibility-hero {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease;
}

.score-massive {
    font-size: clamp(5rem, 20vw, 12rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--truth-green), var(--truth-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-massive.medium {
    background: linear-gradient(135deg, var(--truth-yellow), var(--truth-green));
}

.score-massive.low {
    background: linear-gradient(135deg, var(--truth-red), var(--truth-yellow));
}

.score-label-hero {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.verdict-statement {
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    color: #FFFFFF;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    animation: fadeInUp 0.8s ease 0.4s backwards, bounce 2s ease infinite;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Card System - Beautiful, Focused Content */
.content-flow {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* Original Post Link Card */
.original-post-link-card {
    margin-bottom: 2rem;
}

.original-post-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1D1D1F 0%, #2C2C2E 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.original-post-link:hover {
    background: linear-gradient(135deg, #2C2C2E 0%, #3C3C3E 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.original-post-link:active {
    transform: translateY(0);
}

.original-post-link .x-icon-link,
.original-post-link .link-icon {
    flex-shrink: 0;
}

.original-post-link .arrow-icon {
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.original-post-link:hover .arrow-icon {
    transform: translateX(4px);
    opacity: 1;
}

@media (max-width: 768px) {
    .original-post-link {
        font-size: 0.938rem;
        padding: 1rem 1.5rem;
    }
}

.content-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--separator);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 16px;
}

.card-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
}

.card-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Issues Card */
.issues-grid {
    display: grid;
    gap: 1rem;
}

.issue-item {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--truth-red);
    transition: transform 0.2s ease;
}

.issue-item:hover {
    transform: translateX(4px);
}

.issue-item.warning {
    border-left-color: var(--truth-yellow);
}

.issue-item.info {
    border-left-color: var(--truth-blue);
}

.issue-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.issue-description {
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Highlighted Content - Immersive */
.highlighted-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.claim-highlight,
.claim-factual,
.claim-emotive,
.claim-opinion,
.claim-prediction,
.claim-satire,
.claim-sarcasm,
.claim-advice,
.claim-fact {
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid transparent;
    position: relative;
}

.claim-highlight:hover,
.claim-factual:hover,
.claim-emotive:hover,
.claim-opinion:hover,
.claim-prediction:hover,
.claim-satire:hover,
.claim-sarcasm:hover,
.claim-advice:hover,
.claim-fact:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.claim-factual,
.claim-fact {
    background: rgba(0, 122, 255, 0.25);
    border-bottom-color: var(--truth-blue);
}

.claim-factual:hover,
.claim-fact:hover {
    background: rgba(0, 122, 255, 0.35);
}

.claim-emotive {
    background: rgba(255, 149, 0, 0.25);
    border-bottom-color: var(--truth-yellow);
}

.claim-emotive:hover {
    background: rgba(255, 149, 0, 0.35);
}

.claim-opinion {
    background: rgba(175, 82, 222, 0.25);
    border-bottom-color: #AF52DE;
}

.claim-opinion:hover {
    background: rgba(175, 82, 222, 0.35);
}

.claim-prediction {
    background: rgba(90, 200, 250, 0.25);
    border-bottom-color: #5AC8FA;
}

.claim-prediction:hover {
    background: rgba(90, 200, 250, 0.35);
}

.claim-satire {
    background: rgba(255, 59, 48, 0.25);
    border-bottom-color: var(--truth-red);
}

.claim-satire:hover {
    background: rgba(255, 59, 48, 0.35);
}

.claim-sarcasm {
    background: rgba(255, 149, 0, 0.25);
    border-bottom-color: var(--truth-yellow);
}

.claim-sarcasm:hover {
    background: rgba(255, 149, 0, 0.35);
}

.claim-advice {
    background: rgba(52, 199, 89, 0.25);
    border-bottom-color: var(--truth-green);
}

.claim-advice:hover {
    background: rgba(52, 199, 89, 0.35);
}

/* Author Card - Personal Touch */
.author-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 20px;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--separator);
    transition: all 0.2s ease;
}

a .author-avatar-large:hover {
    transform: scale(1.05);
    border-color: var(--truth-blue);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.author-info-compact {
    flex: 1;
}

.author-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

a:hover .author-name-large {
    color: var(--truth-blue);
}

.author-trust-score {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--truth-green);
}

.author-trust-score.medium {
    color: var(--truth-yellow);
}

.author-trust-score.low {
    color: var(--truth-red);
}

.author-bio {
    font-size: 0.938rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.author-x-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #1D1D1F;
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.author-x-link:hover {
    background: #F5F5F7;
    border-color: rgba(0, 0, 0, 0.2);
}

.author-x-link svg {
    opacity: 0.7;
}

/* Sources - Clean List */
.sources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.source-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 0; /* Prevent flex overflow */
}

.source-link:hover {
    border-color: var(--truth-blue);
    transform: translateX(4px);
}

.source-number {
    font-weight: 700;
    color: var(--truth-blue);
    font-size: 0.875rem;
}

.source-title {
    flex: 1;
    font-size: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0; /* Allow flex item to shrink below content size */
}

.source-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* Metrics - Minimalist Pills */
.metrics-minimal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.metric-pill-minimal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 24px;
    font-size: 0.938rem;
    font-weight: 600;
}

.metric-value-minimal {
    font-size: 1.25rem;
    color: var(--truth-blue);
}

/* Legend - Subtle */
.legend-minimal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem 0;
    border-top: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
    margin-bottom: 2rem;
}

.legend-item-minimal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-dot-minimal {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Navigation - Minimal */
.nav-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--separator);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    color: var(--truth-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.back-button:hover {
    opacity: 0.7;
}

.share-button {
    background: var(--truth-blue);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.938rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    .content-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .nav-minimal {
        padding: 1rem;
    }

    .metrics-minimal {
        gap: 0.5rem;
    }

    .metric-pill-minimal {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .source-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }

    .source-title {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .source-arrow {
        align-self: flex-end;
    }
}

/* Dark Mode Perfection */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #FFFFFF;
        --bg-secondary: #F2F2F7;
        --bg-tertiary: #FFFFFF;
        --text-primary: #000000;
        --text-secondary: #6E6E73;
        --separator: rgba(0, 0, 0, 0.1);
        --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    .nav-minimal {
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .nav-minimal,
    .scroll-indicator,
    .share-button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   CLAIM MODAL - Steve Jobs Edition
   Beautiful, focused, one claim at a time
   ============================================ */

.claim-modal-jobs {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    animation: fadeIn 0.25s cubic-bezier(0.2, 0, 0, 1);
    padding: 2rem;
    overflow: hidden;
}

.claim-modal-jobs.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.claim-modal-content-jobs {
    background: linear-gradient(145deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 28px;
    max-width: 680px;
    width: 100%;
    max-height: calc(100vh - 4rem);
    overflow-y: scroll;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.06) inset;
    animation: slideUpScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
}

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

@keyframes slideUpScale {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.claim-modal-header-jobs {
    padding: 2.5rem 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.claim-modal-title-jobs {
    flex: 1;
}

.claim-type-badge-jobs {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.claim-type-badge-jobs.factual {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(0, 122, 255, 0.08));
    color: #0D47A1;
    border: 1px solid rgba(0, 122, 255, 0.25);
}

.claim-type-badge-jobs.emotive {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.15), rgba(255, 149, 0, 0.08));
    color: #E65100;
    border: 1px solid rgba(255, 149, 0, 0.25);
}

.claim-type-badge-jobs.opinion {
    background: linear-gradient(135deg, rgba(175, 82, 222, 0.15), rgba(175, 82, 222, 0.08));
    color: #6A1B9A;
    border: 1px solid rgba(175, 82, 222, 0.25);
}

.claim-type-badge-jobs.prediction {
    background: linear-gradient(135deg, rgba(90, 200, 250, 0.15), rgba(90, 200, 250, 0.08));
    color: #01579B;
    border: 1px solid rgba(90, 200, 250, 0.25);
}

.claim-modal-close-jobs {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 1rem;
    font-weight: 300;
}

.claim-modal-close-jobs:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.claim-modal-close-jobs:active {
    transform: scale(0.95);
}

.claim-text-jobs {
    font-size: 1.375rem;
    line-height: 1.65;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 0;
    padding: 0 2.5rem 2rem;
}

.claim-modal-body-jobs {
    padding: 0 2.5rem 2.5rem;
}

/* Scrollbar styling for the entire modal content */
.claim-modal-content-jobs::-webkit-scrollbar {
    width: 8px;
}

.claim-modal-content-jobs::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.claim-modal-content-jobs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.claim-modal-content-jobs::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.claim-section-jobs {
    margin-bottom: 2rem;
}

.claim-section-jobs:last-child {
    margin-bottom: 0;
}

.claim-section-title-jobs {
    font-size: 0.813rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 1.25rem;
}

.probability-display-jobs {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.probability-display-jobs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--truth-red) 0%,
        var(--truth-yellow) 50%,
        var(--truth-green) 100%);
    opacity: 0.8;
}

.probability-percentage-jobs {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.probability-percentage-jobs.high {
    background: linear-gradient(135deg, #2E7D32, var(--truth-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.probability-percentage-jobs.medium {
    background: linear-gradient(135deg, #F57C00, var(--truth-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.probability-percentage-jobs.low {
    background: linear-gradient(135deg, #C62828, var(--truth-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.probability-label-jobs {
    font-size: 1.125rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.evidence-text-jobs {
    background: rgba(0, 0, 0, 0.02);
    padding: 2rem;
    border-radius: 20px;
    font-size: 1.063rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Hover Tooltip - Minimal */
.claim-tooltip-jobs {
    position: fixed;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--separator);
    animation: fadeIn 0.2s ease;
    max-width: 250px;
}

.claim-tooltip-jobs::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
    transform: translateX(-50%) rotate(45deg);
}

.tooltip-type-jobs {
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 0.25rem;
}

.tooltip-hint-jobs {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .claim-modal-jobs {
        padding: 0;
        align-items: flex-end;
    }

    .claim-modal-content-jobs {
        max-height: 92vh;
        width: 100%;
        border-radius: 28px 28px 0 0;
        animation: slideUpMobile 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .claim-modal-header-jobs {
        padding: 2rem 1.75rem 0;
    }

    .claim-modal-body-jobs {
        padding: 0 1.75rem 2rem;
    }

    .claim-text-jobs {
        font-size: 1.25rem;
        padding: 0 1.75rem 1.5rem;
    }

    .probability-percentage-jobs {
        font-size: 3.5rem;
    }

    .probability-display-jobs {
        padding: 2rem 1.5rem;
    }

    .evidence-text-jobs {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .claim-tooltip-jobs {
        max-width: 200px;
        font-size: 0.813rem;
    }
}

@keyframes slideUpMobile {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   COLLAPSIBLE SECTIONS
   ======================================== */

.collapsible-card {
    overflow: visible;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px 24px 0 0;
}

.collapsible-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.issue-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-left: 0.5rem;
}

/* Issues Preview - Visible when collapsed, hidden when expanded */
.issues-preview {
    position: relative;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
}

/* Hide preview when expanded */
.collapsible-card:not(.collapsed-card) .issues-preview {
    max-height: 0;
    opacity: 0;
}

.issue-preview-fade {
    opacity: 0.3;
    pointer-events: none;
    position: relative;
}

.issue-preview-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
    pointer-events: none;
}

.collapsible-toggle {
    flex-shrink: 0;
    margin-left: 1rem;
}

.chevron-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

/* Rotate chevron when collapsed (pointing right) */
.collapsed-card .chevron-icon {
    transform: rotate(-90deg);
}

/* Full content - hidden when collapsed, visible when expanded */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

/* Show full content when expanded */
.collapsible-card:not(.collapsed-card) .collapsible-content {
    max-height: 5000px;
    opacity: 1;
    margin-top: 1.5rem;
}

/* Interpretation Preview */
.interpretation-preview {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
}

.preview-ellipsis {
    color: var(--text-secondary);
    opacity: 0.5;
    margin-left: 0.25rem;
}

.interpretation-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.interpretation-content p {
    margin-bottom: 1rem;
}

.interpretation-content ul,
.interpretation-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.interpretation-content li {
    margin-bottom: 0.5rem;
}

.interpretation-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.interpretation-content em {
    color: var(--text-secondary);
    font-style: italic;
}

.interpretation-content code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.938rem;
}

@media (max-width: 768px) {
    .collapsible-title-row {
        gap: 0.5rem;
    }

    .interpretation-content {
        font-size: 1rem;
    }
}

/* ========================================
   GENERATE X POST BUTTON & MODAL
   Steve Jobs Edition - Simple & Focused
   ======================================== */

/* Generate Tweet Button - Top Right Placement */
.generate-tweet-btn-topright {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(29, 161, 242, 0.3);
    z-index: 10;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.generate-tweet-btn-topright:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
    background: linear-gradient(135deg, #0d8bd9 0%, #1DA1F2 100%);
}

.generate-tweet-btn-topright:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
}

.generate-tweet-btn-topright svg {
    flex-shrink: 0;
}

/* Tweet Modal */
.tweet-modal-jobs {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.25s ease;
}

.tweet-modal-content-jobs {
    background: linear-gradient(145deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.08) inset;
    animation: slideUpScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.tweet-modal-header-jobs {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tweet-modal-title-jobs {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1D1D1F;
    margin: 0;
    letter-spacing: -0.02em;
}

.tweet-modal-close-jobs {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6E6E73;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.tweet-modal-close-jobs:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1D1D1F;
}

.tweet-modal-body-jobs {
    padding: 2rem;
}

.tweet-preview-jobs {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 120px;
}

.tweet-text-jobs {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #1D1D1F;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.tweet-char-count-jobs {
    font-size: 0.875rem;
    color: #6E6E73;
    text-align: right;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.tweet-char-count-jobs span {
    font-weight: 600;
    color: #1D1D1F;
}

.tweet-actions-jobs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-copy-tweet-jobs,
.btn-post-tweet-jobs {
    flex: 1;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

.btn-copy-tweet-jobs {
    background: #FFFFFF;
    color: #1D1D1F;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.btn-copy-tweet-jobs:hover {
    background: #F5F5F7;
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.btn-post-tweet-jobs {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.btn-post-tweet-jobs:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.4);
}

.btn-post-tweet-jobs:active,
.btn-copy-tweet-jobs:active {
    transform: translateY(0);
}

/* =============================================================================
   IMAGE ANALYSIS SECTION
   ============================================================================= */

.image-analysis-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.image-finding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--truth-blue);
}

.image-finding.warning {
    border-left-color: var(--truth-yellow);
    background: rgba(255, 149, 0, 0.05);
}

.image-finding.success {
    border-left-color: var(--truth-green);
    background: rgba(52, 199, 89, 0.05);
}

.image-finding.info {
    border-left-color: var(--truth-blue);
    background: rgba(0, 122, 255, 0.05);
}

.image-finding svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.image-finding span {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.image-analysis-item {
    padding: 1.5rem 0;
}

.image-analysis-item:first-child {
    padding-top: 0;
}

.image-analysis-header {
    margin-bottom: 1.5rem;
}

.image-analysis-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--truth-blue);
}

.analyzed-image-container {
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1rem;
    overflow: hidden;
}

.analyzed-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.analyzed-image:hover {
    cursor: zoom-in;
}

.image-analysis-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-detail-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.image-detail-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.extracted-text {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--truth-blue);
}

.image-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.image-detail-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.image-detail-box.warning {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.3);
}

.image-detail-box.success {
    background: rgba(52, 199, 89, 0.08);
    border-color: rgba(52, 199, 89, 0.3);
}

.image-detail-box.neutral {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.image-detail-box.warning .detail-value {
    color: var(--truth-yellow);
}

.image-detail-box.success .detail-value {
    color: var(--truth-green);
}

.detail-explanation {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.5rem;
}

.image-separator {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    margin: 1.5rem 0;
}

/* =============================================================================
   IMAGE MODAL / LIGHTBOX
   ============================================================================= */

.image-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* =============================================================================
   SOURCE VERIFICATION SECTION
   ============================================================================= */

.source-verify-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Source Verification Metrics (Preview) */
.source-verify-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.verify-metric-box {
    flex: 1;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.2s ease;
}

.verify-metric-box.success {
    background: rgba(52, 199, 89, 0.08);
    border-color: rgba(52, 199, 89, 0.3);
}

.verify-metric-box.warning {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.3);
}

.verify-metric-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.verify-metric-box.success .verify-metric-number {
    color: var(--truth-green);
}

.verify-metric-box.warning .verify-metric-number {
    color: var(--truth-yellow);
}

.verify-metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verify-preview-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 149, 0, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--truth-yellow);
}

.verify-preview-highlight svg {
    flex-shrink: 0;
    color: var(--truth-yellow);
    margin-top: 0.125rem;
}

.verify-preview-highlight span {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.verify-preview-highlight strong {
    color: var(--truth-yellow);
}

@media (max-width: 768px) {
    .source-verify-metrics {
        flex-direction: column;
        gap: 0.75rem;
    }

    .verify-metric-box {
        padding: 1rem;
    }

    .verify-metric-number {
        font-size: 1.75rem;
    }
}

.verify-status-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--truth-blue);
}

.verify-status-pill.success {
    border-left-color: var(--truth-green);
    background: rgba(52, 199, 89, 0.05);
}

.verify-status-pill.warning {
    border-left-color: var(--truth-yellow);
    background: rgba(255, 149, 0, 0.05);
}

.verify-status-pill svg {
    flex-shrink: 0;
}

.verify-status-pill span {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.source-verify-item {
    padding: 1.5rem 0;
}

.source-verify-item:first-child {
    padding-top: 0;
}

.source-verify-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.source-verify-url a {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--truth-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-verify-url a:hover {
    color: #0051D5;
    text-decoration: underline;
}

.source-verify-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.source-verify-status-badge.success {
    background: rgba(52, 199, 89, 0.15);
    color: var(--truth-green);
}

.source-verify-status-badge.warning {
    background: rgba(255, 149, 0, 0.15);
    color: var(--truth-yellow);
}

.source-verify-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verify-detail-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.verify-detail-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.highlight-omission {
    background: rgba(255, 149, 0, 0.08);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 3px solid var(--truth-yellow);
}

.verify-impact-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.verify-impact-badge.high {
    background: rgba(255, 59, 48, 0.15);
    color: var(--truth-red);
}

.verify-impact-badge.medium {
    background: rgba(255, 149, 0, 0.15);
    color: var(--truth-yellow);
}

.verify-impact-badge.low {
    background: rgba(0, 122, 255, 0.15);
    color: var(--truth-blue);
}

.verify-impact-badge.none {
    background: rgba(52, 199, 89, 0.15);
    color: var(--truth-green);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .generate-tweet-btn-topright {
        top: 1rem;
        right: 1rem;
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }

    .generate-tweet-btn-topright svg {
        width: 16px;
        height: 16px;
    }

    .tweet-modal-jobs {
        padding: 1rem;
        align-items: flex-end;
    }

    .tweet-modal-content-jobs {
        max-height: 90vh;
        border-radius: 24px 24px 0 0;
    }

    .tweet-modal-header-jobs {
        padding: 1.5rem 1.5rem 1rem;
    }

    .tweet-modal-title-jobs {
        font-size: 1.25rem;
    }

    .tweet-modal-body-jobs {
        padding: 1.5rem;
    }

    .tweet-text-jobs {
        font-size: 1rem;
    }

    .tweet-actions-jobs {
        flex-direction: column;
    }

    .btn-copy-tweet-jobs,
    .btn-post-tweet-jobs {
        min-width: 100%;
    }

    /* Image Modal Mobile */
    .image-modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .image-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
}

/* ============================================================================
   PREDICTED OUTCOMES SECTION
   ============================================================================ */

.prediction-summary-box {
    background: rgba(0, 122, 255, 0.08);
    border-left: 4px solid var(--truth-blue);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.prediction-summary {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.prediction-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.prediction-header {
    margin-bottom: 1.5rem;
}

.prediction-text {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.prediction-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prediction-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prediction-badge.explicit {
    background: rgba(52, 199, 89, 0.15);
    color: var(--truth-green);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.prediction-badge.insinuation {
    background: rgba(255, 149, 0, 0.15);
    color: var(--truth-yellow);
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.prediction-badge.assumption {
    background: rgba(255, 59, 48, 0.15);
    color: var(--truth-red);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.prediction-badge.timeframe {
    background: rgba(0, 122, 255, 0.15);
    color: var(--truth-blue);
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.prediction-badge.certainty {
    background: rgba(152, 152, 157, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(152, 152, 157, 0.3);
}

/* Outcomes Section */
.outcomes-section {
    margin-bottom: 1.5rem;
}

.outcomes-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.outcome-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--text-secondary);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.outcome-item.severity-high {
    border-left-color: var(--truth-red);
    background: rgba(255, 59, 48, 0.05);
}

.outcome-item.severity-medium {
    border-left-color: var(--truth-yellow);
    background: rgba(255, 149, 0, 0.05);
}

.outcome-item.severity-low {
    border-left-color: var(--truth-blue);
    background: rgba(0, 122, 255, 0.05);
}

.outcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.outcome-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.outcome-type-badge.direct {
    background: rgba(52, 199, 89, 0.2);
    color: var(--truth-green);
}

.outcome-type-badge.indirect {
    background: rgba(255, 149, 0, 0.2);
    color: var(--truth-yellow);
}

.outcome-probability {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--truth-blue);
}

.outcome-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.outcome-affected,
.outcome-reasoning,
.outcome-precedent {
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.outcome-affected strong,
.outcome-reasoning strong,
.outcome-precedent strong {
    color: var(--text-primary);
}

/* Omitted Outcomes */
.omitted-outcomes-section {
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.omitted-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--truth-yellow);
    margin-bottom: 1rem;
}

.omitted-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.omitted-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Prediction Credibility */
.prediction-credibility {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
}

.credibility-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.credibility-score-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.credibility-score {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    min-width: 100px;
    text-align: center;
}

.credibility-score.high {
    color: var(--truth-green);
}

.credibility-score.medium {
    color: var(--truth-yellow);
}

.credibility-score.low {
    color: var(--truth-red);
}

.credibility-reasoning {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.credibility-track-record {
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credibility-track-record strong {
    color: var(--text-primary);
}

/* Overall Risk Assessment */
.overall-risk-box {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 149, 0, 0.1) 100%);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.risk-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--truth-yellow);
    margin-bottom: 1rem;
}

.risk-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .prediction-text {
        font-size: 1.125rem;
    }

    .outcome-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .credibility-score-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .credibility-score {
        font-size: 2rem;
    }
}

/* Preview styles for collapsed Predicted Outcomes */
.prediction-summary-box-preview {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.prediction-metrics-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prediction-preview-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
}

.prediction-preview-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.prediction-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.813rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    text-transform: capitalize;
}

.prediction-more-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-align: center;
    opacity: 0.7;
}

/* Bayesian Analysis Display - CLAUDE.md compliant */
.outcome-probability-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.outcome-probability-main {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--truth-blue);
}

.outcome-confidence-interval {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0.8;
}

.bayesian-box {
    background: rgba(0, 122, 255, 0.03);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.25rem 0;
}

.bayesian-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bayesian-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.bayesian-step {
    flex: 1;
    text-align: center;
}

.bayesian-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.bayesian-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.bayesian-source,
.bayesian-quality {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.3;
}

.bayesian-arrow {
    font-size: 1.5rem;
    color: var(--truth-blue);
    flex-shrink: 0;
}

.bayesian-factors {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.factors-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.factors-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.factors-list li {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Mobile responsive for Bayesian flow */
@media (max-width: 768px) {
    .bayesian-flow {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .bayesian-value {
        font-size: 1.5rem;
    }

    .outcome-probability-main {
        font-size: 1.5rem;
    }
}
