/* hooks-ui r106 (LOCAL-STAGED). Attention hooks for Home, Studio home and Gallery.
   Rules: owner-approved lime New pill (--ds-lime-400 / --ds-lime-fg) and violet primary are reused, not replaced.
   Motion uses transform/opacity/background-position only; every animation is removed under prefers-reduced-motion
   and while the page-level "Pause motion" control sets html.el-motion-paused (if present). No counts are rendered here;
   counts come only from js/hooks-ui.js reading real catalog data. Original E-Labs styling, no reference brand assets. */

:root {
  --hk-violet: var(--ds-violet-500, #6c63ff);
  --hk-violet-hi: var(--ds-violet-300, #a5a0ff);
  --hk-cyan: #38bdf8;
  --hk-lime: var(--ds-lime-400, #a3e635);
  --hk-lime-fg: var(--ds-lime-fg, #0f1a00);
  --hk-ring: 0 0 0 1px rgba(165,160,255,.55), 0 10px 32px -8px rgba(108,99,255,.55), 0 0 22px -6px rgba(56,189,248,.35);
  --hk-ease: cubic-bezier(.2,.7,.2,1);
}

/* 1. Gradient / highlight headline word ------------------------------------------------------------ */
.hk-grad, .hk-on .hk-grad.hk-grad, .home-hero h1 .grad.hk-grad {
  background: linear-gradient(100deg, var(--hk-lime) 0%, #d9f99d 22%, var(--hk-cyan) 48%, var(--hk-violet-hi) 74%, var(--hk-lime) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hk-grad-pan 9s ease-in-out infinite alternate;
}
@keyframes hk-grad-pan { to { background-position: 100% 50%; } }

/* 2. Glow-on-hover card borders (box-shadow ring: no pseudo-element, no layout change) ------------------- */
.hk-on .ds-tile, .hk-on .hs-remix__tile, .hk-on .hs-band a, .hk-on .el-hc, .hk-on .home-banner,
.hk-on .home-tool-card, .hk-on .gallery-card, .hk-on .hs-star {
  transition: box-shadow .25s var(--hk-ease), border-color .25s var(--hk-ease), transform .25s var(--hk-ease);
}
.hk-on .ds-tile:hover, .hk-on .hs-remix__tile:hover, .hk-on .hs-band a:hover, .hk-on .el-hc:hover, .hk-on .home-banner:hover,
.hk-on .home-tool-card:hover, .hk-on .gallery-card:hover, .hk-on .hs-star:hover,
.hk-on .ds-tile:focus-visible, .hk-on .hs-remix__tile:focus-visible, .hk-on .el-hc:focus-visible, .hk-on .home-banner:focus-visible {
  box-shadow: var(--hk-ring);
  border-color: rgba(165,160,255,.6);
}

/* 3. Hover zoom on media tiles (transform only, parents already overflow:hidden) ------------------------- */
.hk-on .hs-remix__tile img, .hk-on .hs-band a img, .hk-on .el-hc img, .hk-on .home-banner > img,
.hk-on .home-tool-media > img, .hk-on .home-tool-media > video, .hk-on .gallery-card img, .hk-on .gallery-card video {
  transition: transform .6s var(--hk-ease);
  will-change: auto;
}
.hk-on .hs-remix__tile:hover img, .hk-on .hs-band a:hover img, .hk-on .el-hc:hover img, .hk-on .home-banner:hover > img,
.hk-on .home-tool-card:hover .home-tool-media > img, .hk-on .home-tool-card:hover .home-tool-media > video,
.hk-on .gallery-card:hover img, .hk-on .gallery-card:hover video { transform: scale(1.06); }
.hk-on .ds-tile:hover .ds-tile__media > img, .hk-on .ds-tile:hover .ds-tile__media > video { transform: scale(1.06); }

/* 4. CTA shine + glow + arrow ------------------------------------------------------------------------ */
.hk-cta { position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(165,160,255,.35), 0 8px 26px -6px rgba(108,99,255,.65); }
.hk-cta:hover { box-shadow: 0 0 0 1px rgba(165,160,255,.6), 0 10px 34px -4px rgba(108,99,255,.85); }
.hk-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 48%, transparent 66%);
  transform: translateX(-120%); animation: hk-shine 4.8s ease-in-out 1.2s infinite; }
@keyframes hk-shine { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }
.hk-arrow { display: inline-block; margin-left: .45em; transition: transform .2s var(--hk-ease); vertical-align: -0.12em; }
.hk-cta:hover .hk-arrow, .hk-cta:focus-visible .hk-arrow { transform: translateX(3px); }

/* 5. Truthful NEW pill (lime, owner-approved) ----------------------------------------------------------- */
.hk-new { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--hk-lime); color: var(--hk-lime-fg); font-size: .66rem; font-weight: 800; letter-spacing: .03em;
  line-height: 1.5; text-transform: uppercase; vertical-align: middle; }

/* 6. Model ticker (real catalog names) --------------------------------------------------------------- */
.hk-ticker { position: relative; display: flex; align-items: center; gap: 14px; min-height: 46px; margin: 18px auto 0;
  max-width: 1376px; padding: 0 16px; overflow: hidden; contain: layout paint; }
.home-hero .hk-ticker { margin-top: 22px; max-width: 760px; }
.hk-ticker[data-hk-state="empty"] { visibility: hidden; }
.hk-ticker__lead { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.78); letter-spacing: .02em; white-space: nowrap; }
.hk-ticker__count { font-variant-numeric: tabular-nums; color: #fff; display: inline-block; min-width: 2.2ch; text-align: right; }
.hk-ticker__viewport { position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hk-ticker__track { display: flex; width: max-content; gap: 10px; animation: hk-marquee var(--hk-dur, 60s) linear infinite; }
.hk-ticker:hover .hk-ticker__track, .hk-ticker:focus-within .hk-ticker__track { animation-play-state: paused; }
.hk-ticker__list { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hk-ticker__item { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.88);
  font-size: .8rem; font-weight: 600; white-space: nowrap; }
.hk-ticker__item .elabs-model-icon, .hk-ticker__item svg, .hk-ticker__item img { width: 16px; height: 16px; flex: none; }
@keyframes hk-marquee { to { transform: translateX(-50%); } }

/* 7. Pulsing dot: only rendered by JS when a truthful freshness signal exists ---------------------------- */
.hk-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hk-lime); flex: none; }
.hk-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--hk-lime);
  animation: hk-pulse 1.8s ease-out infinite; }
