/* ==========================================================================
   VIKRAANTWORLD.COM — MASTER RESPONSIVE NAVIGATION
   Fast, Smooth 2-Tier Header & Mobile Slide Drawer
   Option Names: SHORT & PUNCHY
   ========================================================================== */

/* FIXED STICKY HEADER */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(11, 27, 61, 0.08);
  border-bottom: 2px solid var(--gold-border);
}

/* TIER 1: BRAND BAR */
.header-top-tier {
  background: linear-gradient(135deg, #091428 0%, #0b1b3d 100%);
  color: #ffffff;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(254, 240, 138, 0.2);
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.brand-emblem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.brand-title-box {
  display: flex;
  flex-direction: column;
}

.brand-main-name {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 1px;
}

.brand-main-name span {
  color: var(--gold-accent);
}

.brand-sub-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fed7aa;
  letter-spacing: 0.8px;
}

/* TOP RIGHT ACTIONS */
.header-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-panchang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(254, 243, 199, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef3c7;
  text-decoration: none !important;
  transition: var(--transition-fast);
}

.live-panchang-chip:hover {
  background: rgba(217, 119, 6, 0.35);
  border-color: var(--gold-accent);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-header-cta {
  background: var(--gold-gradient);
  color: #ffffff !important;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.3);
  transition: var(--transition);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
}

/* MOBILE TOGGLE BUTTON */
.btn-mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-mobile-menu:hover {
  background: var(--gold-primary);
}

/* TIER 2: NAVIGATION MENU BAR */
.header-nav-tier {
  background: #ffffff;
  padding: 0.35rem 0;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--navy-brand);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition-fast);
}

.nav-link:hover {
  background: var(--navy-soft);
  color: var(--gold-primary) !important;
}

.nav-link.active {
  background: var(--gold-soft);
  color: var(--gold-primary) !important;
  font-weight: 800;
}

/* DROPDOWN SYSTEM */
.nav-item.dropdown {
  position: relative;
}

.nav-link .dropdown-caret {
  font-size: 0.62rem;
  margin-left: 3px;
  opacity: 0.7;
  transition: transform 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.nav-item.dropdown:hover .nav-link .dropdown-caret,
.nav-item.dropdown:focus-within .nav-link .dropdown-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 295px;
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(11, 27, 61, 0.16);
  padding: 8px 0;
  margin-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  pointer-events: none;
}

/* Invisible bridge so mouse hover doesn't break between link and dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  padding: 6px 16px 4px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--navy-brand);
  text-decoration: none !important;
  font-family: var(--font-body);
  transition: all 0.18s ease;
}

.dropdown-item:hover {
  background: #fff7ed;
  color: #c2410c !important;
  padding-left: 20px;
}

.dropdown-item .item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.dropdown-item .item-text {
  display: flex;
  flex-direction: column;
}

.dropdown-item .item-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.dropdown-item .item-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.25;
}

.dropdown-item.study-link-item {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 10px;
  margin: 6px 8px 4px 8px;
  padding: 10px 14px;
  transition: all 0.22s ease;
}

.dropdown-item.study-link-item:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #fbbf24 !important;
  transform: translateX(4px);
}

.dropdown-item.study-link-item .item-title {
  color: #fbbf24 !important;
  font-weight: 800;
}

.dropdown-item.study-link-item .item-desc {
  color: #fde68a !important;
  opacity: 0.9;
}

/* CALCULATOR SIDEBAR STUDY LINK */
.hub-study-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid var(--gold-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 8px;
  margin-bottom: 6px;
  text-decoration: none !important;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-study-link:hover {
  background: #fde68a;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
  color: #78350f;
}

.hub-study-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* QUICK SEARCH TRIGGER */
.btn-quick-search {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-quick-search:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

/* MOBILE RESPONSIVE ADAPTATIONS */
@media (max-width: 992px) {
  .btn-mobile-menu {
    display: inline-flex;
  }
  .header-nav-tier {
    display: none;
  }
  .live-panchang-chip {
    display: none;
  }
}

/* MOBILE SLIDE-IN DRAWER */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 20, 40, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: #ffffff;
  z-index: 2000;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  left: 0;
}

.drawer-header {
  background: var(--navy-brand);
  color: #ffffff;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-primary);
}

.drawer-brand {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
}

.drawer-brand span {
  color: var(--gold-accent);
}

.btn-close-drawer {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.drawer-section-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  padding-left: 0.4rem;
}

.drawer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy-brand);
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition-fast);
}

.drawer-nav-link:hover, .drawer-nav-link.active {
  background: var(--gold-soft);
  color: var(--gold-primary) !important;
}

.drawer-cta-wrap {
  margin-top: auto;
  padding: 1.2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

/* ==========================================================================
   HEADER AUTHENTICATION & USER PROFILE STYLES
   ========================================================================== */
.header-auth-wrap {
  display: inline-flex;
  align-items: center;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-auth-btn:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #f59e0b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.header-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-user-chip:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.18);
}

.header-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  overflow: hidden;
}

.btn-header-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.btn-header-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

/* TIER 2 CONTAINER ALIGNMENT (PREVENTS 2ND/3RD LINE WRAP) */
.header-nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-inner::-webkit-scrollbar {
  display: none;
}

/* NAV MENU LIST - PREVENTS SECOND LINE WRAP ON STANDARD SCREENS */
.nav-menu-list, .main-nav-bar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

.nav-menu-list li, .main-nav-bar li {
  list-style: none !important;
  white-space: nowrap !important;
}

.header-nav-tier .nav-link {
  padding: 6px 10px !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
}

/* HIGH CONTRAST SEARCH TRIGGER ON WHITE TIER 2 NAVBAR */
.header-nav-tier .btn-quick-search {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f1d3d !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.85rem !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
}

.header-nav-tier .btn-quick-search span {
  color: #0f1d3d !important;
  font-weight: 700 !important;
}

.header-nav-tier .btn-quick-search:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-1px) !important;
}

.header-nav-tier .btn-quick-search:hover span {
  color: #92400e !important;
}

/* HIGH CONTRAST GAMES LINK ON WHITE NAVBAR */
.header-nav-tier .nav-link-games {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  color: #047857 !important;
  font-weight: 700 !important;
}

.header-nav-tier .nav-link-games:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #065f46 !important;
  border-color: #10b981 !important;
}

/* USER PROFILE / SIGN IN BUTTON IN TOP BAR */
.user-auth-top-action {
  display: inline-flex;
  align-items: center;
}

.btn-user-profile,
.nav-auth-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.28)) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #fef08a !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-full) !important;
  font-family: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  text-decoration: none !important;
}

.btn-user-profile:hover,
.nav-auth-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.5)) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4) !important;
}

.btn-user-profile .user-avatar-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

.btn-user-profile .user-status-text {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* 3D GAMES ECOSYSTEM BUTTON & BADGE */
.nav-link-games {
  position: relative;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  color: #6ee7b7 !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}

.nav-link-games:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-1px);
}

.nav-games-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 5px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

