/**
 * Webvio Button — gradient + outline presets
 * Type-specific colors/shadows overridable via Elementor Style tab.
 */

.webvio-btn-wrap {
  display: flex;
}

.webvio-btn-wrap--align-left {
  justify-content: flex-start;
}

.webvio-btn-wrap--align-center {
  justify-content: center;
}

.webvio-btn-wrap--align-right {
  justify-content: flex-end;
}

.webvio-btn-wrap--align-stretch .webvio-btn {
  width: 100%;
}

.webvio-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--webvio-font-heading, 'Satoshi', 'Inter', sans-serif);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.webvio-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.webvio-btn__icon svg {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.webvio-btn__icon,
.webvio-btn__label {
  position: relative;
  z-index: 2;
}

/* Primary / gradient */
.webvio-btn--gradient {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #9B4DFF 0%, #8A2BE2 35%, #D4007A 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(138, 43, 226, 0.25),
    0 4px 16px rgba(138, 43, 226, 0.35),
    0 12px 40px rgba(255, 0, 127, 0.18);
}

.webvio-btn--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: 1;
}

.webvio-btn--gradient::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.webvio-btn--gradient:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 0 0 1px rgba(138, 43, 226, 0.4),
    0 8px 24px rgba(138, 43, 226, 0.45),
    0 20px 56px rgba(255, 0, 127, 0.28);
}

.webvio-btn--gradient:hover::before {
  transform: translateX(120%);
}

.webvio-btn--gradient.webvio-btn--icon-hover-slide:hover .webvio-btn__icon svg {
  transform: translateX(3px);
}

.webvio-btn--gradient:active {
  transform: translateY(-1px);
}

/* Outline */
.webvio-btn--outline {
  color: #0F172A;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.webvio-btn--outline::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.35), rgba(236, 72, 153, 0.25), rgba(15, 23, 42, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.webvio-btn--outline:hover {
  border-color: rgba(147, 51, 234, 0.25);
  background: #FAFAFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.1);
}

.webvio-btn--outline:hover::before {
  opacity: 1;
}

.webvio-btn--outline:active {
  transform: translateY(0);
}

/* Sizes */
.webvio-btn--sm {
  padding: 9px 18px;
  font-size: 0.8125rem;
  gap: 8px;
}

.webvio-btn--lg {
  padding: 17px 36px;
  font-size: 0.9375rem;
  gap: 12px;
}

.webvio-btn--full {
  width: 100%;
}

@media (max-width: 767px) {
  .webvio-btn--lg {
    padding: 15px 28px;
    font-size: 0.875rem;
  }
}
