
/* Mavens Hive animation add-on: visual effects only */
#mh-animation-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.58;
  mix-blend-mode: screen;
}

header, main, footer, #copy-toast {
  position: relative;
  z-index: 2;
}

.mh-shimmer {
  position: relative;
  display: inline-block;
}

.mh-shimmer::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.75) 50%, transparent 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: mhShimmer 3.6s linear infinite;
  pointer-events: none;
}

@keyframes mhShimmer {
  from { background-position: 220% center; }
  to { background-position: -220% center; }
}

.button-shine .material-symbols-outlined {
  animation: mhPlayPulse 1.6s ease-in-out infinite;
}

@keyframes mhPlayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

main section:nth-of-type(2) .glass-panel {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

main section:nth-of-type(2) .glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mh-x,50%) var(--mh-y,50%), rgba(242,202,80,.14), transparent 42%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

main section:nth-of-type(2) .glass-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(242,202,80,.35);
  box-shadow: 0 0 28px rgba(242,202,80,.10);
}

main section:nth-of-type(2) .glass-panel:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #mh-animation-canvas,
  .mh-shimmer::after,
  .button-shine .material-symbols-outlined {
    animation: none !important;
  }
}
