/**
 * NP Booking Design System
 * Consistent styles for all pages - matching React homepage
 * Version 2.0
 */

/* ═══════════════════════════════════════════════════════════════
   ROOT VARIABLES
   ═══════════════════════════════════════════════════════════════ */
:root {
  --np-primary: #0f172a;
  --np-indigo: #6366f1;
  --np-indigo-light: #818cf8;
  --np-purple: #a855f7;
  --np-pink: #ec4899;
  --np-cyan: #06b6d4;
  --np-emerald: #10b981;
  --np-amber: #f59e0b;
  --np-rose: #f43f5e;
  
  --np-gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #0f172a 100%);
  --np-gradient-hero: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  --np-gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  
  --np-glass-bg: rgba(255, 255, 255, 0.05);
  --np-glass-border: rgba(255, 255, 255, 0.1);
  --np-glass-bg-light: rgba(255, 255, 255, 0.8);
  
  --np-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --np-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ═══════════════════════════════════════════════════════════════
   BASE ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes np-fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes np-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes np-slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes np-slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes np-scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes np-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes np-float-slow {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes np-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes np-pulse-ring {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes np-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes np-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes np-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes np-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.7); }
}

@keyframes np-particle-rise {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-150px) translateX(var(--drift, 20px)) rotate(360deg); opacity: 0; }
}

@keyframes np-blob-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATION UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */
.np-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s var(--np-spring);
}

.np-fade-up.np-visible,
.np-fade-up:is(.vis) {
  opacity: 1;
  transform: translateY(0);
}

.np-fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.np-fade-in.np-visible,
.np-fade-in:is(.vis) {
  opacity: 1;
}

.np-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s var(--np-spring);
}

.np-slide-left.np-visible,
.np-slide-left:is(.vis) {
  opacity: 1;
  transform: translateX(0);
}

.np-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s var(--np-spring);
}

.np-slide-right.np-visible,
.np-slide-right:is(.vis) {
  opacity: 1;
  transform: translateX(0);
}

/* Delay modifiers */
.np-delay-1 { transition-delay: 0.1s !important; }
.np-delay-2 { transition-delay: 0.2s !important; }
.np-delay-3 { transition-delay: 0.3s !important; }
.np-delay-4 { transition-delay: 0.4s !important; }
.np-delay-5 { transition-delay: 0.5s !important; }

/* Continuous animations */
.np-float { animation: np-float 4s ease-in-out infinite; }
.np-float-slow { animation: np-float-slow 6s ease-in-out infinite; }
.np-pulse { animation: np-pulse 5s ease-in-out infinite; }
.np-rotate-slow { animation: np-rotate-slow 20s linear infinite; }
.np-shimmer { animation: np-shimmer 4s linear infinite; }
.np-glow { animation: np-glow-pulse 3s ease-in-out infinite; }
.np-blob { animation: np-blob-morph 15s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════════
   GRADIENT TEXT EFFECTS
   ═══════════════════════════════════════════════════════════════ */
.np-text-gradient {
  background: linear-gradient(135deg, #818cf8, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.np-text-gradient-white {
  background: linear-gradient(135deg, #fff 30%, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.np-text-gradient-shine {
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #a855f7, #6366f1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: np-shimmer 4s linear infinite;
}

.np-text-gradient-emerald {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   GLASSMORPHISM CARDS
   ═══════════════════════════════════════════════════════════════ */
.np-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  transition: var(--np-transition);
}

.np-glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.np-glass-card-light {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  transition: var(--np-transition);
}

.np-glass-card-light:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Feature cards */
.np-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: var(--np-transition);
}

.np-feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Light feature cards */
.np-feature-card-light {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: var(--np-transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.np-feature-card-light:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   BLUR ORB DECORATIONS
   ═══════════════════════════════════════════════════════════════ */
.np-blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: np-pulse 8s ease-in-out infinite;
}

.np-blur-orb-sm {
  width: 300px;
  height: 300px;
  filter: blur(80px);
}

.np-blur-orb-md {
  width: 500px;
  height: 500px;
  filter: blur(120px);
}

.np-blur-orb-lg {
  width: 700px;
  height: 700px;
  filter: blur(150px);
}

.np-blur-orb-indigo {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), rgba(79, 70, 229, 0.1));
}

.np-blur-orb-purple {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), rgba(147, 51, 234, 0.1));
}

