/* ==========================================
   ILOVEWIDGETS — Centralized Button Design System
   ========================================== */

/* Base Button Reset & Layout */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--sans, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  box-shadow: none !important;
}

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

.btn:disabled,
.btn.loading {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

/* ── BUTTON VARIANTS ── */

/* 1. Primary Accent Button (Purple-to-Cyan Dark Glass Gradient) */
.btn-primary,
.btn-accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-accent:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(6, 182, 212, 0.35) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
  color: #ffffff !important;
  box-shadow: none !important;
}

/* 2. Secondary Outline / Surface Button */
.btn-secondary,
.btn-surface {
  background: rgba(255, 255, 255, 0.04);
  color: #abb1be;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-surface:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

/* 3. Studio Purple Accent Button */
.btn-purple {
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.28);
  font-weight: 600;
  box-shadow: none;
}

.btn-purple:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.45);
  color: #8b5cf6;
  box-shadow: none;
}

/* 4. Danger / Revoke Red Button */
.btn-danger {
  background: rgba(255, 51, 75, 0.1);
  color: #ff334b;
  border: 1px solid rgba(255, 51, 75, 0.25);
  font-weight: 600;
  box-shadow: none;
}

.btn-danger:hover {
  background: rgba(255, 51, 75, 0.2);
  border-color: rgba(255, 51, 75, 0.45);
  color: #ffffff;
  box-shadow: none;
}

/* 5. Icon Square Action Button (32x32) */
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ── SIZING UTILITIES ── */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 7px;
}

.btn-md {
  padding: 10px 16px;
  font-size: 0.88rem;
  border-radius: 9px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.98rem;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

/* 6. Active Toggle / Nav Gradient Button (Purple-to-Cyan Gradient) */
.btn-nav,
.btn-gradient-toggle {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.btn-nav:hover,
.btn-gradient-toggle:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(6, 182, 212, 0.35) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: none;
  transform: translateY(-1px);
  color: #ffffff !important;
}
