/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.alert-box {
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 25px;
    border-radius: 12px;
    margin: 40px auto 0;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.alert-box.critical {
    border-left: 5px solid #ef4444;
}

.alert-box h3 {
    color: #ef4444;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8fafc;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1e293b;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.summary-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.summary-card h3 {
    color: #2563eb;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.summary-card ul {
    list-style: none;
}

.summary-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-card li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.metric-value {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.1rem;
}

/* Fact Check Section */
.fact-check-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #ef4444;
}

.fact-check-header {
    background: #fef2f2;
    padding: 25px;
    border-bottom: 1px solid #fecaca;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.status-badge.false {
    background: #ef4444;
    color: white;
}

.status-badge.unverified {
    background: #f59e0b;
    color: white;
}

.fact-check-content {
    padding: 30px;
}

.claim-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.claim-box h4 {
    color: #92400e;
    margin-bottom: 10px;
}

.evidence-section h4 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.evidence-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.evidence-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.evidence-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.evidence-text strong {
    color: #2563eb;
    display: block;
    margin-bottom: 5px;
}

.conclusion-box {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 25px;
}

.conclusion-box h4 {
    color: #0c4a6e;
    margin-bottom: 15px;
}

.conclusion-box ul {
    margin-top: 15px;
    padding-left: 20px;
}

/* Company Analysis */
.company-overview {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.company-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.analysis-card {
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid;
}

.analysis-card.positive {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.analysis-card.neutral {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.analysis-card.negative {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.analysis-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.analysis-card ul {
    list-style: none;
}

.analysis-card li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.analysis-card.positive li:before {
    content: "✓";
    color: #10b981;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.analysis-card.neutral li:before {
    content: "⚠";
    color: #f59e0b;
    position: absolute;
    left: 0;
}

.analysis-card.negative li:before {
    content: "⚠";
    color: #ef4444;
    position: absolute;
    left: 0;
}

/* Project Spotlight */
.project-spotlight {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.project-spotlight h4 {
    color: #2563eb;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.project-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.project-info p {
    margin-bottom: 10px;
}

.risk-indicator {
    text-align: center;
}

.risk-level {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.risk-level.low {
    background: #dcfce7;
    color: #166534;
}

.risk-level.medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-level.low-medium {
    background: #dbeafe;
    color: #1e40af;
}

.risk-label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.risk-reason {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Comparison Section */
.comparison-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.comparison-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.comparison-content.active {
    display: block;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.comparison-table tr:hover {
    background: #f8fafc;
}

/* Financial Metrics */
.financial-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.metric-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.metric-card h4 {
    color: #2563eb;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

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

.value {
    font-weight: 600;
}

.value.success {
    color: #10b981;
}

/* Track Record */
.track-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.track-record-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.track-record-card h4 {
    color: #2563eb;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.achievement:last-child {
    border-bottom: none;
}

.achievement-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Risk Analysis */
.risk-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.risk-chart-container {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.risk-factors h4 {
    margin-bottom: 25px;
    color: #1e293b;
}

.risk-factor {
    margin-bottom: 25px;
}

.factor-name {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.risk-bar {
    height: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    position: relative;
    margin-bottom: 5px;
    overflow: hidden;
}

.risk-level-eb5 {
    height: 100%;
    background: #ef4444;
    border-radius: 10px 0 0 10px;
    position: absolute;
    left: 0;
    top: 0;
}

.risk-level-homefed {
    height: 100%;
    background: #10b981;
    border-radius: 0 10px 10px 0;
    position: absolute;
    right: 0;
    top: 0;
}

.risk-note {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

/* Risk Score Summary */
.risk-score-summary {
    margin-top: 50px;
    text-align: center;
}

.risk-score-summary h3 {
    margin-bottom: 30px;
    color: #1e293b;
}

.score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.score-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.score-card h4 {
    margin-bottom: 20px;
    color: #1e293b;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 8px solid;
}

.score-circle.medium-high {
    border-color: #f59e0b;
    background: #fef3c7;
}

.score-circle.low-medium {
    border-color: #10b981;
    background: #dcfce7;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.score-max {
    font-size: 1.2rem;
    color: #64748b;
}

.score-label {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.score-reason {
    color: #64748b;
    font-size: 0.9rem;
}

/* Recommendation Section */
.recommendation-summary {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #10b981;
}

.recommendation-header {
    background: #f0fdf4;
    padding: 25px;
    border-bottom: 1px solid #bbf7d0;
}

.recommendation-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    background: #10b981;
    color: white;
}

.recommendation-content {
    padding: 40px;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.reason-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.reason-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.reason-text strong {
    display: block;
    color: #1e293b;
    margin-bottom: 5px;
}

.caution-section {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.caution-section h4 {
    color: #92400e;
    margin-bottom: 15px;
}

.caution-section ul {
    padding-left: 20px;
}

.caution-section li {
    margin-bottom: 8px;
}

.action-items {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.action-items h4 {
    color: #0c4a6e;
    margin-bottom: 15px;
}

.action-items ol {
    padding-left: 20px;
}

.action-items li {
    margin-bottom: 10px;
}

.disclaimer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
}

.disclaimer h4 {
    color: #1e293b;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #f1f5f9;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 5px 0;
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .company-header {
        flex-direction: column;
        text-align: center;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .risk-analysis {
        grid-template-columns: 1fr;
    }
    
    .comparison-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .company-overview,
    .comparison-content,
    .recommendation-summary {
        padding: 25px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .comparison-controls {
        display: none;
    }
    
    .section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
    
    .hero {
        background: #667eea;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .comparison-content {
        display: block !important;
        page-break-before: always;
    }
    
    .score-circle {
        border: 4px solid #333 !important;
    }
}