/* ==========================================================================
   Button - Unified button system
   Base class with color, sizing, and behavior modifiers
   ========================================================================== */

/* Base button — dark fill, light text, fills container */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--type-title-md-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--type-title-md-line-height);
  letter-spacing: var(--type-title-md-tracking);
  background-color: var(--np-color-inverse-surface);
  color: var(--np-color-inverse-on-surface);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn:hover {
  background-color: var(--np-color-on-surface);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* --- Color modifier --- */

/* Danger - destructive actions (Unfollow, Block, Log Out) */
.btn--danger {
  background-color: var(--np-color-error);
  color: var(--np-color-on-error);
}

.btn--danger:hover {
  opacity: 0.85;
}

/* --- Sizing modifier --- */

/* Hug - content-sized instead of filling */
.btn--hug {
  flex: none;
  width: auto;
}

/* --- Behavior modifier --- */

/* Swipeable - for swipe-to-act buttons (my-rec unsaved) */
.btn--swipeable {
  position: relative;
  height: 100%;
  touch-action: pan-y;
  will-change: transform;
}

.btn--swipeable:not(.is-swiping) {
  transition: transform var(--transition-normal);
}

/* --- Container utility --- */

/* Button row - flex parent for side-by-side buttons */
.btn-row {
  display: flex;
  gap: var(--space-1);
}
