/* ═══════════════════════════════════════════════════════════════════
   BIDPOTS NAVIGATION v5.0 — Rich Premium Header
   Single top bar: Logo | Nav Links | Actions (no sidebar)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Kill Old Sidebar & Legacy Elements ─────────────────────────── */
.navbar-side, #sidebar-toggle, .tooltip-sidebar-toggle, .postAd,
#bp-theme-toggle, .navbar-left {
  display: none !important;
  visibility: hidden !important;
}
/* Sidebar specifically: fully removed from layout */
.navbar-side {
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ─── Full Width Page Layout ─────────────────────────────────────── */
#page-wrapper {
  margin: 0 auto !important;
  margin-top: 72px !important;
  padding: 28px 32px !important;
  max-width: 1440px;
  width: 100%;
  min-height: calc(100vh - 72px);
  background: #f8f9fb;
}

/* ═══════════════════════════════════════════════════════════════════
   TOP NAVIGATION BAR — Single row premium header
   ═══════════════════════════════════════════════════════════════════ */
.navbar-top {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a2a5e 45%, #0f3460 100%) !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255,255,255,0.06) inset;
  border-bottom: none;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Subtle shimmer line on top edge */
.navbar-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #e94560, #f59e0b, #10b981, #3b82f6);
  background-size: 300% 100%;
  animation: bp-nav-shimmer 6s linear infinite;
  pointer-events: none;
}

@keyframes bp-nav-shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* ─── Brand / Logo Section ───────────────────────────────────────── */
.navbar-header {
  float: none !important;
  display: flex !important;
  align-items: center;
  height: 72px !important;
  padding: 0 0 0 24px !important;
  flex-shrink: 0;
}

.navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1 !important;
}

.navbar-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.navbar-brand a::after { content: none !important; }

/* Logo image — crisp, sharp, perfectly sized */
.navbar-brand img {
  height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.navbar-brand a:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2)) brightness(1.05);
}

/* Brand name text next to logo */
.navbar-brand a::before { content: none; }

/* ─── Nav Top Container ──────────────────────────────────────────── */
.nav-top {
  display: flex !important;
  align-items: center;
  flex: 1;
  height: 72px;
  padding: 0 20px 0 0 !important;
  margin: 0 !important;
  gap: 4px;
  justify-content: flex-end;
}

/* ─── Main Nav Links — inline in single bar ──────────────────────── */
.bp-main-nav {
  display: flex !important;
  align-items: center;
  list-style: none;
  margin: 0 auto 0 20px !important;
  padding: 0 !important;
  height: 72px;
  gap: 2px;
  position: static !important;
  background: transparent !important;
  border: none !important;
  width: auto !important;
}

.bp-main-nav > li {
  float: none !important;
  display: flex;
  align-items: center;
  height: 72px;
}

.bp-main-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 72px;
  color: rgba(255,255,255,0.78) !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.bp-main-nav > li > a:hover {
  color: #ffffff !important;
  border-bottom-color: #e94560;
  background: rgba(255,255,255,0.06);
}

.bp-main-nav > li > a.active,
.bp-main-nav > li.active > a {
  color: #ffffff !important;
  border-bottom-color: #e94560;
  font-weight: 600;
}

