/* ============================================================
   wall-display.css — Radianz TV Wall Display
   Global styles loaded only for the /wall-display page.
   All tokens reference v2-design-system.css custom properties.
   ============================================================ */

/* ── 1. Page reset for kiosk mode ──────────────────────────── */
body.wd-kiosk-mode {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--v2-void, #060810);
    color: var(--v2-text-bright, #f0f2f6);
    cursor: none; /* hide the cursor on the TV */
}

body.wd-kiosk-mode * {
    box-sizing: border-box;
}

/* ── 2. Anti-burn-in pixel shift keyframe ───────────────────── */
/*
  Applied via JS: WallDisplay.applyPixelShift(elementId, x, y)
  The .wdp-root wrapper transitions its transform smoothly (2s ease-in-out)
  so the shift is imperceptible to viewers but effective against OLED retention.
  Max shift = ±3px — enough to prevent static pixels, invisible at TV distance.
*/

/* ── 3. TV-optimised typography scale ───────────────────────── */
/*
  The 80" screen at ~2m viewing distance: 1px CSS ≈ 0.5 mm visible.
  Base font should be ≥ 18px for comfortable reading.
  Use clamp() so the system degrades gracefully on smaller screens.
*/
.wd-tv-text-xs  { font-size: clamp(0.75rem, 1.2vw, 1rem);   }
.wd-tv-text-sm  { font-size: clamp(0.9rem,  1.5vw, 1.25rem); }
.wd-tv-text-md  { font-size: clamp(1rem,    2vw,   1.5rem);  }
.wd-tv-text-lg  { font-size: clamp(1.25rem, 2.5vw, 2rem);   }
.wd-tv-text-xl  { font-size: clamp(1.75rem, 3.5vw, 3rem);   }
.wd-tv-text-2xl { font-size: clamp(2.5rem,  5vw,   4.5rem); }
.wd-tv-text-3xl { font-size: clamp(3.5rem,  8vw,   7rem);   }

/* ── 4. Shared slide chrome ─────────────────────────────────── */
.wd-slide-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(1.5rem, 3vw, 3.5rem);
    gap: clamp(1rem, 2vw, 2rem);
}

.wd-slide-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.wd-slide-icon {
    width: clamp(2.5rem, 4vw, 4rem);
    height: clamp(2.5rem, 4vw, 4rem);
    border-radius: 50%;
    background: var(--v2-accent-bg, rgba(33, 70, 255, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-accent, #2146FF);
    font-size: clamp(1rem, 2vw, 1.5rem);
    flex-shrink: 0;
}

.wd-slide-title {
    font-family: var(--v2-font-display, 'Space Grotesk', sans-serif);
    font-weight: 700;
    color: var(--v2-text-bright, #f0f2f6);
    margin: 0;
    letter-spacing: -0.01em;
}

.wd-slide-subtitle {
    font-family: var(--v2-font-mono, 'IBM Plex Mono', monospace);
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    color: var(--v2-text-ghost, #444d60);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.wd-slide-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── 5. Stat chip ────────────────────────────────────────────── */
.wd-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--v2-radius-sm, 6px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--v2-border, rgba(255, 255, 255, 0.09));
    font-family: var(--v2-font-mono, 'IBM Plex Mono', monospace);
    color: var(--v2-text, #d0d5de);
}

.wd-stat-chip--accent {
    background: var(--v2-accent-bg, rgba(33, 70, 255, 0.08));
    border-color: rgba(33, 70, 255, 0.25);
    color: var(--v2-accent-light, #7080ff);
}

.wd-stat-chip--success {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.25);
    color: var(--v2-success, #4ade80);
}

.wd-stat-chip--error {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.25);
    color: var(--v2-error, #f87171);
}

/* ── 6. Loading / error state ────────────────────────────────── */
.wd-slide-loading,
.wd-slide-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: var(--v2-text-ghost, #444d60);
}

.wd-slide-error {
    color: var(--v2-error, #f87171);
}

/* ── 7. Heatmap cell (used by Sprint 2 heatmap slides) ─────── */
.wd-heatmap-cell {
    border-radius: 3px;
    transition: background 0.3s;
}

.wd-heatmap-0 { background: rgba(255, 255, 255, 0.04); }
.wd-heatmap-1 { background: rgba(33, 70, 255, 0.20);  }
.wd-heatmap-2 { background: rgba(33, 70, 255, 0.40);  }
.wd-heatmap-3 { background: rgba(33, 70, 255, 0.65);  }
.wd-heatmap-4 { background: rgba(33, 70, 255, 0.90);  }
