/* ==========================================================================
   BUTTONS & MICRO-INTERACTIONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #e11d48;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.btn-primary:hover {
  background: #be123c;
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.35);
}

.btn-secondary {
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-sunken);
  border-color: var(--border-default);
}

.btn-teal {
  background: var(--accent-teal);
  color: #ffffff;
}

.btn-teal:hover {
  background: var(--accent-teal-hover);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-muted, #f1f5f9);
  color: var(--text-primary, #0f172a);
  border: 1px solid var(--border-subtle, #e2e8f0);
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-surface-sunken, #e2e8f0);
  color: var(--text-primary, #0f172a);
  border-color: var(--border-default, #cbd5e1);
  transform: scale(1.05);
}

.btn-icon:active {
  transform: scale(0.95);
}

[data-theme="dark"] .btn-icon {
  background: var(--bg-surface-muted, #18181b);
  border-color: var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .btn-icon:hover {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .btn-icon {
    border-radius: 50%;
  }
}
