/* ============================================================
   06 · COMPONENTS · Button
   Pill-shaped buttons with magnetic hover spotlight.
   ============================================================ */

.c-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background 220ms,
    color 220ms,
    border-color 220ms,
    box-shadow 280ms;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}

.c-btn__ico {
  display: inline-block;
  transition: transform 240ms ease;
}

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

/* — Primary — */
.c-btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--glow);
}

.c-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), #FFFFFF, transparent 60%);
  opacity: 0;
  transition: opacity 240ms;
  z-index: -1;
}

.c-btn--primary:hover { box-shadow: var(--glow-strong); }
.c-btn--primary:hover::before { opacity: 0.45; }

/* — Outline — */
.c-btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.c-btn--outline:hover {
  border-color: var(--ink);
  background: var(--surface);
}

/* — Ghost — */
.c-btn--ghost {
  height: 40px;
  padding: 0 14px;
  color: var(--text-2);
  border: 0;
}

.c-btn--ghost:hover { color: var(--accent-deep); }

/* — Large size — */
.c-btn--lg {
  height: 60px;
  padding: 0 30px;
  font-size: 16px;
}
