/* Founding Trends Chart Styles */

#foundingTrendsChart {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #foundingTrendsChart {
        background: #1e1e2e;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    #foundingTrendsChart .axis-label,
    #foundingTrendsChart .chart-title {
        fill: #e0e0e0;
    }

    #foundingTrendsChart .x-axis text,
    #foundingTrendsChart .y-axis text {
        fill: #d0d0d0;
    }

    #foundingTrendsChart .x-axis path,
    #foundingTrendsChart .x-axis line,
    #foundingTrendsChart .y-axis path,
    #foundingTrendsChart .y-axis line {
        stroke: #4a4a5e;
    }
}

/* Chart SVG */
#foundingTrendsChart svg {
    display: block;
    margin: 0 auto;
}

/* Bars */
#foundingTrendsChart .bar {
    cursor: pointer;
    transition: all 0.2s ease;
}

#foundingTrendsChart .bar:hover {
    opacity: 1 !important;
}

/* Axes */
#foundingTrendsChart .x-axis path,
#foundingTrendsChart .x-axis line,
#foundingTrendsChart .y-axis path,
#foundingTrendsChart .y-axis line {
    stroke: #666;
    stroke-width: 1.5px;
}

#foundingTrendsChart .x-axis text,
#foundingTrendsChart .y-axis text {
    fill: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Axis labels */
#foundingTrendsChart .axis-label {
    fill: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Chart title */
#foundingTrendsChart .chart-title {
    fill: #1a1a2e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Tooltip */
.chart-tooltip {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.2s ease;
}

.chart-tooltip strong {
    color: #4a90e2;
    font-weight: 700;
}

/* Loading state */
#foundingTrendsChart.loading {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#foundingTrendsChart.loading::after {
    content: "Loading chart data...";
    font-size: 16px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    #foundingTrendsChart {
        padding: 1rem;
        margin: 1rem auto;
    }

    #foundingTrendsChart .chart-title {
        font-size: 16px !important;
    }

    #foundingTrendsChart .axis-label {
        font-size: 12px !important;
    }

    #foundingTrendsChart .x-axis text,
    #foundingTrendsChart .y-axis text {
        font-size: 10px !important;
    }

    .chart-tooltip {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    #foundingTrendsChart {
        padding: 0.5rem;
    }

    #foundingTrendsChart .chart-title {
        font-size: 14px !important;
    }

    #foundingTrendsChart .axis-label {
        font-size: 11px !important;
    }
}

/* Print styles */
@media print {
    #foundingTrendsChart {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .chart-tooltip {
        display: none;
    }
}
