/* Report-specific styles for generated reports and print output */
.report-container { max-width: 800px; margin: 0 auto; padding: 20px; font-family: Arial, sans-serif; }
.report-header { text-align: center; border-bottom: 2px solid #2563eb; padding-bottom: 15px; margin-bottom: 20px; }
.report-title { font-size: 24px; font-weight: 700; color: #1e293b; }
.report-subtitle { font-size: 14px; color: #64748b; }
.report-section { margin-bottom: 25px; page-break-inside: avoid; }
.report-section h3 { font-size: 16px; color: #2563eb; border-bottom: 1px solid #e2e8f0; padding-bottom: 5px; }
.report-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.report-kpi { text-align: center; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; }
.report-kpi .value { font-size: 24px; font-weight: 700; }
.report-kpi .label { font-size: 11px; color: #64748b; }
.report-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-table th { background: #f1f5f9; padding: 6px 8px; text-align: left; border-bottom: 2px solid #e2e8f0; }
.report-table td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; }

@media print {
    body { margin: 0; }
    .report-container { max-width: none; }
}

/* Domain intelligence cards */
.domain-intel-card { padding: 8px; border: 1px solid var(--border-color, #e2e8f0); border-radius: 6px; background: var(--bg-card, #fff); }
.domain-intel-card .d-flex { padding: 2px 0; }

/* News cards */
.news-card { border-left: 3px solid #3b82f6; padding: 8px 12px; margin-bottom: 8px; background: var(--bg-card, #fff); border-radius: 4px; }
.news-card .news-title { font-weight: 600; margin-bottom: 4px; }
.news-card .news-title a { color: inherit; text-decoration: none; }
.news-card .news-title a:hover { text-decoration: underline; }
.news-card .news-meta { font-size: 12px; color: var(--text-muted, #64748b); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.news-category { font-size: 11px; padding: 2px 6px; border-radius: 3px; }

/* Keyword gap matrix */
.gap-matrix { overflow-x: auto; }
.gap-matrix table { font-size: 12px; }
.gap-cell-yes { background: #dcfce7; color: #166534; text-align: center; }
.gap-cell-no { background: #fee2e2; color: #991b1b; text-align: center; }
.gap-cell-gap { background: #fef3c7; color: #92400e; text-align: center; font-weight: 700; }

/* Discovery table */
.discovery-table .relevance-high { color: #166534; font-weight: 700; }
.discovery-table .relevance-medium { color: #854d0e; }
.discovery-table .relevance-low { color: #991b1b; }

/* Trend chart cards */
.trend-chart-card { margin-bottom: 12px; }
.trend-chart-card .card-body { padding: 8px; }
.trend-chart-container { height: 150px; }

/* SSL warnings */
.ssl-warning { color: #dc2626; font-weight: 600; }
.ssl-ok { color: #16a34a; }

/* Dark mode overrides */
[data-theme="dark"] .report-container { color: #e2e8f0; }
[data-theme="dark"] .report-title { color: #f1f5f9; }
[data-theme="dark"] .report-subtitle { color: #94a3b8; }
[data-theme="dark"] .report-section h3 { color: #60a5fa; border-color: #334155; }
[data-theme="dark"] .report-kpi { border-color: #334155; }
[data-theme="dark"] .report-kpi .label { color: #94a3b8; }
[data-theme="dark"] .report-table th { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .report-table td { border-color: #334155; }
[data-theme="dark"] .news-card { background: var(--bg-card, #1e293b); border-left-color: #3b82f6; }
[data-theme="dark"] .gap-cell-yes { background: #14532d; color: #86efac; }
[data-theme="dark"] .gap-cell-no { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .gap-cell-gap { background: #451a03; color: #fcd34d; }
[data-theme="dark"] .domain-intel-card { background: var(--bg-card, #1e293b); border-color: #334155; }

@media (max-width: 576px) {
    .report-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
