/* =========================
   MODERN GLASS BUTTON
========================= */

.glass-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 60px;
  padding: 16px 32px;

  border-radius: 999px;

  color: #ffffff;

  font-family: "Acme", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;

  background: rgba(77, 184, 255, 0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(77, 184, 255, 0.45);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 12px rgba(77, 184, 255, 0.18),
    0 0 24px rgba(77, 184, 255, 0.12),
    0 0 45px rgba(77, 184, 255, 0.08);

  overflow: hidden;

  transition: all 0.35s ease;
}

/* GLOW AURA */

.glass-btn::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    transparent 35%,
    transparent 65%,
    rgba(77, 184, 255, 0.16)
  );

  pointer-events: none;
}

/* BOTTOM GLOW LINE */

.glass-btn::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 0;

  width: 45%;
  height: 2px;

  transform: translateX(-50%);

  border-radius: 999px;

  background: linear-gradient(90deg, transparent, #4db8ff, transparent);

  box-shadow:
    0 0 12px rgba(77, 184, 255, 0.8),
    0 0 26px rgba(77, 184, 255, 0.45);

  transition: all 0.35s ease;
}

/* HOVER */

.glass-btn:hover {
  color: #ffffff;

  text-decoration: none;

  transform: translateY(-4px);

  background: rgba(77, 184, 255, 0.14);

  border-color: rgba(77, 184, 255, 0.75);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(77, 184, 255, 0.3),
    0 0 40px rgba(77, 184, 255, 0.18),
    0 0 80px rgba(77, 184, 255, 0.1);
}

.glass-btn:hover::after {
  width: 75%;
}

/* CLICK */

.glass-btn:active {
  transform: scale(0.97);
}

/* ACCESSIBILITY */

.glass-btn:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(77, 184, 255, 0.3),
    0 0 30px rgba(77, 184, 255, 0.3);
}

/* NAV-SPECIFIC BUTTON BOOST */

.site-navigation .glass-btn,
.main-navigation .glass-btn {
  background: rgba(77, 184, 255, 0.12);

  border: 1px solid rgba(77, 184, 255, 0.55);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 15px rgba(77, 184, 255, 0.25),
    0 0 35px rgba(77, 184, 255, 0.12);
}
