/*
 * Client Dashboard mockup — scoped styles.
 *
 * Converted from design-source/Marketing Mockups/Client Dashboard.dc.html
 * (<helmet> block). Every selector is scoped under .mk-client-dashboard and
 * keyframes carry the mkcd- prefix, so several instances and other mockups
 * can coexist on one page.
 *
 * Entrance animations (riseIn/popIn stagger, satellite drift, mint pulse) are
 * gated by the .play class, added per instance by js/mockups/client-dashboard.js
 * on intersection. Per-element animation-duration and animation-delay (the
 * stagger) live inline in the template; the name/timing/fill live here.
 */

.mk-client-dashboard,
.mk-client-dashboard *{ box-sizing:border-box; }
.mk-client-dashboard{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.mk-client-dashboard [style*="border-radius"]{ corner-shape: squircle; }

@keyframes mkcd-riseIn{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
@keyframes mkcd-popIn{ from{ opacity:0; transform:translateY(8px) scale(0.92); } to{ opacity:1; transform:none; } }
@keyframes mkcd-drift{ 0%,100%{ transform:translateY(-9px) rotate(-0.5deg); } 50%{ transform:translateY(10px) rotate(0.5deg); } }
@keyframes mkcd-pulse{ 0%{ box-shadow:0 0 0 0 rgba(62,214,150,0.55); } 70%{ box-shadow:0 0 0 6px rgba(62,214,150,0); } 100%{ box-shadow:0 0 0 0 rgba(62,214,150,0); } }

/* Hidden until this instance starts playing (JS adds .play on intersection). */
.mk-client-dashboard:not(.play) .mkcd-rise,
.mk-client-dashboard:not(.play) .mkcd-pop,
.mk-client-dashboard:not(.play) .mkcd-pop-b{ opacity:0; }

/* Play state. Backwards fill keeps staggered elements hidden through their delay,
   matching the source's `animation: … backwards` on-load behavior. */
.mk-client-dashboard.play .mkcd-rise{ animation-name:mkcd-riseIn; animation-timing-function:cubic-bezier(.22,.61,.21,1); animation-fill-mode:backwards; }
.mk-client-dashboard.play .mkcd-pop{ animation-name:mkcd-popIn; animation-timing-function:cubic-bezier(.22,.61,.21,1); animation-fill-mode:backwards; }
.mk-client-dashboard.play .mkcd-pop-b{ animation-name:mkcd-popIn; animation-timing-function:cubic-bezier(.34,1.45,.45,1); animation-fill-mode:backwards; }
.mk-client-dashboard.play .mkcd-drift{ animation-name:mkcd-drift; animation-timing-function:ease-in-out; animation-iteration-count:infinite; }
.mk-client-dashboard.play .mkcd-pulse{ animation:mkcd-pulse 2.2s ease-out infinite; }

/* Hover tooltips over the annotated zones. */
.mk-client-dashboard [data-zone]{ transition:box-shadow .25s ease; }
.mk-client-dashboard [data-zone]:hover{ box-shadow:inset 0 0 0 2px rgba(109,93,243,0.32); }
.mk-client-dashboard [data-chip]{ opacity:0; transform:translateY(5px); transition:opacity .22s ease, transform .22s ease; pointer-events:none; }
.mk-client-dashboard [data-zone]:hover [data-chip]{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .mk-client-dashboard *{ animation:none !important; transition:none !important; }
  .mk-client-dashboard:not(.play) .mkcd-rise,
  .mk-client-dashboard:not(.play) .mkcd-pop,
  .mk-client-dashboard:not(.play) .mkcd-pop-b{ opacity:1; }
}
