/* ── Availability heatmap — Phase 22 ────────────────────────────────── */

.heatmap {
    display: grid;
    grid-template-columns: 2.5rem repeat(7, 1fr);
    gap: 3px;
    margin: 1rem 0;
    max-width: 540px;
}

.heatmap__corner { /* empty top-left cell */ }

.heatmap__col-header,
.heatmap__row-header {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    padding: 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heatmap__row-header {
    justify-content: flex-end;
    padding-right: 6px;
    font-size: 0.65rem;
}

.heatmap__cell {
    aspect-ratio: 1;
    border-radius: 3px;
    cursor: default;
    transition: opacity 0.15s, transform 0.1s;
    position: relative;
}
.heatmap__cell:hover {
    opacity: 0.85;
    transform: scale(1.15);
    z-index: 2;
}

/* Color scale */
.heatmap__cell--high   { background: #00ed64; }
.heatmap__cell--mid    { background: #f0b429; }
.heatmap__cell--low    { background: #ef4444; }
.heatmap__cell--none   { background: rgba(255,255,255,0.06); }

/* Legend */
.heatmap__legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.heatmap__legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.heatmap__legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}
.heatmap__legend-item--high::before  { background: #00ed64; }
.heatmap__legend-item--mid::before   { background: #f0b429; }
.heatmap__legend-item--low::before   { background: #ef4444; }
.heatmap__legend-item--none::before  { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }

/* Summary line */
.heatmap__summary {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0.75rem 0 0;
}
.heatmap__summary strong { color: var(--color-text); }

/* Tooltip */
.heatmap__tooltip {
    position: fixed;
    z-index: 100;
    background: #0a2030;
    border: 1px solid rgba(0,237,100,0.2);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: var(--color-text);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ── Difficulty cards — Phase 22 ─────────────────────────────────────── */

.difficulty-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
@media (max-width: 640px) {
    .difficulty-cards { grid-template-columns: 1fr; }
}

.difficulty-group__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.75rem;
}
.difficulty-group__title--easy { color: #00ed64; }
.difficulty-group__title--hard { color: #ef4444; }

.difficulty-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.difficulty-card--easy { border-left: 3px solid #00ed64; }
.difficulty-card--hard { border-left: 3px solid #ef4444; }

.difficulty-card__date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}
.difficulty-card__score {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.difficulty-card__cta {
    align-self: flex-start;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
}

/* ── Drops chart — Phase 22 ──────────────────────────────────────────── */

.cg-drops-chart__callout {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}
.cg-drops-chart__callout strong { color: var(--color-text); }
.cg-drops-chart__callout a { color: var(--color-accent); text-decoration: none; }
.cg-drops-chart__callout a:hover { text-decoration: underline; }

.cg-drops-chart__wrap {
    max-width: 640px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
