/* =============================================================================
   faadumo55: click sound + colour (alpha-click-fx.js) and the sliding sidebar
   highlight (alpha-sidebar.js). Loaded after alpha-sidebar.css.
   ============================================================================= */

/* ---- ripple: its own fixed layer, clipped to the clicked control ---- */
.alpha-fx-clip {
  position: fixed;
  z-index: 2147483000;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.alpha-fx-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  will-change: transform, opacity;
}

/* ---- sidebar: one red pill slides behind the active item ---- */
/* The nav is the pill's (and the items') offset parent: groups / lists stay static. */
.alpha-sb-nav.has-pill { position: relative; }
.alpha-sb-nav.has-pill .alpha-sb-item { position: relative; z-index: 1; }
.alpha-sb-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  border-radius: 12px;
  background: var(--alpha-sb-active);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
  pointer-events: none;
}
.alpha-sb-nav.has-pill .alpha-sb-item.is-active,
.alpha-sb-nav.has-pill .alpha-sb-item.is-active:hover {
  background: transparent;
  box-shadow: none;
}
/* Labels change colour smoothly while the pill travels. */
.alpha-sb-nav.has-pill .alpha-sb-item { transition: background-color 0.15s, color 0.25s ease; }
.alpha-sb-nav.has-pill .alpha-sb-icon-tile { transition: background-color 0.25s, transform 0.15s, box-shadow 0.25s; }
/* Press feedback, like a real button. */
.alpha-sb-item:active .alpha-sb-icon-tile { transform: scale(0.92); }

/* ---- sidebar: Sound on / off ---- */
.alpha-sb-sound { padding-left: 14px; color: var(--alpha-sb-muted); font-size: 13px; }
.alpha-sb-sound:hover { color: var(--alpha-sb-text); }
.alpha-sb-sound:not(.is-on) { opacity: 0.7; }
.alpha-sb.is-collapsed .alpha-sb-sound { padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .alpha-sb-item:active .alpha-sb-icon-tile { transform: none; }
}
