/**
 * Astroflick text buttons — flat accent actions.
 *
 * 1. Text only:   <button type="button" class="af-btn"><span>Label</span></button>
 * 2. Text + icon: <button type="button" class="af-btn">
 *                  <i data-lucide="…" class="af-btn__icon" aria-hidden="true"></i>
 *                  <span>Label</span>
 *                </button>
 *
 * Pair with /js/af-btn.js → AstroflickBtn.html({ icon, label }).
 * Never combine with .af-link (font: inherit fights size).
 */

.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--af-accent, #f5f203);
  cursor: pointer;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.af-btn__icon,
.af-btn svg.lucide {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: inherit;
  stroke: currentColor;
  stroke-width: 1px;
}

.af-btn svg.lucide *,
.af-btn__icon svg * {
  stroke-width: 1px;
}

.af-btn:hover {
  color: #fff566;
}

.af-btn:focus {
  outline: none;
}

.af-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--af-accent, #f5f203) 45%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.af-btn:disabled,
.af-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.af-btn--muted {
  color: rgba(227, 219, 204, 0.55);
}

.af-btn--muted:hover {
  color: #e3dbcc;
}

.af-btn--inline {
  vertical-align: baseline;
}
