/* ═══════════════════════════════════════════════════════════════════════
   FastFixCell.com — Buttons v3.0
   Neon Glow + Glass + Gradient Buttons
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Base Button ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

/* ── Primary — Electric Blue ────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  box-shadow: var(--shadow-md), var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
}

/* ── Accent — Neon Amber ────────────────────────────────────── */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: var(--text-inverse);
  box-shadow: var(--shadow-md), var(--accent-glow);
  font-weight: var(--font-bold);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(245, 158, 11, 0.5);
}

/* ── Glass Button ───────────────────────────────────────────── */
.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--border-default);
  color: var(--text-primary);
}
.btn-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-1px);
}

/* ── Outline ────────────────────────────────────────────────── */
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-500);
  color: var(--primary-400);
}
.btn-outline:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--primary-300);
  box-shadow: var(--primary-glow);
}

/* ── Ghost ──────────────────────────────────────────────────── */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

/* ── Sizes ──────────────────────────────────────────────────── */
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); border-radius: var(--radius-lg); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); border-radius: var(--radius-2xl); }
.btn-xl { padding: var(--space-5) var(--space-10); font-size: var(--text-xl); border-radius: var(--radius-3xl); font-weight: var(--font-extrabold); }

/* ── Icon Button ────────────────────────────────────────────── */
.btn-icon {
  width: 44px; height: 44px; padding: 0;
  border-radius: var(--radius-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}

/* ── Neon Pulse CTA (for hero) ──────────────────────────────── */
.btn-neon {
  background: linear-gradient(135deg, var(--primary-500), var(--neon-cyan));
  color: white;
  font-weight: var(--font-extrabold);
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-10);
  border-radius: var(--radius-3xl);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.4), 0 0 80px rgba(6, 182, 212, 0.2);
  animation: neonPulse 3s ease-in-out infinite;
}
.btn-neon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.6), 0 0 120px rgba(6, 182, 212, 0.3);
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.4), 0 0 80px rgba(6, 182, 212, 0.2); }
  50% { box-shadow: 0 0 60px rgba(37, 99, 235, 0.6), 0 0 120px rgba(6, 182, 212, 0.35); }
}

/* ── Disabled ───────────────────────────────────────────────── */
.btn:disabled, .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Micro-Interaction: Ripple Effect ───────────────────────── */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-ripple:active::after {
  opacity: 1;
  transition: opacity 0s;
}

/* ── Micro-Interaction: Press Scale ─────────────────────────── */
.btn-press:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* ── Loading Spinner ────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--surface-4);
  border-top-color: var(--primary-400);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.spinner-sm { width: 14px; height: 14px; border-width: 1.5px; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }

/* ── Loading State Button ───────────────────────────────────── */
.btn-loading {
  pointer-events: none;
  position: relative;
}
.btn-loading .btn-text { opacity: 0; }
.btn-loading .spinner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Skeleton Loader ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: var(--radius-md);
  min-height: 16px;
}
.skeleton-text { height: 14px; margin-bottom: var(--space-2); width: 80%; }
.skeleton-text:last-child { width: 60%; }
.skeleton-heading { height: 24px; margin-bottom: var(--space-4); width: 50%; }
.skeleton-card { height: 200px; border-radius: var(--radius-2xl); }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
@keyframes skeletonShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}
.empty-state h4 {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.empty-state p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto var(--space-6);
}
