/* ==========================================================================
   Buttons
   ========================================================================== */

/* ---------- CTA Button — pill with gradient border hover ---------- */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 0.375rem 0.75rem 2rem;
  height: 50px;
  background-color: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

/* Size variants */
.btn-cta--sm {
  height: 42px;
  padding: 0.5rem 0.375rem 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-cta--lg {
  height: 56px;
  padding: 1rem 0.5rem 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Gradient border — before pseudo-element */
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-primary),
    var(--color-highlight)
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

/* Black inner fill — after pseudo-element (inset 1px to reveal gradient border) */
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-full);
  background-color: #000;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-cta:hover::after {
  opacity: 1;
}

/* Subtle glow on hover */
.btn-cta:hover {
  box-shadow: 0 0 20px rgba(173, 40, 0, 0.25);
}

/* ---------- Label ---------- */
.btn-cta__label {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Arrow circle icon ---------- */
.btn-cta__icon {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  margin-left: 0.75rem;
  flex-shrink: 0;
  color: #fff;
}

.btn-cta--sm .btn-cta__icon {
  width: 32px;
  height: 32px;
  margin-left: 0.625rem;
}

.btn-cta--lg .btn-cta__icon {
  width: 42px;
  height: 42px;
  margin-left: 1rem;
}

.btn-cta__icon svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform var(--transition-normal);
}

.btn-cta:hover .btn-cta__icon svg {
  transform: rotate(-45deg);
}

/* ---------- Outline button ---------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-outline:hover {
  background-color: var(--color-bg-muted);
  border-color: var(--color-border-hover);
}

/* ---------- Text link with arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
}
