/* ==========================================================================
   Glass Nav — frosted "liquid glass" surface for floating nav/footer bars.
   Ported 1:1 from open-design.ai's condensed top-nav glass treatment
   (background #ffffff6b + saturate blur + inset white glints), exposed here
   as a reusable surface. The real refraction comes from the per-element SVG
   displacement filter wired up in glass-nav.js; this file is the CSS shell
   plus the plain-blur fallback for browsers without url() backdrop filters.
   ========================================================================== */

.glass-nav {
  /* clearer, more see-through glass (was .42) — lets the refraction read */
  background: rgba(255, 255, 255, 0.24);

  /* fallback frost: used as-is on Safari / browsers that drop the url()
     backdrop-filter that glass-nav.js sets inline on top of this. */
  -webkit-backdrop-filter: blur(14px) saturate(1.8) brightness(1.05);
  backdrop-filter: blur(14px) saturate(1.8) brightness(1.05);

  border: 1px solid rgba(255, 255, 255, 0.6);

  /* a bright, defined glass rim (top highlight + inner ring + soft inner glow)
     for the "Liquid Glass" edge, over the floating drop shadow. */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 14px 6px rgba(255, 255, 255, 0.30),
    0 8px 30px rgba(28, 27, 31, 0.16),
    0 2px 8px  rgba(28, 27, 31, 0.10);
}

/* host for the generated <filter> defs — kept out of layout/paint flow */
.glass-nav-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

@media (prefers-reduced-transparency: reduce) {
  /* respect users who ask for less transparency: fall back to a solid pill */
  .glass-nav {
    background: var(--white, #fff);
    -webkit-backdrop-filter: none;
    backdrop-filter: none !important;
  }
}
