/* Pre-Research Report Styles - Polished */

/* Typography System */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
}

h1 { font-size: 42px; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 32px; line-height: 1.3; margin: 48px 0 24px; }
h3 { font-size: 24px; line-height: 1.4; margin: 32px 0 16px; }
h4 { font-size: 18px; line-height: 1.5; margin: 24px 0 12px; }

/* Disclaimer - More prominent */
.pre-research-disclaimer {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CC 100%);
    border: 2px solid #FFB020;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: 0 4px 12px rgba(255, 176, 32, 0.1);
}

.disclaimer-badge {
    background: #FF9500;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 16px;
}

.pre-research-disclaimer p {
    font-size: 16px;
    line-height: 1.8;
    margin: 12px 0;
    color: #5a4a2a;
}

.pre-research-disclaimer ul {
    margin: 16px 0;
    padding-left: 24px;
}

.pre-research-disclaimer li {
    margin: 8px 0;
    line-height: 1.7;
}

/* Confidence Legend */
.confidence-legend {
    background: #F7F7F7;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 48px;
}

.confidence-legend h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.legend-items {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-desc {
    color: #6b7280;
    font-size: 14px;
}

/* Confidence Badges - Better contrast & sizing */
.confidence-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 12px;
}

.confidence-badge.strong-signal {
    background: #10B981;
    color: white;
}

.confidence-badge.emerging-pattern {
    background: #F59E0B;
    color: white;
}

.confidence-badge.hypothesis {
    background: #3B82F6;
    color: white;
}

/* Legacy badge class names for backwards compatibility */
.confidence-badge.strong {
    background: #10B981;
    color: white;
}

.confidence-badge.emerging {
    background: #F59E0B;
    color: white;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.priority-badge.high {
    background: #FEE2E2;
    color: #DC2626;
}

.priority-badge.medium {
    background: #FEF3C7;
    color: #D97706;
}

.priority-badge.low {
    background: #E0F2FE;
    color: #0284C7;
}

.job-step-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    background: #F0F0F0;
    color: #333;
}

/* Outcome Cards - Better spacing & hierarchy */
.outcome-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.outcome-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.outcome-card.priority-high {
    border-left: 4px solid #DC2626;
}

.outcome-card.priority-medium {
    border-left: 4px solid #D97706;
}

.outcome-card.priority-low {
    border-left: 4px solid #0284C7;
}

.outcome-header {
    margin-bottom: 16px;
}

.outcome-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.outcome-statement {
    font-size: 20px;
    line-height: 1.5;
    margin: 16px 0;
    color: #1a1a1a;
    font-weight: 600;
}

/* Source Citations - Better readability */
.sources-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.sources-section h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 16px;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.source-item {
    margin: 16px 0;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

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

.source-type {
    font-size: 12px;
    font-weight: 600;
    color: #3B82F6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.source-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.source-quote {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
    margin: 12px 0;
    padding-left: 16px;
    border-left: 3px solid #e5e7eb;
}

.source-link {
    font-size: 13px;
    color: #3B82F6;
    text-decoration: none;
    word-break: break-all;
    display: inline-block;
    margin-top: 8px;
}

.source-link:hover {
    text-decoration: underline;
}

.link-icon {
    margin-right: 4px;
}

.source-link-missing {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    display: inline-block;
    margin-top: 8px;
}

.source-note {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* Competitive Reality */
.competitive-section {
    margin-top: 48px;
}

.section-intro {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.competitive-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.competitive-card h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 20px;
    color: #1a1a1a;
}

.competitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.competitor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
}

.competitor-item.has-feature {
    background: #E8F5E9;
    border: 1px solid #10B981;
}

.competitor-item.partial-feature {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
}

.competitor-item.missing-feature {
    background: #FFEBEE;
    border: 1px solid #DC2626;
}

.competitor-name {
    font-weight: 600;
    font-size: 14px;
}

.feature-status {
    font-size: 16px;
    font-weight: 600;
}

.competitor-item.has-feature .feature-status {
    color: #10B981;
}

.competitor-item.partial-feature .feature-status {
    color: #F59E0B;
}

.competitor-item.missing-feature .feature-status {
    color: #DC2626;
}

.evidence-block {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.evidence-block h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.evidence-text {
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.gap-hypothesis {
    background: #FFF9E6;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #F59E0B;
    margin-bottom: 20px;
}

.gap-hypothesis h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #D97706;
}

.gap-hypothesis p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5a4a2a;
}

.last-checked {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Interview Guide - Better visual hierarchy */
.interview-guide-section {
    margin-top: 48px;
}

.hypothesis-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px solid #3B82F6;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.hypothesis-header {
    margin-bottom: 16px;
}

.hypothesis-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #1e40af;
}

.interview-section {
    margin-bottom: 24px;
}

.interview-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.question-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.question-list li {
    padding: 12px 16px;
    margin: 8px 0;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #3B82F6;
    font-size: 15px;
    line-height: 1.6;
}

.question-list li::before {
    content: "Q: ";
    font-weight: 700;
    color: #3B82F6;
    margin-right: 6px;
}

.validation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .validation-grid {
        grid-template-columns: 1fr;
    }
}

.validation-box {
    padding: 20px;
    border-radius: 8px;
    background: white;
}

.validation-box.validates {
    border: 2px solid #10B981;
}

.validation-box.invalidates {
    border: 2px solid #DC2626;
}

.validation-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.validation-box.validates h4 {
    color: #10B981;
}

.validation-box.invalidates h4 {
    color: #DC2626;
}

.validation-box ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.validation-box ul li {
    padding: 10px 16px;
    margin: 6px 0;
    background: #F9FAFB;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.validation-box.validates ul li {
    border-left: 3px solid #10B981;
}

.validation-box.invalidates ul li {
    border-left: 3px solid #DC2626;
}

.recommended-interviewees {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.recommended-interviewees h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.recommended-interviewees p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* Executive Summary */
.executive-summary {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px solid #3B82F6;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 64px;
}

.executive-summary h2 {
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 32px;
    text-align: center;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.summary-card.highlight {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    grid-column: span 3;
}

.summary-card .card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.summary-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #1a1a1a;
}

.summary-card p,
.summary-card ol,
.summary-card ul {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

.gap-list {
    list-style: none;
    padding: 0;
}

.gap-list li {
    padding: 8px 0;
    border-bottom: 1px solid #FEE2E2;
}

.gap-list li:last-child {
    border-bottom: none;
}

.evidence-stats {
    display: flex;
    justify-content: space-around;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.evidence-stats .stat {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.evidence-stats .stat strong {
    display: block;
    font-size: 24px;
    color: #3B82F6;
    margin-bottom: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; margin: 32px 0 16px; }
    h3 { font-size: 20px; }
    
    .pre-research-disclaimer {
        padding: 24px;
    }
    
    .outcome-card {
        padding: 24px;
    }
    
    .competitive-card {
        padding: 24px;
    }
    
    .hypothesis-card {
        padding: 24px;
    }
    
    .competitor-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .summary-card.highlight {
        grid-column: span 1;
    }
    
    .evidence-stats {
        flex-direction: column;
        gap: 16px;
    }
}
