/**
 * HinduBaby Name Combiner - Custom Stylesheet & Micro-interactions
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  --accent-glow: radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', system-ui, sans-serif;
}

/* Background Atmospheric Glow */
.bg-ambient {
  background-image: var(--primary-glow), var(--accent-glow);
  background-attachment: fixed;
}

/* Glassmorphism & Soft Shadows */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(241, 245, 249, 1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(99, 102, 241, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  border-color: rgba(199, 210, 254, 0.9);
}

/* Custom animated gradient text */
.text-gradient {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-warm {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 60%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Buttons & Badges */
.btn-gradient {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.35);
}

.btn-gradient:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(99, 102, 241, 0.45);
}

.btn-gradient:active {
  transform: translateY(0);
}

/* Result item cards */
.result-pill {
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-pill:hover {
  transform: scale(1.02);
}

/* Toast Notification */
#hb-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#hb-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Heart animation */
@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.heart-animated {
  animation: heartPulse 0.35s ease-in-out;
}

/* Subtle Shimmer for Empty States */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-bg {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Modern clean scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Tool badge glow */
.badge-popular {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  border: 1px solid #FCD34D;
}
