/* JubaShakti - Global Design System & Foundation (Phase 1)
   "Apple-level product clarity + modern Indian digital product + subtle North Bengal cultural identity"
*/

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Surface & Canvas Colors */
  --js-bg-canvas: #FAF9F6; /* Warm Paper White */
  --js-bg-surface: #FFFFFF; /* Pure White Elevation */
  --js-bg-subtle: #F1F5F9;
  
  /* Typography Colors */
  --js-ink-primary: #0F172A; /* Deep Slate Ink */
  --js-ink-secondary: #334155; /* Slate 700 */
  --js-ink-muted: #64748B; /* Slate 500 */
  
  /* Brand Interaction & Cultural Colors */
  --js-brand-blue: #0284C7; /* Teesta Blue */
  --js-brand-blue-hover: #0369A1;
  --js-brand-emerald: #059669; /* Dooars Emerald Green */
  --js-brand-ochre: #D97706; /* Terracotta Gold / Ochre */
  
  /* Borders & Dividers */
  --js-border-subtle: #E2E8F0;
  --js-border-hover: #CBD5E1;
  
  /* Typography Stacks */
  --js-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --js-font-bengali: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
  --js-font-mono: 'Space Grotesk', monospace;
  
  /* Radii */
  --js-radius-card: 16px;
  --js-radius-button: 12px;
  --js-radius-pill: 9999px;
  
  /* Elevation Shadows */
  --js-shadow-subtle: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --js-shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --js-shadow-elevated: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
  font-family: var(--js-font-sans);
  color: var(--js-ink-primary);
  background-color: var(--js-bg-canvas);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--js-bg-canvas);
  color: var(--js-ink-primary);
}

/* Typography Utility Classes */
.font-bengali {
  font-family: var(--js-font-bengali);
}

h1, h2, h3, .font-heading {
  font-family: var(--js-font-sans);
  letter-spacing: -0.02em;
}

.font-mono-tag {
  font-family: var(--js-font-mono);
  letter-spacing: 0.1em;
}

/* Focus Indicator for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--js-brand-blue);
  outline-offset: 3px;
}

/* Clean Editorial Card Style */
.js-card {
  background-color: var(--js-bg-surface);
  border: 1px solid var(--js-border-subtle);
  border-radius: var(--js-radius-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--js-shadow-subtle);
}

.js-card:hover {
  border-color: var(--js-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--js-shadow-card);
}

/* North Bengal Cultural Design Language Motifs */
.nb-terracotta-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--js-brand-ochre) 30%, var(--js-brand-ochre) 70%, transparent);
  opacity: 0.4;
}

.nb-tea-badge {
  background-color: #ECFDF5;
  color: var(--js-brand-emerald);
  border: 1px solid #A7F3D0;
}

.nb-foothill-bg {
  background-color: var(--js-bg-canvas);
  background-image: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.04) 0%, transparent 70%);
}

/* Drag & Drop Zone */
.drop-zone {
  border: 2px dashed var(--js-border-hover);
  border-radius: 1rem;
  background-color: #F8FAFC;
  transition: all 0.2s ease;
}

.drop-zone:hover,
.drop-zone.drop-zone--over {
  border-color: var(--js-brand-blue);
  background-color: #EFF6FF;
}

/* Status Badges */
.badge-confirmed {
  background-color: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.badge-closed {
  background-color: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.badge-expected {
  background-color: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

/* Drawer & Modal Backdrop */
.drawer-backdrop {
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

/* Fade In Animation */
.animate-fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================== */
/* JUBA SHAKTI PREMIUM MOTION & INTERACTION SYSTEM    */
/* ================================================== */

/* Hero Entrance Animations */
.hero-reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

.hero-reveal-delay-1 { animation-delay: 0.08s; }
.hero-reveal-delay-2 { animation-delay: 0.16s; }
.hero-reveal-delay-3 { animation-delay: 0.24s; }
.hero-reveal-delay-4 { animation-delay: 0.32s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-Revealed Sections */
.js-reveal-section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js-reveal-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Card & Interactive Micro-Interactions */
.js-card,
.js-btn-interactive,
.compressor-preset-btn {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.js-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--js-shadow-card);
}

.js-card:active,
.js-btn-interactive:active {
  transform: scale(0.985);
}

/* Desktop Dropdown Transition */
#desktop-more-dropdown-menu:not(.hidden) {
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SPA Route View Transition */
.spa-view:not(.hidden) {
  animation: spaViewRouteFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spaViewRouteFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spotlight Subtle Ambient Motion */
.js-spotlight-pulse {
  animation: spotlightAmbient 4s ease-in-out infinite;
}

@keyframes spotlightAmbient {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.003); }
}

/* Motion Accessibility & Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #js-first-visit-intro {
    display: none !important;
  }
  .js-nav-active-pill {
    transition: none !important;
  }
  .hero-reveal,
  .js-reveal-section {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .js-card:hover,
  .js-btn-interactive:hover {
    transform: none !important;
  }
  .js-spotlight-pulse {
    animation: none !important;
  }
  .spa-view:not(.hidden) {
    animation: none !important;
  }
}



/* Mobile Floating Bottom Navigation Bar */
.js-bottom-nav-container {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  border-radius: 9999px;
}

.js-bottom-nav-item {
  position: relative;
  z-index: 10;
  transition: color 0.2s ease;
}

.js-bottom-nav-item.active {
  color: var(--js-brand-blue);
}

.js-nav-active-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 9999px;
  background-color: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Print Styles */
@media print {
  header,
  footer,
  #js-mobile-bottom-nav,
  #mobile-more-drawer,
  .no-print {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}