.np-blur-orb-pink {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3), rgba(219, 39, 119, 0.1));
}

.np-blur-orb-cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), rgba(8, 145, 178, 0.1));
}

.np-blur-orb-emerald {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.1));
}

/* ═══════════════════════════════════════════════════════════════
   SECTION BACKGROUNDS
   ═══════════════════════════════════════════════════════════════ */
.np-section-dark {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.np-section-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.np-section-light {
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.np-section-white {
  background: white;
  position: relative;
  overflow: hidden;
}

/* Grid pattern overlay */
.np-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: 
    linear-gradient(#818cf8 1px, transparent 1px),
    linear-gradient(90deg, #818cf8 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.np-dots-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: radial-gradient(#818cf8 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--np-transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.np-btn-primary {
  background: #6366f1;
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.np-btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.np-btn-dark {
  background: #0f172a;
  color: white;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.np-btn-dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.4);
}

.np-btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.np-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.np-btn-outline-dark {
  background: transparent;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.np-btn-outline-dark:hover {
  background: rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.np-btn-emerald {
  background: #10b981;
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.np-btn-emerald:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Glow effects */
.np-glow-indigo {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.np-glow-emerald {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.np-glow-purple {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   PILLS & BADGES
   ═══════════════════════════════════════════════════════════════ */
.np-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.np-pill-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.np-pill-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.np-pill-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.np-pill-light {
  background: #eef2ff;
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.np-pill-shine {
  position: relative;
  overflow: hidden;
}

.np-pill-shine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: np-shimmer 3s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   PRICING CARDS
   ═══════════════════════════════════════════════════════════════ */
.np-pricing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: var(--np-transition);
}

.np-pricing-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.np-pricing-card-featured {
  background: rgba(99, 102, 241, 0.08);
  border: 2px solid rgba(129, 140, 248, 0.5);
}

.np-pricing-card-featured:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   ICON CONTAINERS
   ═══════════════════════════════════════════════════════════════ */
.np-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  flex-shrink: 0;
}

.np-icon-box-sm { width: 2.5rem; height: 2.5rem; }
.np-icon-box-md { width: 3rem; height: 3rem; }
.np-icon-box-lg { width: 4rem; height: 4rem; }

.np-icon-box-gradient {
  background: linear-gradient(135deg, var(--from), var(--to));
  color: white;
  box-shadow: 0 10px 25px -5px var(--shadow, rgba(99, 102, 241, 0.3));
}

/* ═══════════════════════════════════════════════════════════════
   PARTICLES
   ═══════════════════════════════════════════════════════════════ */
.np-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  animation: np-particle-rise var(--dur, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR (Floating Pill Style)
   ═══════════════════════════════════════════════════════════════ */
.np-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem;
  display: flex;
  justify-content: center;
  transition: padding 0.3s ease;
}

.np-navbar.scrolled {
  padding: 0.5rem 1rem;
}

.np-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: 9999px;
  width: 100%;
  max-width: 56rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.np-navbar.scrolled .np-navbar-inner {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */
.np-faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: var(--np-transition);
}

.np-faq-item:hover,
.np-faq-item.active {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.np-faq-item-light {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: var(--np-transition);
}

.np-faq-item-light:hover,
.np-faq-item-light.active {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   WAVE SEPARATOR
   ═══════════════════════════════════════════════════════════════ */
.np-wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}

.np-wave-separator svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL - Legacy support for .fu .fl .fr classes
   ═══════════════════════════════════════════════════════════════ */
.fu {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s var(--np-spring);
}

.fl {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s var(--np-spring);
}

.fr {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s var(--np-spring);
}

.fu.vis, .fl.vis, .fr.vis {
  opacity: 1;
  transform: translate(0, 0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .np-blur-orb { transform: scale(0.6); }
  .np-glass-card { border-radius: 1rem; }
  .np-feature-card { padding: 1.5rem; }
  .np-btn { padding: 0.75rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .np-float, .np-float-slow, .np-pulse, .np-rotate-slow, 
  .np-shimmer, .np-glow, .np-blob {
    animation: none !important;
  }
  
  .np-fade-up, .np-fade-in, .np-slide-left, .np-slide-right,
  .fu, .fl, .fr {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
