/* ==========================================================================
   REACT BITS - SPECULAR BUTTON (Exact CSS Port + Solid Dark Glass Fallback)
   ========================================================================== */

.specular-button {
  --sb-radius: 50px;
  --sb-tint-opacity: 0.15;
  --sb-blur: 10px;
  --sb-text-color: #ffffff;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.6);
  margin: 0;
  font-family: var(--font-heading, 'Panchang', sans-serif);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sb-text-color);
  background: rgba(18, 18, 20, 0.85);
  border-radius: var(--sb-radius);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(212, 175, 55, 0.15);
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.25s ease, 
              border-color 0.25s ease,
              background-color 0.25s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.specular-button:hover {
  color: #ffffff;
  border-color: #ffd700;
  background: rgba(30, 30, 35, 0.95);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 12px 30px rgba(212, 175, 55, 0.4),
    0 0 20px rgba(255, 215, 0, 0.3);
}

.specular-button:active {
  transform: scale(0.96);
}

.specular-button:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.8);
  outline-offset: 3px;
}

.specular-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.specular-button:disabled:active {
  transform: none;
}

.specular-button--sm {
  font-size: 0.85rem;
  padding: 10px 22px;
}

.specular-button--md {
  font-size: 1rem;
  padding: 14px 30px;
}

.specular-button--lg {
  font-size: 1.15rem;
  padding: 18px 40px;
}

/* Canvas extends past the button so the rim glow can bleed outside the edge */
.specular-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.specular-button__label {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Ensure social nav buttons never turn white on touch/focus */
.social-nav-btn {
  color: #ffffff !important;
  background: rgba(18, 18, 20, 0.85) !important;
}

.social-nav-btn:hover,
.social-nav-btn:focus,
.social-nav-btn:active {
  color: #ffffff !important;
  background: rgba(30, 30, 35, 0.95) !important;
  border-color: #ffd700 !important;
}
