/* Calendar Heatmap */
.heatmap-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.heatmap-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-tertiary);
}

.heatmap-legend-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.heatmap-day-label {
    font-size: 9px;
    color: var(--text-tertiary);
    text-align: center;
    padding-bottom: 6px;
    letter-spacing: 0.05em;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--bg-deep);
    position: relative;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

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

.heatmap-cell.profit-1 { background: rgba(52, 211, 153, 0.25); }
.heatmap-cell.profit-2 { background: rgba(52, 211, 153, 0.45); }
.heatmap-cell.profit-3 { background: rgba(52, 211, 153, 0.65); }
.heatmap-cell.profit-4 { background: var(--positive); }
.heatmap-cell.loss-1 { background: rgba(248, 113, 113, 0.25); }
.heatmap-cell.loss-2 { background: rgba(248, 113, 113, 0.45); }
.heatmap-cell.loss-3 { background: rgba(248, 113, 113, 0.65); }
.heatmap-cell.loss-4 { background: var(--negative); }
.heatmap-cell.today { box-shadow: inset 0 0 0 2px var(--gold); }

.heatmap-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-subtle);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s;
    pointer-events: none;
    z-index: 100;
}

.heatmap-cell:hover .heatmap-tooltip {
    opacity: 1;
    visibility: visible;
}
