/* ===== BUTTONS ===== */

/* Base button reset */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--font-size-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: 0.85rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  isolation: isolate;
}

/* ===== PRIMARY CTA (Gradient) ===== */
.btn-primary {
  background: var(--cta-gradient);
  color: #FFFFFF;
  box-shadow:
    0 0 20px rgba(155, 108, 255, 0.25),
    0 0 40px rgba(217, 70, 239, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Sheen sweep effect */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 25px rgba(155, 108, 255, 0.35),
    0 0 50px rgba(217, 70, 239, 0.25),
    0 0 80px rgba(61, 184, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ===== SECONDARY (Outline) ===== */
.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(4px);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cta-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
  border-radius: inherit;
}

.btn-secondary:hover {
  border-color: transparent;
  color: #FFFFFF;
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(155, 108, 255, 0.25);
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* ===== SMALL BUTTON (Header) ===== */
.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: var(--font-size-sm);
}

/* ===== LARGE BUTTON ===== */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
}

/* ===== ICON ARROW ===== */
.btn-arrow {
  display: inline-flex;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Focus visible */
.btn:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 3px;
}
