/* Mhairat Liquid Glass — layered glass components.
 * Technique adapted from the open-source recreation of Apple's Liquid Glass:
 * https://github.com/lucasromerodb/liquid-glass-effect-macos (effect/tint/shine
 * layers + SVG displacement). Chromium gets true refraction via the
 * #mh-glass-distortion filter; other engines gracefully keep blurred glass. */

.lg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}
.lg-fx, .lg-dist, .lg-tint, .lg-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.lg-fx {
  z-index: 0;
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  backdrop-filter: blur(10px) saturate(1.6);
}
/* refraction layer — harmless no-op where SVG backdrop filters are unsupported */
.lg-dist {
  z-index: 0;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  filter: url(#mh-glass-distortion);
}
.lg-tint { z-index: 1; background: rgba(255, 255, 255, 0.07); }
.lg-shine {
  z-index: 2;
  box-shadow:
    inset 1.5px 1.5px 1px 0 rgba(255, 255, 255, 0.32),
    inset -1px -1px 1px 0 rgba(255, 255, 255, 0.1);
}
.lg-content { position: relative; z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  .lg { transition: none; }
}