@keyframes hk-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

/* Reduced motion / user-paused motion ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hk-grad, .hk-cta::after, .hk-ticker__track, .hk-dot::after { animation: none !important; }
  .hk-cta::after { display: none; }
  .hk-ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hk-ticker__track > [aria-hidden="true"] { display: none; }
  .hk-on .ds-tile:hover .ds-tile__media > img, .hk-on .ds-tile:hover .ds-tile__media > video,
  .hk-on .hs-remix__tile:hover img, .hk-on .hs-band a:hover img, .hk-on .el-hc:hover img, .hk-on .home-banner:hover > img,
  .hk-on .home-tool-card:hover .home-tool-media > img, .hk-on .home-tool-card:hover .home-tool-media > video,
  .hk-on .gallery-card:hover img, .hk-on .gallery-card:hover video { transform: none; }
  .hk-arrow { transition: none; }
}
html.el-motion-paused .hk-grad, html.el-motion-paused .hk-cta::after,
html.el-motion-paused .hk-ticker__track, html.el-motion-paused .hk-dot::after { animation-play-state: paused; }

@media (max-width: 640px) {
  .hk-ticker { gap: 10px; padding: 0 12px; margin-top: 14px; }
  .hk-ticker__lead { font-size: .72rem; }
  .hk-ticker__item { height: 28px; font-size: .76rem; padding: 0 10px; }
}
