/* ═══════════════════════════════════════════════════════════════════
   BIDPOTS NAVIGATION — eBay Model (v4.0)
   Two-row top nav: Logo + Search + Actions | Menu Links
   No sidebar, no dark mode, full-width content
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Kill Sidebar & Old Elements ────────────────────────────────── */
.navbar-side, #sidebar-toggle, .tooltip-sidebar-toggle, .postAd,
#bp-theme-toggle, .navbar-left { display: none !important; }

/* ─── Full Width Page ────────────────────────────────────────────── */
#page-wrapper {
  margin: 0 auto !important;
  margin-top: 110px !important;
  padding: 24px 32px !important;
  max-width: 1440px;
  width: 100%;
  min-height: calc(100vh - 110px);
  background: #f7f7f7;
}

/* ═══════════════════════════════════════════════════════════════════
   TOP BAR (Row 1): Logo + Post Ad + Messages + User
   ═══════════════════════════════════════════════════════════════════ */
.navbar-top {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
  height: auto !important;
  max-height: none !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  border-bottom: none;
  padding: 0 !important;
  display: block !important;
}

/* Row 1: Brand + Actions */
.navbar-header {
  float: left !important;
  display: flex !important;
  align-items: center;
  height: 56px;
  padding-left: 24px;
}

.navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}

.navbar-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand a::after { content: none !important; }

/* Logo — high quality, crisp rendering, perfect responsive size */
.navbar-brand img {
  height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* ─── Nav Top Container ──────────────────────────────────────────── */
.nav-top {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  height: 56px;
  padding: 0 24px 0 0 !important;
  margin: 0 !important;
  gap: 6px;
}

.nav-top > .nav.navbar-right {
  float: none !important;
  display: flex !important;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  list-style: none;
  height: 56px;
}

.nav-top > .nav.navbar-right > li {
  float: none !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

/* Icon Buttons (Messages etc) */
.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: background 0.2s;
}

.bp-nav-icon-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
}

/* User Avatar in nav */
.bp-nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}

