/* ==========================================================================
   CreatorVault — Motion layer  (cv-motion.css)
   --------------------------------------------------------------------------
   "Animation in everything" (owner, 2026-10-20): cards, buttons, panels
   and sections feel alive — gentle entrances as you scroll, soft hover
   lifts, responsive buttons — all inside the same calm character as the
   aurora smoke. Nothing here flickers, strobes or pulses.

   Safety design:
   - Entrance start-states apply ONLY when cv-sidebar.js adds the
     `cv-motion` class to <html> (never under prefers-reduced-motion or
     without JS) — content can never be stranded invisible.
   - Only transform / opacity / filter transitions are animated.
   - Shine sweeps are deliberately NOT re-implemented here: the tools'
     primary buttons already carry their own ::after shine keyframes.
   ========================================================================== */

/* ---------- Gentle entrances (JS-gated) ---------- */
html.cv-motion .cv-shell .panel,
html.cv-motion .cv-shell .tool-panel,
html.cv-motion .cv-shell .card,
html.cv-motion .cv-shell section.block,
html.cv-motion .cv-shell .cv-panel,
html.cv-motion .cv-shell .library,
html.cv-motion .cv-shell .about-strip,
html.cv-motion .cv-shell .section-head{
  opacity:0;
  transform:translateY(14px);
}
html.cv-motion .cv-shell .panel.cv-in,
html.cv-motion .cv-shell .tool-panel.cv-in,
html.cv-motion .cv-shell .card.cv-in,
html.cv-motion .cv-shell section.block.cv-in,
html.cv-motion .cv-shell .cv-panel.cv-in,
html.cv-motion .cv-shell .library.cv-in,
html.cv-motion .cv-shell .about-strip.cv-in,
html.cv-motion .cv-shell .section-head.cv-in{
  opacity:1;
  transform:none;
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),
             transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--cv-d, 0ms);
}

/* ---------- Hover life: cards & small blocks lift softly ---------- */
.cv-shell .tool-card,
.cv-shell .stat,
.cv-shell .cols .col,
.cv-shell .cv-fav-item,
.cv-shell .cv-hist-item{
  transition:transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.cv-shell .tool-card:hover,
.cv-shell .stat:hover,
.cv-shell .cols .col:hover,
.cv-shell .cv-fav-item:hover,
.cv-shell .cv-hist-item:hover{
  transform:translateY(-3px);
}

/* ---------- Buttons feel responsive everywhere ---------- */
.cv-shell button,
.cv-shell .hero-cta,
.cv-shell a.btn-generate{
  transition:transform .25s ease, box-shadow .25s ease,
             background-color .25s ease, color .25s ease,
             border-color .25s ease, filter .25s ease;
}
.cv-shell button:hover,
.cv-shell .hero-cta:hover,
.cv-shell a.btn-generate:hover{
  filter:brightness(1.08);
}
.cv-shell button:active{
  transform:scale(.98);
}
/* Choice chips nudge up on hover */
.cv-shell .chips button:hover,
.cv-shell .pills button:hover{
  transform:translateY(-1px);
}

/* ---------- Tabs warm up on hover ---------- */
.cv-shell .tab-btn,
.cv-shell .tab{
  transition:background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ---------- Inputs get a soft violet focus halo ---------- */
.cv-shell input:focus,
.cv-shell select:focus,
.cv-shell textarea:focus{
  box-shadow:0 0 0 3px rgba(168,85,247,.22);
}

/* ---------- Reduced motion: everything rests ---------- */
@media (prefers-reduced-motion: reduce){
  .cv-shell .tool-card,
  .cv-shell .stat,
  .cv-shell .cols .col,
  .cv-shell .cv-fav-item,
  .cv-shell .cv-hist-item,
  .cv-shell button,
  .cv-shell .hero-cta{ transition:none !important; }
  .cv-shell .tool-card:hover,
  .cv-shell .stat:hover,
  .cv-shell .cols .col:hover,
  .cv-shell .cv-fav-item:hover,
  .cv-shell .cv-hist-item:hover,
  .cv-shell .chips button:hover,
  .cv-shell .pills button:hover,
  .cv-shell button:active{ transform:none !important; }
}
