/* styles/widgets/streak-wall.css
 *
 * Extracted from styles/main.css during T4#20 (the May-2026
 * CSS-split refactor). Originally lived at lines 5026-5092
 * of main.css. Cascade order is preserved: main.css loads first
 * (themes + base + modal/tab/layout infra), then per-widget
 * files in alphabetical order via <link> tags in index.html.
 */

/* ── STREAK WALL (Slice 4) ─────────────────────────────────────
   Tile grid where each tile = one habit. Tile color tracks the
   habit's accent and intensifies as the streak grows. Broken
   streaks turn red. */
.streak-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    padding: 6px 0;
}
.streak-tile {
    --habit-color: var(--green);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in oklab, var(--habit-color) 8%, var(--surface2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.15s, box-shadow 0.15s;
}
.streak-tile:hover { transform: translateY(-1px); }
.streak-tile-medium {
    background: color-mix(in oklab, var(--habit-color) 24%, var(--surface2));
    border-color: var(--habit-color);
}
.streak-tile-strong {
    background: color-mix(in oklab, var(--habit-color) 45%, var(--surface));
    border-color: var(--habit-color);
    box-shadow: 0 0 12px color-mix(in oklab, var(--habit-color) 30%, transparent);
}
.streak-tile-broken {
    background: color-mix(in oklab, var(--red) 18%, var(--surface2));
    border-color: var(--red);
    color: var(--red);
}
.streak-tile-icon {
    font-size: 22px;
    line-height: 1;
}
.streak-tile-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.streak-tile-broken .streak-tile-num { color: var(--red); }
.streak-tile-name {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    max-width: 100%;
}

