/* =========================
   Base Button
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: 2px;
  border: 2px solid transparent;
  background: transparent;

  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   Sizes (ONLY size)
========================= */
.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 20px;
}

.btn--md {
  height: 44px;
  padding: 0 20px;
  font-size: 16px;
  line-height: 24px;
}

.btn--lg {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  line-height: 24px;
}

.btn--xl {
  height: 60px;
  padding: 0 32px;
  font-size: 18px;
  line-height: 28px;
}

/* =========================
   Variants (ONLY visuals)
========================= */
.btn--primary {
  background-color: #D97941;
  color: #fff;
}

.btn--secondary {
  background-color: #E8E3DC;
  color: #0A0A0A;
}

.btn--outlined {
  background-color: transparent;
  color: #D97941;
  border-color: #D97941;
}

.btn--outlined--neutral {
  background-color: transparent;
  color: #0A0A0A;
  border-color: #E5E5E5;
}

.btn--ghost {
  background-color: transparent;
  color: #D97941;
  border-color: transparent;
}

/* =========================
   Icon handling
========================= */
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;

  /* Optical alignment tweak */
  transform: translateY(0.05em);
}

.btn__icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

/* =========================
   Icon-only buttons
========================= */
.btn--icon {
  padding: 0;
  aspect-ratio: 1 / 1;
}

.btn--icon.btn--sm { width: 32px; }
.btn--icon.btn--md { width: 44px; }
.btn--icon.btn--lg { width: 48px; }
.btn--icon.btn--xl { width: 60px; }
