.chart-container {
    position: relative;
    width: 100%;
    max-height: 500px;
}

.heatmap-grid {
    display: grid;
    gap: 3px;
    overflow-x: auto;
    padding: 4px;
}

.heatmap-header {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 6px 4px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 50px;
}

.heatmap-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 6px 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--font-mono);
}

.heatmap-label a {
    color: var(--text-secondary);
    text-decoration: none;
}

.heatmap-label a:hover {
    color: var(--gold);
}

.heatmap-cell {
    border-radius: 4px;
    min-height: 36px;
    min-width: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 0 12px rgba(204, 153, 51, 0.4);
}

.heatmap-cell .tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 0.75rem;
    z-index: 100;
    color: var(--text-primary);
    pointer-events: none;
}

.heatmap-cell:hover .tooltip { display: block; }

.legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 3px;
}
