/* ═══════════════════════════════════════════════════════════
   KnowYourGujarat — NAVBAR  (spec §1 of homepage_design.md)
   ═══════════════════════════════════════════════════════════

   §1 Layout    : position fixed, full-width, z-index 100, transparent
   §1A Logo     : SVG icon 32px | KnowYour (Inter 700 21px #FFF) | Gujarat (Inter 800 21px #FF7A00)
                  Gujarati tagline: Noto Sans Gujarati 500 11px #D1D5DB, mt 2px
   §1B Nav links: Inter 500 14px #D1D5DB, gap 32px
                  active → Inter 600 #FFF + 2px #FF7A00 underline at bottom -6px radius 2px
   §1C Right    : sun button 38×38px dark-glass | Upload Photo #FF7A00 pill Inter 600 13.5px
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Native App Cursor Feel ── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent;
}
html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #FFFFFF;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Ensure clickable controls have pointer cursor */
a, button, [role="button"], .nav-link, .btn-upload, .btn-theme, .hero__pill, .contrib-card {
  cursor: pointer !important;
}

/* ─────────────────────────────────────────────────────────── */
/*  GLOBAL SITE-WIDE FIXED ATMOSPHERIC BACKGROUND             */
.site-global-bg {
  display: none !important;
}


a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* ─────────────────────────────────────────────────────────── */
/*  HEADER SHELL                                              */
/* ─────────────────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.app-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────────────────────────────────── */
/*  HEADER INNER ROW                                          */
/* ─────────────────────────────────────────────────────────── */
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1000;
  pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────── */
/*  §1A  LOGO                                                 */
/* ─────────────────────────────────────────────────────────── */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
  z-index: 1002;
  cursor: pointer;
}

/* Gujarat map silhouette — filled solid blue */
.brand-emblem {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  fill: #0A4FCD !important;
  stroke: none !important;
  filter: drop-shadow(0 1px 4px rgba(10, 79, 205, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* "KnowYour" Inter 700 20px #0F172A  +  "Gujarat" Yatra One 21.5px #0A4FCD */
.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name-orange {
  font-family: 'Yatra One', cursive;
  font-size: 21.5px;
  font-weight: 400;
  color: #0A4FCD !important;
  margin-left: 2px;
  filter: drop-shadow(0 0 8px rgba(10, 79, 205, 0.3));
}

/* Gujarati tagline */
.brand-tagline-gu {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #64748B;
  margin-top: 2px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────── */
/*  §1B  NAV LINKS                                            */
/* ─────────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  pointer-events: auto;
}

/* Default link */
.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 200ms ease;
}
.nav-link:hover {
  color: #0F172A;
}

/* Active */
.nav-link.active {
  font-weight: 600;
  color: #0F172A;
}

/* Active underline */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: #FF7A00;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────── */
/*  §1C  RIGHT ACTIONS                                        */
/* ─────────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language Switcher Button */
.btn-lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}
.btn-lang-switcher:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Theme toggle: 38×38 px square */
.btn-theme {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 180ms ease;
}
.btn-theme:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Upload Photo: #0A4FCD pill */
.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: #0A4FCD;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF !important;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 2px 8px rgba(10, 79, 205, 0.25);
}
.btn-upload:hover {
  background: #083EA5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 79, 205, 0.35);
}

/* ─────────────────────────────────────────────────────────── */
/*  MOBILE BOTTOM NAV  (hidden desktop, flex ≤768px)         */
/*  spec §10: h 64px, bg rgba(7,10,16,0.95), blur 20px       */
/* ─────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(7, 10, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #64748B;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 8px;
  transition: color 200ms ease;
}
.mob-nav-item.active,
.mob-nav-item:hover {
  color: #FF7A00;
}

/* Center upload circle — spec: 48×48px, #FF7A00, margin-top -18px, glow shadow */
.mob-nav-upload {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FF7A00;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.5);
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.mob-nav-upload:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.6);
}

/* ─────────────────────────────────────────────────────────── */
/*  RESPONSIVE                                                */
/* ─────────────────────────────────────────────────────────── */

/* Tablet: tighten gaps */
@media (max-width: 1100px) {
  .header-inner { padding: 0 28px; }
  .nav-links { gap: 22px; }
  .brand-tagline-gu { display: none; } /* hide Gujarati on tight widths */
}

/* Mobile ≤768px: hide desktop nav, show bottom bar */
@media (max-width: 768px) {
  .nav-links,
  .btn-upload { display: none; }
  .header-inner { padding: 0 20px; }
  .mobile-nav { display: flex; }
  body { padding-bottom: 64px; }
}

/* ─────────────────────────────────────────────────────────── */
/*  DEMO SPACER (temp — will be replaced by hero section)    */
/* ─────────────────────────────────────────────────────────── */
.nav-demo-bg {
  min-height: 100vh;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-demo-label {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 80px;
}
