
/* From Uiverse.io by MuhammadHasann  - Website: https://twitter.com/jh3yy/status/1639001228985225228 - Name: Jhey - Tags: simple, neumorphism, button */
.uiverse-share-button {
  --black-700: #0b2c50;
  --border_radius: 9999px;
  --transtion: 0.3s ease-in-out;
  --offset: 2px;

  cursor: pointer;
  position: relative;

  display: flex;
  align-items: center;
  gap: 0.5rem;

  transform-origin: center;

  padding: 1rem 2rem;
  background-color: transparent;

  border: none;
  border-radius: var(--border_radius);
  transform: scale(calc(1 + (var(--active, 0) * 0.025)));

  transition: transform var(--transtion);
}

.uiverse-share-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
  height: 100%;
  background-color: var(--black-700);

  border-radius: var(--border_radius);
  box-shadow: inset 0 0.5px hsl(0, 0%, 100%), inset 0 -1px 2px 0 hsl(0, 0%, 0%),
    0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))),
    0 0 0 calc(var(--active, 0) * 0.375rem) hsl(200 97% 50% / 0.75);

  transition: all var(--transtion);
  z-index: 0;
}

.uiverse-share-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
  height: 100%;
  background-color: hsla(200 97% 61% / 0.75);
  background-image: radial-gradient(
      at 51% 89%,
      hsla(205, 45%, 74%, 1) 0px,
      transparent 50%
    ),
    radial-gradient(at 100% 100%, hsla(205, 36%, 60%, 1) 0px, transparent 50%),
    radial-gradient(at 22% 91%, hsla(205, 36%, 60%, 1) 0px, transparent 50%);
  background-position: top;

  opacity: var(--active, 0);
  border-radius: var(--border_radius);
  transition: opacity var(--transtion);
  z-index: 2;
}

.uiverse-share-button:is(:hover, :focus-visible) {
  --active: 1;
}
.uiverse-share-button:active {
  transform: scale(1);
}

.uiverse-share-button .dots_border {
  --size_border: calc(100% + 2px);

  overflow: hidden;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: var(--size_border);
  height: var(--size_border);
  background-color: transparent;

  border-radius: var(--border_radius);
  z-index: -10;
}

.uiverse-share-button .dots_border::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: left;
  transform: rotate(0deg);

  width: 100%;
  height: 2rem;
  background-color: white;

  mask: linear-gradient(transparent 0%, white 120%);
  animation: share-border-rotate 2s linear infinite;
}

@keyframes share-border-rotate {
  to {
    transform: rotate(360deg);
  }
}

.uiverse-share-button .sparkle {
  position: relative;
  z-index: 10;

  width: 1.75rem;
}

.uiverse-share-button .sparkle .path {
  fill: currentColor;
  stroke: currentColor;

  transform-origin: center;

  color: hsl(0, 0%, 100%);
}

.uiverse-share-button:is(:hover, :focus) .sparkle .path {
  animation: share-sparkle-path 1.5s linear 0.5s infinite;
}

.uiverse-share-button .sparkle .path:nth-child(1) {
  --scale_path_1: 1.2;
}
.uiverse-share-button .sparkle .path:nth-child(2) {
  --scale_path_2: 1.2;
}
.uiverse-share-button .sparkle .path:nth-child(3) {
  --scale_path_3: 1.2;
}

@keyframes share-sparkle-path {
  0%,
  34%,
  71%,
  100% {
    transform: scale(1);
  }
  17% {
    transform: scale(var(--scale_path_1, 1));
  }
  49% {
    transform: scale(var(--scale_path_2, 1));
  }
  83% {
    transform: scale(var(--scale_path_3, 1));
  }
}

.uiverse-share-button .text_button {
  position: relative;
  z-index: 10;

  background-image: linear-gradient(
    90deg,
    hsla(0 0% 100% / 1) 0%,
    hsla(0 0% 100% / var(--active, 0)) 120%
  );
  background-clip: text;

  font-size: 1rem;
  color: transparent;
}


.uiverse-share-shell{width:100%;margin-top:16px;padding:3px}
.uiverse-share-button{width:100%;min-height:55px;justify-content:center;isolation:isolate;padding:14px 20px}
.uiverse-share-button .text_button{font-size:15px;font-weight:600}
.uiverse-share-button .sparkle{flex-shrink:0;width:25px;height:25px}
.uiverse-share-button:focus-visible{outline:2px solid #00a7e7;outline-offset:7px}
.uiverse-share-button:disabled{cursor:wait;pointer-events:none}
.uiverse-share-button[aria-busy=true]{--active:1}
.uiverse-share-button[aria-busy=true] .sparkle .path{animation:share-sparkle-path 1.5s linear infinite}
@media(prefers-reduced-motion:reduce){.uiverse-share-button,.uiverse-share-button *,.uiverse-share-button::before,.uiverse-share-button::after,.uiverse-share-button .dots_border::before{animation:none!important;transition:none!important}.uiverse-share-button{transform:none!important}}
