/* ==========================================================================
   React Bits - StarBorder Component (Vanilla CSS + HTML Variant)
   ========================================================================== */

.star-border-container {
  display: inline-flex;
  position: relative;
  border-radius: 100px;
  overflow: hidden;
  text-decoration: none;
  padding: 1.5px;
  box-sizing: border-box;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.star-border-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 255, 0.25);
}

.border-gradient-bottom {
  position: absolute;
  width: 300%;
  height: 50%;
  opacity: 0.85;
  bottom: -11px;
  right: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--star-color, #00f5ff) 0%, rgba(254, 53, 154, 0.5) 8%, transparent 12%);
  animation: star-movement-bottom var(--star-speed, 5s) linear infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.border-gradient-top {
  position: absolute;
  opacity: 0.85;
  width: 300%;
  height: 50%;
  top: -11px;
  left: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--star-color, #00f5ff) 0%, rgba(254, 53, 154, 0.5) 8%, transparent 12%);
  animation: star-movement-top var(--star-speed, 5s) linear infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.star-border-container .inner-content {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #060913;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 12px 26px;
  border-radius: 100px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.star-border-container .inner-content svg {
  transition: transform 0.3s ease;
}

.star-border-container:hover .inner-content svg {
  transform: translateY(2px);
}

.star-border-container:hover .inner-content {
  background: #0a0f20;
  border-color: rgba(0, 245, 255, 0.4);
}

/* Keyframes */
@keyframes star-movement-bottom {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(-100%, 0%);
    opacity: 0;
  }
}

@keyframes star-movement-top {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(100%, 0%);
    opacity: 0;
  }
}
