/* UnlockedMagick — default social icon banner (bottom of posts / hub / embed) */
.um-spb {
  --um-gold: #C9A84C;
  --um-gold-light: #E8C96A;
  --um-bg0: #0a0614;
  --um-bg1: #150a28;
  --um-line: rgba(201, 168, 76, 0.45);
  --um-text: #f0ead6;
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--um-line);
  background: linear-gradient(135deg, var(--um-bg1), var(--um-bg0) 55%, #0c1020);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 168, 76, 0.08) inset;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: var(--um-text);
}

.um-spb::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 40%, rgba(153, 69, 255, 0.28), transparent 42%),
    radial-gradient(circle at 80% 60%, rgba(201, 168, 76, 0.22), transparent 40%);
  animation: um-spb-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.um-spb::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: um-spb-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes um-spb-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.05); }
}

@keyframes um-spb-shine {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(320%); opacity: 0; }
}

.um-spb-inner {
  position: relative;
  z-index: 1;
  padding: 12px 14px 14px;
}

.um-spb-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--um-gold-light);
  font-weight: 700;
}

.um-spb-label span.dim {
  color: rgba(240, 234, 214, 0.45);
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: none;
}

.um-spb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

a.um-spb-icon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 64px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--um-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.22);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  animation: um-spb-pop 0.6s ease both;
}

a.um-spb-icon:nth-child(1) { animation-delay: 0.02s; }
a.um-spb-icon:nth-child(2) { animation-delay: 0.06s; }
a.um-spb-icon:nth-child(3) { animation-delay: 0.1s; }
a.um-spb-icon:nth-child(4) { animation-delay: 0.14s; }
a.um-spb-icon:nth-child(5) { animation-delay: 0.18s; }
a.um-spb-icon:nth-child(6) { animation-delay: 0.22s; }
a.um-spb-icon:nth-child(7) { animation-delay: 0.26s; }
a.um-spb-icon:nth-child(8) { animation-delay: 0.3s; }
a.um-spb-icon:nth-child(9) { animation-delay: 0.34s; }
a.um-spb-icon:nth-child(10) { animation-delay: 0.38s; }

@keyframes um-spb-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

a.um-spb-icon:hover,
a.um-spb-icon:focus-visible {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--um-gold);
  background: rgba(201, 168, 76, 0.12);
  box-shadow: 0 8px 22px rgba(201, 168, 76, 0.2);
  outline: none;
}

a.um-spb-icon:active {
  transform: scale(0.97);
}

.um-spb-glyph {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  background: rgba(201, 168, 76, 0.14);
}

.um-spb-glyph img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

.um-spb-name {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--um-gold-light);
}

/* Compact strip for stream overlays / post footers */
.um-spb.um-spb--compact .um-spb-inner { padding: 8px 10px 10px; }
.um-spb.um-spb--compact a.um-spb-icon {
  min-width: 52px;
  padding: 8px 6px 6px;
}
.um-spb.um-spb--compact .um-spb-name { font-size: 0.55rem; }

@media (prefers-reduced-motion: reduce) {
  .um-spb::before,
  .um-spb::after,
  a.um-spb-icon { animation: none !important; }
}
