/* ==============================================================================
   Harshya.in — Unified Global Topbar & Mobile Drawer Navigation System
   Matches official desktop and mobile specifications with zero layout shifts.
   ============================================================================== */

/* 1. TOP NAVBAR CONTAINER */
.bp-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: var(--topbar-h, 62px) !important;
  padding: 0 24px !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid #E5C8A2 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
}

/* 2. BRAND BADGE & LOGO */
.bp-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}
.bp-brand-img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 6px rgba(155, 27, 48, 0.22)) !important;
  transition: transform 0.22s ease !important;
}
.bp-brand:hover .bp-brand-img {
  transform: scale(1.06) rotate(2deg) !important;
}
.bp-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
}
.bp-brand-name {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  color: #8B1E2D !important;
  white-space: nowrap !important;
}
.bp-brand-domain {
  color: #C17A3A !important;
  font-weight: 800 !important;
}
.bp-brand-sub {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  margin-top: 1px !important;
  white-space: nowrap !important;
}

/* 3. CENTER NAVIGATION (DESKTOP) — RED VELVET EDITORIAL NAVIGATION */
.bp-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.bp-nav-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 13px !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #2D1A1A !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  letter-spacing: 0.01em !important;
}
.bp-nav-chip:hover {
  background: #FEF2E8 !important;
  color: #9B1B30 !important;
  border-color: rgba(155, 27, 48, 0.16) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(155, 27, 48, 0.08) !important;
}
.bp-nav-chip:active,
.bp-nav-chip.active {
  background: rgba(155, 27, 48, 0.08) !important;
  color: #9B1B30 !important;
  border-color: rgba(155, 27, 48, 0.25) !important;
  font-weight: 700 !important;
}
/* Eliminate awkward mismatched colored dots for clean typographic rhythm */
.chip-dot {
  display: none !important;
}

/* 4. RIGHT CONTROLS ('ASK AI' + HAMBURGER) */
.bp-topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}
.bp-topbar-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 9999px !important;
  background: #F8FAFC !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}
.bp-topbar-search-btn:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}
.bp-topbar-ai-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 16px !important;
  border-radius: 9999px !important;
  background: #9E483F !important;
  color: #FFFDF9 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  border: 1px solid rgba(245, 225, 197, 0.35) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(158, 72, 63, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  -webkit-tap-highlight-color: transparent !important;
}
.bp-topbar-ai-btn * {
  color: #FFFDF9 !important;
}
.bp-topbar-ai-btn:hover {
  transform: translateY(-1px) !important;
  background: #82362E !important;
  box-shadow: 0 6px 18px rgba(158, 72, 63, 0.45) !important;
  color: #FFFDF9 !important;
}
.bp-topbar-ai-btn:hover * {
  color: #FFFDF9 !important;
}
.bp-topbar-ai-btn .ai-sparkle {
  font-size: 14px !important;
  line-height: 1 !important;
}
.bp-hamburger-btn {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #1E293B !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}
.bp-hamburger-btn:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
}

/* 5. RESPONSIVE MEDIA QUERY (MOBILE VIEW <= 900px) */
@media (max-width: 900px) {
  .bp-topbar {
    padding: 0 14px !important;
    height: var(--topbar-h, 58px) !important;
  }
  .bp-brand-sub {
    display: none !important;
  }
  .bp-nav-links {
    display: none !important;
  }
  .bp-hamburger-btn {
    display: inline-flex !important;
  }
  .bp-topbar-ai-btn {
    padding: 7px 13px !important;
    font-size: 12.5px !important;
  }
}

/* 6. MOBILE NAVIGATION DRAWER */
.mobile-drawer-bg {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.55) !important;
  z-index: 99998 !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  transition: opacity 0.25s ease !important;
}
.mobile-drawer-bg.open {
  display: block !important;
}
.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 300px !important;
  max-width: 85vw !important;
  height: 100% !important;
  background: #FFFFFF !important;
  z-index: 99999 !important;
  padding: 22px 20px !important;
  box-sizing: border-box !important;
  transform: translateX(100%) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.mobile-drawer.open {
  transform: translateX(0) !important;
}
.drawer-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #E5C8A2 !important;
  margin-bottom: 16px !important;
  flex-shrink: 0 !important;
}
.drawer-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.drawer-close {
  background: #F1F5F9 !important;
  border: 1px solid #E5C8A2 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  cursor: pointer !important;
  color: #475569 !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}
.drawer-close:hover {
  background: #E5C8A2 !important;
  color: #0F172A !important;
}
.drawer-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 1 auto !important;
}
.drawer-nav a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  text-decoration: none !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}
.drawer-nav a:hover {
  background: #F8FAFC !important;
  color: #8B1E2D !important;
}
.drawer-nav .drawer-ai-link {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%) !important;
  color: #9F1239 !important;
  font-weight: 700 !important;
  border: 1px solid #FECDD3 !important;
  margin-top: 4px !important;
}
.drawer-nav .drawer-ai-link:hover {
  background: #FFE4E6 !important;
  color: #881337 !important;
}
.drawer-footer {
  margin-top: 20px !important;
  padding-top: 14px !important;
  border-top: 1px solid #F1F5F9 !important;
  font-size: 11px !important;
  color: #475569 !important;
  text-align: center !important;
  line-height: 1.4 !important;
  flex-shrink: 0 !important;
}

/* 7. MOBILE STICKY BOTTOM APP DOCK & CLEAN NAVIGATION (Gimmick-Free) */
#jk-ai-fab {
  display: none !important;
}
.harshya-mobile-bottom-nav {
  display: none;
}
@media (max-width: 640px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }
  #jk-ai-fab {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    right: 14px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    z-index: var(--z-fab, 200) !important;
  }
  .harshya-mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(60px + env(safe-area-inset-bottom)) !important;
    background: rgba(251, 248, 243, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid var(--line-soft, #E7E0D3) !important;
    box-shadow: 0 -4px 16px rgba(31, 41, 51, 0.08) !important;
    z-index: var(--z-sticky, 100) !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 6px env(safe-area-inset-bottom) 6px !important;
    box-sizing: border-box !important;
  }
  .harshya-mobile-bottom-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    color: #4A4A4A !important;
    text-decoration: none !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 52px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    padding: 4px 6px !important;
    transition: color 0.15s ease, background 0.15s ease !important;
  }
  .harshya-mobile-bottom-nav a:hover,
  .harshya-mobile-bottom-nav a:active {
    color: #9E483F !important;
    background: rgba(128, 19, 33, 0.06) !important;
  }
  .harshya-mobile-bottom-nav a.mob-ai-pill {
    color: #701B2B !important;
    background: #F5EBEF !important;
    border: 1px solid rgba(112, 27, 43, 0.18) !important;
  }
  .harshya-mobile-bottom-nav .mob-icon {
    font-size: 16px !important;
    line-height: 1 !important;
  }
}

/* 8. COOKIE BANNER & TOAST RESPONSIVE POSITIONING (Never Obscures Dock or FAB) */
#harshya-cookie-consent,
.harshya-cookie-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
}

#harshya-toast {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 999999 !important;
}

@media (max-width: 640px) {
  #harshya-cookie-consent,
  .harshya-cookie-banner {
    bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    z-index: var(--z-modal, 400) !important;
  }
  #harshya-toast {
    bottom: 76px !important;
  }
}


