/* ═══ Social Corner — Permanent Asset (do not overwrite) ═══ */

.sc-wrap {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  right: 1.5rem;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  /* Entrance: bounces up from below after page settles */
  animation: sc-enter 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s both;
}

@keyframes sc-enter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.78);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Base button ─────────────────────────────────────────── */
.sc-btn {
  position: relative;
  width: 50px;
  height: 50px;
  min-height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 14, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  will-change: transform;
}

.sc-btn:hover {
  transform: scale(1.13);
}

.sc-btn:active {
  transform: scale(0.91);
  transition-duration: 0.1s;
}

.sc-btn svg {
  width: 19px;
  height: 19px;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
}

/* ── Subscribe button (green / bell) ─────────────────────── */
.sc-btn--subs {
  animation: sc-pulse-ring 3s ease-in-out 2.4s infinite;
}

.sc-btn--subs:hover {
  border-color: rgba(23, 178, 106, 0.48);
  box-shadow:
    0 0 0 1px rgba(23, 178, 106, 0.14),
    0 0 20px rgba(23, 178, 106, 0.28),
    0 6px 22px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes sc-pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(23, 178, 106, 0.00), 0 2px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05); }
  38%  { box-shadow: 0 0 0 6px rgba(23, 178, 106, 0.13), 0 2px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05); }
  65%  { box-shadow: 0 0 0 9px rgba(23, 178, 106, 0.00), 0 2px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05); }
  100% { box-shadow: 0 0 0 0   rgba(23, 178, 106, 0.00), 0 2px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05); }
}

/* ── Share button (blue / arrow-up) ──────────────────────── */
.sc-btn--share:hover {
  border-color: rgba(96, 165, 250, 0.48);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.14),
    0 0 20px rgba(96, 165, 250, 0.28),
    0 6px 22px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .sc-wrap {
    right: 1rem;
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  }

  .sc-btn {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }
}
