/* ============================================
   Burn History Chart
   ============================================ */

:root {
    --chart-line-burn-pct: #d58508;
    --chart-line-burn-rate: #05aac0;
    --chart-grid: rgba(0, 0, 0, 0.08);
    --chart-axis: #4a4a4a;
    --chart-bg: transparent;
}

[data-theme="dark"] {
    --chart-line-burn-pct: #f0a030;
    --chart-line-burn-rate: #20d0e8;
    --chart-grid: rgba(255, 255, 255, 0.06);
    --chart-axis: #888888;
    --chart-bg: transparent;
}

.burn-chart {
    color: var(--color-accent-burnt);
    border-color: var(--color-accent-burnt);
    background-color: var(--color-accent-burnt-bg);
}

.burn-chart h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.burn-chart-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.burn-chart-wrap .uplot {
    width: 100% !important;
}

.burn-chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.7;
}

.burn-chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.5;
}

.burn-chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.burn-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 16px;
    height: 3px;
    display: inline-block;
}

.legend-swatch--burn-pct {
    background-color: var(--chart-line-burn-pct);
}

.legend-swatch--burn-rate {
    background-color: var(--chart-line-burn-rate);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .burn-chart-wrap {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .burn-chart-wrap {
        height: 180px;
    }

    .burn-chart-legend {
        gap: 12px;
        font-size: 0.8rem;
    }
}