.bp-main-nav > li > a i {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.bp-main-nav > li > a:hover i { color: #e94560; }

/* Badge in nav */
.bp-main-nav .badge {
  background: #e94560 !important;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  min-width: 18px;
  text-align: center;
}

/* ─── Sell Button ────────────────────────────────────────────────── */
.bp-sell-btn-wrapper {
  margin-left: 8px !important;
}

.bp-sell-btn {
  background: linear-gradient(135deg, #e94560, #c0283f) !important;
  color: #ffffff !important;
  padding: 8px 22px !important;
  border-radius: 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(233,69,96,0.35);
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px;
  letter-spacing: 0.02em;
  height: auto !important;
}

.bp-sell-btn:hover {
  background: linear-gradient(135deg, #d63050, #a8223a) !important;
  color: #ffffff !important;
  border-bottom: none !important;
  border-top: none !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(233,69,96,0.45);
}

.bp-sell-btn i { color: #ffffff !important; font-size: 14px !important; }

/* ─── Right-side: icon buttons + login ──────────────────────────── */
.nav-top > .nav.navbar-right {
  float: none !important;
  display: flex !important;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  list-style: none;
  height: 72px;
  flex-shrink: 0;
}

.nav-top > .nav.navbar-right > li {
  float: none !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

/* Icon buttons */
.bp-nav-icon-btn {
  width: 40px; height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.8) !important;
  font-size: 17px !important;
  padding: 0 !important;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}

.bp-nav-icon-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.15);
}

/* User Avatar */
.bp-nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bp-nav-avatar:hover {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

/* ─── User Dropdown Menu ─────────────────────────────────────────── */
.bp-dropdown-menu {
  min-width: 230px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06) !important;
  padding: 8px 0 !important;
  margin-top: 10px !important;
  background: #fff !important;
  overflow: hidden;
}

.bp-dropdown-header {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.bp-dropdown-header strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.bp-dropdown-header small {
  color: #6b7280;
  font-size: 12px;
}

.bp-dropdown-menu > li > a {
  padding: 10px 18px !important;
  font-size: 13.5px;
  color: #374151 !important;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.bp-dropdown-menu > li > a:hover {
  background: #f0f9ff !important;
  color: #2563eb !important;
}

.bp-dropdown-menu > li > a i {
  width: 16px;
  color: #9ca3af;
  font-size: 14px;
  transition: color 0.15s;
}

.bp-dropdown-menu > li > a:hover i { color: #2563eb; }

.bp-dropdown-menu .divider {
  margin: 5px 14px !important;
  background: #f3f4f6;
  height: 1px;
  border: none !important;
}

.bp-admin-link {
  color: #7c3aed !important;
  font-weight: 700 !important;
}
.bp-admin-link i { color: #7c3aed !important; }

/* ─── Auth Buttons (not logged in) ──────────────────────────────── */
.bp-auth-btns {
  display: flex !important;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1060;
}

.bp-login-btn {
  color: rgba(255,255,255,0.88) !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none !important;
  transition: color 0.2s;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: auto !important;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.bp-login-btn:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
}

.bp-register-btn {
  background: linear-gradient(135deg, #e94560, #c0283f) !important;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 22px;
  text-decoration: none !important;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(233,69,96,0.35);
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: auto !important;
  letter-spacing: 0.01em;
}

.bp-register-btn:hover {
  background: linear-gradient(135deg, #d63050, #a8223a) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(233,69,96,0.45);
}

.bp-login-signup-nav {
  display: flex !important;
  align-items: center !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 1060;
}

/* ─── Hamburger toggle (mobile only) ────────────────────────────── */
.navbar-top .navbar-toggle {
  display: none;
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
  width: 40px; height: 40px;
  padding: 0 !important; margin: 0 !important;
  border-radius: 10px !important;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.navbar-toggle:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

.navbar-toggle .fa.fa-bars {
  color: rgba(255,255,255,0.9) !important;
  font-size: 18px !important;
}

/* ─── Chat Panel ─────────────────────────────────────────────────── */
div#messages { top: 72px !important; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════════════════════ */
.bp-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 1040;
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
}

.bp-mobile-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}

.bp-mobile-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 12px;
  transition: color 0.2s;
  border-radius: 8px;
}

.bp-mobile-nav ul li a i { font-size: 19px; }
.bp-mobile-nav ul li a:hover { color: #2563eb; }

.bp-mobile-post-btn {
  background: linear-gradient(135deg, #e94560, #c0283f) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 46px !important; height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: -14px;
  box-shadow: 0 3px 12px rgba(233,69,96,0.4);
  padding: 0 !important;
  font-size: 0 !important;
}

.bp-mobile-post-btn i { font-size: 20px !important; color: #fff !important; }
.bp-mobile-post-btn:hover {
  background: linear-gradient(135deg, #d63050, #a8223a) !important;
  color: #fff !important;
}

/* ─── Mobile Off-Canvas Menu ─────────────────────────────────────── */
.bp-mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1045;
  overflow-y: auto;
  padding: 0 0 90px;
  animation: bpSlideDown 0.22s ease-out;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.bp-mobile-menu.open { display: block; }

@keyframes bpSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu header with logo */
.bp-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(135deg, #0d1b3e, #0f3460);
}

.bp-mobile-menu-header img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

.bp-mobile-menu-close {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.bp-mobile-menu-close:hover { background: rgba(255,255,255,0.2); }

.bp-menu-user {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0f4ff, #eff6ff);
  border-bottom: 1px solid #dbeafe;
  margin-bottom: 8px;
}

.bp-menu-user img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #bfdbfe; }
.bp-menu-user-info strong { display: block; font-size: 14px; color: #111827; font-weight: 700; }
.bp-menu-user-info small { color: #6b7280; font-size: 12px; }

.bp-mobile-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  color: #374151;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.bp-mobile-menu a:hover {
  background: #f0f9ff;
  color: #2563eb;
  border-left-color: #2563eb;
}

.bp-mobile-menu a i { width: 20px; text-align: center; color: #9ca3af; font-size: 16px; transition: color 0.15s; }
.bp-mobile-menu a:hover i { color: #2563eb; }
.bp-menu-admin { background: #f5f3ff !important; color: #7c3aed !important; font-weight: 600 !important; }
.bp-menu-admin:hover { background: #ede9fe !important; border-left-color: #7c3aed !important; }
.bp-menu-admin i { color: #7c3aed !important; }

.bp-menu-divider { height: 1px; background: #f3f4f6; margin: 6px 0; }

/* ─── Desktop FAB Post Ad ─────────────────────────────────────────── */
.bp-fab-post {
  display: none;
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #e94560, #c0283f);
  color: #ffffff;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 18px rgba(233,69,96,0.45);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bp-fab-post:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,69,96,0.55);
  color: #ffffff;
  text-decoration: none;
}

@media (min-width: 992px) { .bp-fab-post { display: flex; } }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */

/* Tablet: hide main nav links, show hamburger */
@media (max-width: 991px) {
  .navbar-top { height: 62px !important; min-height: 62px !important; max-height: 62px !important; }
  .navbar-header { height: 62px !important; padding-left: 16px !important; }
  .nav-top { height: 62px !important; padding-right: 14px !important; }
  .bp-main-nav { display: none !important; }
  .nav-top > .nav.navbar-right#menuRightOptions { display: none !important; }
  .navbar-top .navbar-toggle { display: flex !important; }
  .bp-mobile-nav { display: block; }
  .bp-mobile-menu { top: 62px; }
  #page-wrapper { margin-top: 62px !important; padding: 16px !important; padding-bottom: 80px !important; }
  div#messages { top: 62px !important; }
}

/* Phone: hide login/register buttons (bottom nav has them) */
@media (max-width: 767px) {
  .nav-top > .bp-login-signup-nav { display: none !important; }
}

/* Tablet 768-991px: keep login/register visible */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-top > .bp-login-signup-nav { display: flex !important; align-items: center !important; }
  .bp-auth-btns { display: flex !important; }
}

@media (max-width: 575px) {
  .navbar-brand img { height: 36px !important; }
  #page-wrapper { padding: 10px !important; padding-bottom: 76px !important; }
}

@media (min-width: 992px) {
  #page-wrapper { margin-top: 72px !important; }
}
