/* ============================================================
   Bitkoning Master Brand — Buttons & Pills
   .bk-btn varianten/sizes, .bk-btn-featured, .bk-pill schalen en live-pill.
   Gegenereerd uit het master brand guidelines document (v2.0).
   Productie-bron. De master HTML demonstreert deze classes inline.
   ============================================================ */

.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-family: var(--bk-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: 6px;
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.bk-btn:focus-visible {
  outline: 2px solid var(--bk-blue-base);
  outline-offset: 2px;
}

.bk-btn:active {
  transform: scale(0.98);
}

.bk-btn--sm {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

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

.bk-btn-primary {
  background: var(--bk-green-base);
  color: var(--bk-on-green);
}

.bk-btn-primary:hover {
  background: var(--bk-green-hover);
  box-shadow: 0 0 36px var(--bk-green-halo-3), 0 0 12px var(--bk-green-halo-4);
}

.bk-btn-primary:active {
  background: var(--bk-green-pressed);
}

.bk-btn-secondary {
  background: transparent;
  color: var(--bk-ink-7);
  border-color: var(--bk-ink-4);
}

.bk-btn-secondary:hover {
  background: var(--bk-ink-1);
  border-color: var(--bk-ink-5);
  color: var(--bk-ink-8);
  box-shadow: 0 0 24px var(--bk-light-4), 0 0 6px var(--bk-light-5);
}

.bk-btn-secondary:active {
  background: var(--bk-ink-2);
}

.bk-btn-attention {
  background: var(--bk-gold-base);
  color: var(--bk-on-gold);
}

.bk-btn-attention:hover {
  background: var(--bk-gold-hover);
  box-shadow: 0 0 36px var(--bk-gold-halo-3), 0 0 12px var(--bk-gold-halo-4);
}

.bk-btn-attention:active {
  background: var(--bk-gold-pressed);
}

.bk-btn-destructive {
  background: var(--bk-red-base);
  color: var(--bk-on-red);
}

.bk-btn-destructive:hover {
  background: var(--bk-red-hover);
  box-shadow: 0 0 28px var(--bk-red-halo-3), 0 0 8px var(--bk-red-halo-3);
}

.bk-btn-destructive:active {
  background: var(--bk-red-pressed);
}

.bk-btn-ghost {
  background: transparent;
  color: var(--bk-ink-6);
}

.bk-btn-ghost:hover {
  background: var(--bk-ink-1);
  color: var(--bk-ink-8);
}

.bk-btn:disabled {
  background: var(--bk-ink-2) !important;
  color: var(--bk-ink-5) !important;
  border-color: var(--bk-ink-3) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.bk-btn--icon-only {
  width: 36px;
  padding: 0;
  font-size: 16px;
}

.bk-btn--icon-only.bk-btn--sm { width: 28px; font-size: 14px; }

.bk-btn--icon-only.bk-btn--lg { width: 44px; font-size: 18px; }

.bk-btn-featured {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  font-family: var(--bk-font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.bk-btn-featured > span:not(.bk-sweep):not(.demo-cursor-light) {
  position: relative;
  z-index: 1;
}

.bk-btn-featured:active {
  transform: translateY(0) scale(0.98);
}

.bk-btn-featured--filled {
  background: var(--bk-green-base);
  color: var(--bk-on-green);
  box-shadow: 0 0 28px var(--bk-green-halo-2), 0 0 8px var(--bk-green-halo-3);
}

.bk-btn-featured--filled:hover {
  background: var(--bk-green-hover);
  box-shadow: 0 0 40px var(--bk-green-halo-3), 0 0 12px var(--bk-green-halo-4);
  transform: translateY(-1px);
}

.bk-btn-featured--filled:active {
  transform: translateY(0) scale(0.98);
}

.bk-btn-featured--outlined {
  background: transparent;
  color: var(--bk-green-glow);
  border: 1px solid var(--bk-green-edge-3);
  box-shadow: 0 0 18px var(--bk-green-halo-1);
}

.bk-btn-featured--outlined:hover {
  border-color: var(--bk-green-edge-4);
  box-shadow: 0 0 28px var(--bk-green-halo-2);
}

.bk-btn-featured--outlined:active {
  transform: scale(0.98);
}

.bk-btn-featured--outlined:hover .demo-cursor-light {
  opacity: 1;
}

.bk-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--bk-font-sans);
  white-space: nowrap;
  background: var(--bk-ink-2);
  color: var(--bk-ink-7);
  border: 0.5px solid var(--bk-ink-3);
  letter-spacing: 0.04em;
}

.bk-pill-micro {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
}

.bk-pill--standard {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  gap: 4px;
}

.bk-pill-chunky {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}

.bk-pill--success {
  background: var(--bk-green-tint-4);
  color: var(--bk-green-hover);
  border-color: var(--bk-green-edge-2);
}

.bk-pill--gold {
  background: var(--bk-gold-tint-4);
  color: var(--bk-gold-hover);
  border-color: var(--bk-gold-edge-2);
}

.bk-pill--blue {
  background: var(--bk-blue-tint-4);
  color: var(--bk-blue-glow);
  border-color: var(--bk-blue-edge-2);
}

.bk-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bk-red-base);
  color: var(--bk-ink-8);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--bk-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.bk-pill-live__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bk-ink-8);
  animation: demo-live-pulse 1.5s ease-in-out infinite;
}

