/* ════════════════════════════════════════════════════════════════
   GLASS BUTTON SYSTEM
   Port of 21st.dev GlassButton — pure CSS, no framework required.
   Structure:
     <div class="gbw [gbw-discord|gbw-danger|gbw-sm]">
       <button class="gb">
         <span class="gb-text">{children}</span>
       </button>
       <div class="gb-shadow"></div>
     </div>
════════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ── */
.gbw {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  border-radius: var(--radius-full);
}

/* ── Base button (no visual bg — lives on gb-text) ── */
.gb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  outline: none;
  isolation: isolate;
  text-decoration: none;
}

/* ── Visible pill — the glass surface ── */
.gb-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
  border-radius: var(--radius-full);
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: var(--body-md);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text-primary);
  /* Frosted glass — uses theme tokens */
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-inset-top),
    inset 0 -1px 0 var(--glass-inset-bot),
    var(--glass-shadow);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s var(--ease-bounce);
}

.gbw:hover .gb-text {
  background: var(--glass-hover-bg);
  box-shadow:
    inset 0 1px 0 var(--glass-inset-top),
    inset 0 -1px 0 var(--glass-inset-bot),
    0 10px 28px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.gbw:active .gb-text { transform: translateY(0); }
.gb:focus-visible .gb-text { outline: 2px solid var(--brand-gold); outline-offset: 3px; border-radius: var(--radius-full); }

/* ── Soft drop-shadow layer behind the button ── */
.gb-shadow {
  position: absolute;
  inset: 8px 10px 0;
  border-radius: var(--radius-full);
  background: transparent;
  box-shadow: 0 14px 30px rgba(0,0,0,0.50);
  z-index: -1;
  filter: blur(4px);
  pointer-events: none;
}

/* ── Discord variant — blurple glass ── */
.gbw-discord .gb-text {
  background: linear-gradient(160deg, rgba(88,101,242,0.72) 0%, rgba(71,82,196,0.55) 100%);
  border-color: rgba(140,155,255,0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 2px 6px rgba(0,0,0,0.25);
}
.gbw-discord:hover .gb-text {
  background: linear-gradient(160deg, rgba(88,101,242,0.88) 0%, rgba(71,82,196,0.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 10px 28px rgba(88,101,242,0.48),
    0 2px 6px rgba(0,0,0,0.25);
}
.gbw-discord .gb-shadow { box-shadow: 0 14px 30px rgba(88,101,242,0.30); }

/* ── Danger variant (delete) — red tint ── */
.gbw-danger .gb-text {
  background: linear-gradient(160deg, rgba(239,68,68,0.22) 0%, rgba(239,68,68,0.10) 100%);
  border-color: rgba(239,68,68,0.28);
  color: var(--danger-text);
  font-size: var(--body-md);
  padding: var(--space-4) var(--space-6);
}
.gbw-danger:hover .gb-text {
  background: linear-gradient(160deg, rgba(239,68,68,0.35) 0%, rgba(239,68,68,0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255,100,100,0.30), 0 8px 20px rgba(239,68,68,0.22);
}

/* ── Teal variant (Play Hycon) — emerald-green glass ── */
.gbw-teal .gb-text {
  background: linear-gradient(160deg, rgba(20,184,166,0.62) 0%, rgba(13,148,136,0.45) 100%);
  border-color: rgba(94,234,212,0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 2px 6px rgba(0,0,0,0.25);
}
.gbw-teal:hover .gb-text {
  background: linear-gradient(160deg, rgba(20,184,166,0.82) 0%, rgba(13,148,136,0.65) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 10px 28px rgba(20,184,166,0.40),
    0 2px 6px rgba(0,0,0,0.25);
}
.gbw-teal .gb-shadow { box-shadow: 0 14px 30px rgba(20,184,166,0.25); }

/* ── Small variant (blog utility buttons) ── */
.gbw-sm .gb-text {
  padding: var(--space-4) var(--space-6);
  font-size: var(--body-md);
  background: linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.14);
}
.gbw-sm:hover .gb-text {
  background: linear-gradient(160deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 100%);
}

/* ── Play button copied state (lives on #playBtn.is-copied) ── */
.play-label { display: flex; align-items: center; gap: 7px; transition: opacity 0.2s ease, transform 0.2s ease; }

.play-copied {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--success-text);
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

#playBtn.is-copied .play-label  { opacity: 0; transform: translateY(-5px); }
#playBtn.is-copied .play-copied { opacity: 1; transform: translateY(0); }

.ip-hint {
  margin-top: var(--space-5);
  font-size: var(--body-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 700;
  font-family: var(--font-mono);
  animation: fadeUp 0.9s var(--ease-spring) 0.24s both;
}

/* ─ Hard edge fade at very bottom — seals the hero into the features section ─ */
.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  z-index: 3;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
}


