/* ================================================================
   BUTTONS — Primary, Founder, Ghost, Text variants
   Mobile-first. Uses var(--vc-*) tokens exclusively.
   ================================================================ */

/* ----------------------------------------------------------------
   1. BASE BUTTON
   ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
  text-decoration: none;
  font-family: var(--font-body);
  line-height: 1.4;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   2. SIZE VARIANTS
   ---------------------------------------------------------------- */

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 16px;
  border-radius: var(--r-lg);
}

.btn-sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: 13px;
}

@media (max-width: 600px) {
  .btn-full-mobile {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------
   3. PRIMARY (Accent)
   ---------------------------------------------------------------- */

.btn-primary {
  background: var(--vc-gradient-brand);
  color: var(--vc-bg-base);
}

.btn-primary:hover {
  box-shadow: var(--vc-shadow-accent);
  transform: translateY(-1px);
  text-decoration: none;
}

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

/* ----------------------------------------------------------------
   4. FOUNDER (Amber)
   ---------------------------------------------------------------- */

.btn-founder {
  background: var(--vc-founder-gradient);
  color: var(--vc-bg-base);
  font-weight: 600;
}

.btn-founder:hover {
  box-shadow: var(--vc-shadow-founder), 0 0 20px rgba(240,180,41,0.15);
  transform: translateY(-1px);
  text-decoration: none;
}

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

/* ----------------------------------------------------------------
   5. GHOST
   ---------------------------------------------------------------- */

.btn-ghost {
  background: transparent;
  color: var(--vc-text-secondary);
  border: 1px solid var(--vc-border-default);
}

.btn-ghost:hover {
  border-color: var(--vc-border-emphasis);
  color: var(--vc-text-primary);
  background: var(--vc-bg-glass);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   6. TEXT
   ---------------------------------------------------------------- */

.btn-text {
  background: none;
  border: none;
  color: var(--vc-accent);
  padding: 0;
  font-size: 14px;
}

.btn-text:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------
   7. CTA NOTE
   ---------------------------------------------------------------- */

.cta-note {
  font-size: 13px;
  color: var(--vc-text-tertiary);
  margin-top: var(--sp-3);
  text-align: center;
}

/* ----------------------------------------------------------------
   8. FOCUS STATES
   ---------------------------------------------------------------- */

.btn:active {
  transform: scale(0.97);
}

/* ----------------------------------------------------------------
   9. LOADING STATE
   ---------------------------------------------------------------- */

.btn--loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .btn--loading::after {
    animation: btnSpin 0.6s linear infinite;
  }
  @keyframes btnSpin {
    to { transform: rotate(360deg); }
  }
}

/* ----------------------------------------------------------------
   10. FOCUS STATES
   ---------------------------------------------------------------- */

.btn:focus-visible {
  outline: 2px solid var(--vc-accent);
  outline-offset: 2px;
}
