/* CFL Dashboard — Wall TV, 4x2 grid
   WHY: Minimal CSS — card-level styling is inline per design template.
   This file handles only: reset, face rotation logic, animation, rotation dots. */

html, body {
  margin: 0;
  padding: 0;
  background: #0a0e17;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

a { color: #cfd8e6; text-decoration: none; }
a:hover { color: #ffffff; }

/* ── Live pulse animation ──────────────────────────────────── */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.82); }
}

.live-dot {
  width: 1vh;
  height: 1vh;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 1.6vh rgba(34,197,94,.7);
  animation: livePulse 1.8s ease-in-out infinite;
}

/* ── Multi-face rotation logic ─────────────────────────────── */
/* WHY: N faces stacked via position:absolute. All start hidden (opacity 0).
   The .active class makes the current face visible. JS cycles through them. */

[data-rotate] [data-face] { opacity: 0; transition: opacity .7s ease; }
[data-rotate] [data-face].active { opacity: 1; }

/* ── Rotation indicator dots ───────────────────────────────── */
/* WHY: Two small bars at bottom of each card show which face is active.
   Matches design: 2.4vh x 0.2vh bars with opacity transitions. */

.rotation-dots {
  display: flex;
  gap: .7vh;
  justify-content: center;
  padding-top: 1.2vh;
  flex: none;
}

.rot-track {
  width: 2.4vh;
  height: .2vh;
  background: #202b3f;
  border-radius: 1px;
  overflow: hidden;
}

.rot-fill {
  width: 100%;
  height: 100%;
  background: #8a97ad;
  transition: opacity .7s ease;
}

/* WHY: Dots are now generated dynamically by JS — no static face-a/b rules needed.
   JS sets opacity on each .rot-fill to match the active face index. */
