/**
 * Maps of India Hindi - Modern Design System Tokens
 * Optimized for Devanagari Hindi typography, Indian Saffron/Indigo palette,
 * and high-contrast accessibility.
 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Brand Identity Colors */
  --brand-saffron: #f97316;
  --brand-saffron-dark: #c2410c;
  --brand-saffron-light: #ffedd5;
  --brand-indigo: #1e3a8a;
  --brand-indigo-dark: #0f172a;
  --brand-indigo-light: #dbeafe;
  --brand-green: #059669;
  --brand-green-light: #d1fae5;
  
  /* Primary Action */
  --primary: var(--brand-saffron);
  --primary-hover: var(--brand-saffron-dark);
  --primary-subtle: var(--brand-saffron-light);
  --secondary: var(--brand-indigo);
  --secondary-hover: #1e40af;

  /* Surfaces & Canvas (Light Mode) */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-header: rgba(255, 255, 255, 0.92);
  
  /* Borders */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: var(--brand-saffron);
  
  /* Text Colors */
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.25);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-hindi: 'Noto Sans Devanagari', 'Mangal', sans-serif;
  --font-latin: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-canvas: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-muted: #1e293b;
  --bg-header: rgba(17, 24, 39, 0.92);
  
  --border-subtle: #334155;
  --border-strong: #475569;
  
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

/* Header Live Search Dropdown */
.moi-navbar-search {
  position: relative !important;
}
.moi-search-suggestions {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 999999;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
.moi-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  transition: background 0.1s ease;
}
.moi-suggest-item:last-of-type {
  border-bottom: none;
}
.moi-suggest-item:hover,
.moi-suggest-item.is-selected {
  background: #eff6ff;
  color: #1a3c6e;
}
.moi-suggest-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  white-space: nowrap;
}
.moi-suggest-title {
  flex: 1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}
.moi-suggest-viewall {
  display: block;
  text-align: center;
  padding: 10px 14px;
  background: #f8fafc;
  color: #17a2b8;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  border-top: 1px solid #e2e8f0;
}
.moi-suggest-viewall:hover {
  background: #e0f2fe;
  color: #1a3c6e;
  text-decoration: underline;
}
