/**
 * Electronic Music Charts - Styles
 */

.emc-charts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.emc-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.emc-header h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.emc-subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    margin: 0;
    font-style: italic;
}

.emc-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.emc-chart-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emc-chart-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.emc-chart-wrapper.emc-full-width {
    grid-column: 1 / -1;
}

.emc-chart-wrapper h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #34495e;
    font-size: 1.4em;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.emc-chart-wrapper > div[id^="emc-"] {
    min-height: 350px;
}

/* Dark theme support */
.emc-charts-container[data-theme="dark"] {
    background: #1a1a2e;
    color: #eee;
}

.emc-charts-container[data-theme="dark"] .emc-header {
    border-bottom-color: #16213e;
}

.emc-charts-container[data-theme="dark"] .emc-header h2 {
    color: #eee;
}

.emc-charts-container[data-theme="dark"] .emc-subtitle {
    color: #95a5a6;
}

.emc-charts-container[data-theme="dark"] .emc-chart-wrapper {
    background: #16213e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.emc-charts-container[data-theme="dark"] .emc-chart-wrapper h3 {
    color: #eee;
    border-bottom-color: #0f3460;
}

/* Responsive design */
@media (max-width: 1024px) {
    .emc-charts-grid {
        grid-template-columns: 1fr;
    }

    .emc-chart-wrapper.emc-full-width {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .emc-charts-container {
        padding: 20px 10px;
    }

    .emc-header h2 {
        font-size: 1.8em;
    }

    .emc-subtitle {
        font-size: 1em;
    }

    .emc-chart-wrapper {
        padding: 20px;
    }

    .emc-chart-wrapper h3 {
        font-size: 1.2em;
    }

    .emc-charts-grid {
        gap: 25px;
    }
}

/* Loading animation */
.emc-chart-wrapper > div[id^="emc-"]:empty::after {
    content: "Loading chart...";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    color: #95a5a6;
    font-style: italic;
}

/* ApexCharts custom styling */
.apexcharts-tooltip {
    background: rgba(0, 0, 0, 0.85) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.apexcharts-tooltip-title {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}