.bp-nav-avatar:hover { border-color: #ffffff; }

/* ─── User Dropdown Menu ─────────────────────────────────────────── */
.bp-dropdown-menu {
  min-width: 220px;
  border: 1px solid #e8e8e8 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12) !important;
  padding: 8px 0 !important;
  margin-top: 8px !important;
}

.bp-dropdown-header {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}

.bp-dropdown-header strong {
  display: block;
  font-size: 14px;
  color: #191919;
}

.bp-dropdown-header small {
  color: #767676;
  font-size: 12px;
}

.bp-dropdown-menu > li > a {
  padding: 10px 16px !important;
  font-size: 13px;
  color: #333 !important;
  transition: background 0.15s;
}

.bp-dropdown-menu > li > a:hover {
  background: #f5f5f5 !important;
  color: #0654ba !important;
}

.bp-dropdown-menu > li > a i {
  width: 18px;
  margin-right: 10px;
  color: #999;
}

.bp-dropdown-menu .divider {
  margin: 4px 12px !important;
  background: #f0f0f0;
}

.bp-admin-link {
  color: #7c3aed !important;
  font-weight: 600 !important;
}

.bp-admin-link i { color: #7c3aed !important; }

/* Auth buttons (not logged in) */
.bp-auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-login-btn {
  color: rgba(255,255,255,0.9) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none !important;
  transition: color 0.2s;
}

.bp-login-btn:hover { color: #ffffff !important; text-decoration: underline !important; }

.bp-register-btn {
  background: #e94560 !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 20px;
  text-decoration: none !important;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(233,69,96,0.3);
}

.bp-register-btn:hover { background: #d63050 !important; color: #fff !important; }

/* ═══════════════════════════════════════════════════════════════════
   ROW 2: Main Navigation Links (eBay-style sub-nav)
   ═══════════════════════════════════════════════════════════════════ */
.bp-main-nav {
  display: flex !important;
  align-items: center;
  list-style: none;
  margin: 0 !important;
  padding: 0 24px;
  height: 44px;
  background: linear-gradient(90deg, #0f3460 0%, #16213e 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  gap: 0;
}

.bp-main-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.75) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bp-main-nav > li > a:hover {
  color: #ffffff !important;
  border-bottom-color: #e94560;
}

.bp-main-nav > li > a i {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.bp-main-nav > li > a:hover i { color: #e94560; }

/* Sell Button in nav row */
.bp-sell-btn-wrapper {
  margin-left: auto !important;
}

.bp-sell-btn {
  background: #e94560 !important;
  color: #ffffff !important;
  padding: 7px 22px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: background 0.2s ease;
  box-shadow: 0 2px 8px rgba(233,69,96,0.3);
}

.bp-sell-btn:hover {
  background: #d63050 !important;
  color: #ffffff !important;
  border-bottom: none !important;
}

/* Make navbar-top tall enough for 2 rows */
.navbar-top { min-height: 100px; }

/* ─── Badge ──────────────────────────────────────────────────────── */
.bp-main-nav .badge {
  background: #e94560 !important;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV + HAMBURGER MENU
   ═══════════════════════════════════════════════════════════════════ */
.bp-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -1px 6px rgba(0,0,0,0.06);
  z-index: 1040;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.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: 2px;
  color: #767676;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 12px;
  transition: color 0.2s;
}

.bp-mobile-nav ul li a i { font-size: 18px; }
.bp-mobile-nav ul li a:hover { color: #0654ba; }

.bp-mobile-post-btn {
  background: #0654ba !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 44px !important; height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: -12px;
  box-shadow: 0 2px 8px rgba(6,84,186,0.3);
  font-size: 0 !important;
  padding: 0 !important;
}

.bp-mobile-post-btn i { font-size: 20px !important; color: #fff !important; }
.bp-mobile-post-btn:hover { background: #044089 !important; color: #fff !important; }

/* Hamburger */
.navbar-top .navbar-toggle {
  display: none;
  background: transparent !important;
  border: none !important;
  width: 40px; height: 40px;
  padding: 0 !important; margin: 0 !important;
  border-radius: 50%;
  align-items: center; justify-content: center;
  cursor: pointer;
}

.navbar-toggle:hover { background: #f0f0f0 !important; }
.navbar-toggle .fa.fa-bars { color: #333 !important; font-size: 20px !important; }

/* Mobile Off-Canvas Menu */
.bp-mobile-menu {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1045;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 90px;
  animation: bpSlide 0.25s ease-out;
}

.bp-mobile-menu.open { display: block; }

@keyframes bpSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bp-menu-user {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: #f7f7f7;
  border-radius: 12px;
  margin-bottom: 14px;
}

.bp-menu-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bp-menu-user-info strong { display: block; font-size: 14px; color: #191919; font-weight: 700; }
.bp-menu-user-info small { color: #767676; font-size: 12px; }

.bp-mobile-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  color: #333;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s;
}

.bp-mobile-menu a:hover { background: #f5f5f5; color: #0654ba; }
.bp-mobile-menu a i { width: 20px; text-align: center; color: #999; font-size: 16px; }
.bp-mobile-menu a:hover i { color: #0654ba; }

.bp-menu-admin { background: #f5f3ff !important; color: #7c3aed !important; font-weight: 600 !important; }
.bp-menu-admin i { color: #7c3aed !important; }

.bp-menu-divider { height: 1px; background: #f0f0f0; margin: 8px 0; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 991px) {
  .navbar-top { min-height: 56px; }
  .navbar-header { height: 56px; padding-left: 12px; }
  .bp-main-nav { display: none !important; }
  .nav-top > .nav.navbar-right#menuRightOptions { display: none !important; }
  .nav-top > .nav.navbar-right#ulLoginSignup { display: none !important; }
  .navbar-top .navbar-toggle { display: flex !important; }
  .nav-top { height: 56px; padding-right: 12px !important; }
  .bp-mobile-nav { display: block; }
  #page-wrapper { margin-top: 56px !important; padding: 14px !important; padding-bottom: 76px !important; }
}

@media (max-width: 575px) {
  .navbar-brand img { height: 34px !important; }
  #page-wrapper { padding: 10px !important; padding-bottom: 72px !important; }
}

@media (min-width: 992px) {
  #page-wrapper { margin-top: 100px !important; }
}

/* ─── Chat panel fix ─────────────────────────────────────────────── */
div#messages { top: 56px !important; }
@media (min-width: 992px) { div#messages { top: 100px !important; } }

/* ─── Floating Post Ad Button (Desktop - Bottom Right Circle) ────── */
.bp-fab-post {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e94560, #d63050);
  color: #ffffff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(233,69,96,0.4);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bp-fab-post:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(233,69,96,0.5);
  color: #ffffff;
  text-decoration: none;
}

@media (min-width: 992px) {
  .bp-fab-post { display: flex; }
}