.bk-expandable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bk-expandable-list > li {
  display: flex;
  align-items: center;
  gap: var(--bk-space-3);
  padding: var(--bk-space-3) var(--bk-space-4);
  border-bottom: 0.5px solid var(--bk-ink-2);
  cursor: pointer;
  transition: background-color 120ms ease;
  font-size: 14px;
  color: var(--bk-ink-7);
  position: relative;
}

.bk-expandable-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bk-green-base);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 240ms ease;
  z-index: 0;
}

.bk-expandable-list > li:hover::before,
.bk-expandable-list > li:focus-visible::before {
  transform: scaleY(1);
  transform-origin: top;
}

.bk-expandable-list > li.is-open::before {
  display: none;
}

.bk-expandable-list > li:last-child {
  border-bottom: none;
}

.bk-expandable-list > li:hover,
.bk-expandable-list > li:focus-visible {
  background: var(--bk-ink-1);
  outline: none;
}

.bk-expandable-list__icon {
  color: var(--bk-ink-5);
  font-size: 14px;
  flex-shrink: 0;
  transition: color 120ms ease;
  width: 16px;
  text-align: center;
}

.bk-expandable-list > li:hover .bk-expandable-list__icon,
.bk-expandable-list > li:focus-visible .bk-expandable-list__icon {
  color: var(--bk-ink-7);
}

.bk-expandable-list__label {
  flex: 1;
}

.bk-expandable-list__chevron {
  color: var(--bk-ink-5);
  font-size: 18px;
  flex-shrink: 0;
  transition: color 120ms ease, transform 120ms ease;
  line-height: 1;
}

.bk-expandable-list > li:hover .bk-expandable-list__chevron,
.bk-expandable-list > li:focus-visible .bk-expandable-list__chevron {
  color: var(--bk-ink-7);
  transform: translateX(2px);
}

.bk-expandable-list > li.is-open {
  background: var(--bk-ink-1);
  flex-wrap: wrap;
}

.bk-expandable-list > li.is-open .bk-expandable-list__chevron--down {
  transform: rotate(180deg);
  color: var(--bk-ink-7);
}

.bk-expandable-list > li:hover .bk-expandable-list__chevron--down,
.bk-expandable-list > li:focus-visible .bk-expandable-list__chevron--down {
  transform: none; /* down-chevron leidt niet naar elders; geen translateX */
}

.bk-expandable-list > li.is-open:hover .bk-expandable-list__chevron--down {
  transform: rotate(180deg);
}

.bk-expandable-list__panel {
  flex-basis: 100%;
  margin-top: var(--bk-space-3);
  padding: var(--bk-space-3) 0 var(--bk-space-1) var(--bk-space-6);
  font-size: 14px;
  line-height: 1.5;
  color: var(--bk-ink-6);
  border-top: 0.5px solid var(--bk-light-2);
}

.bk-pill--filter {
  cursor: pointer;
  background: var(--bk-ink-2);
  border: 0.5px solid var(--bk-ink-3);
  color: var(--bk-ink-6);
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.bk-pill--filter:hover {
  border-color: var(--bk-ink-5);
  color: var(--bk-ink-8);
}

.bk-pill--filter:focus-visible {
  outline: 2px solid var(--bk-blue-base);
  outline-offset: 2px;
}

.bk-pill--filter-active {
  background: var(--bk-green-tint-3);
  border-color: var(--bk-green-edge-2);
  color: var(--bk-green-hover);
}

.bk-pill--filter-active:hover {
  background: var(--bk-green-tint-4);
  border-color: var(--bk-green-edge-2);
  color: var(--bk-green-hover);
}

.bk-empty .bk-btn { display: inline-flex; }
