/* ============================================================
   Hustlers Crib — Global Overrides
   Applies to ALL pages: white background, minimal header,
   mobile bottom nav spacing
   ============================================================ */

/* ── White background everywhere ── */
body,
body.night-mode { background: #ffffff !important; }

/* ── Main header: minimal & clean (matches cf-nav style) ── */
.main-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f0f0f0 !important;
  box-shadow: none !important;
}

/* Tighten header height */
.main-header .container,
.main-header .container-fluid { padding-top: 10px; padding-bottom: 10px; }

/* Clean logo */
.main-header .logo-wrapper { display: flex; align-items: center; }
.main-header .logo img { max-height: 36px; }

/* Search bar: pill shape, light fill */
.main-header .search-wrapper .form-control {
  border-radius: 20px !important;
  background: #f5f5f5 !important;
  border: 1.5px solid #ebebeb !important;
  height: 38px !important;
  font-size: 14px;
}
.main-header .search-wrapper .form-control:focus {
  border-color: #e6b541 !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Nav icons: clean */
.main-header .navbar-wrapper ul li a,
.main-header .navbar-wrapper ul li button { color: #444 !important; }

/* ── Remove default sidebar background tint ── */
.sg-offcanvas-sidebar,
.sidebar-wrapper { background: transparent !important; }

/* Cards: white, soft border, no heavy shadow */
.card {
  background: #ffffff !important;
  border: 1px solid #ebebeb !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}

/* ── Posts ── */
.post-wrapper {
  border: 1px solid #ebebeb !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  margin-bottom: 14px !important;
}

/* ── Panels ── */
.panel, .side-panel { background: #ffffff !important; border: 1px solid #ebebeb !important; border-radius: 12px !important; }

/* ── Newsfeed ── */
.newsfeed-wrapper { background: transparent !important; }

/* ── Mobile: padding for bottom nav ── */
@media (max-width: 767px) {
  body { padding-bottom: 70px !important; }
  /* hide the old Sngine bottom bar — we replace it */
  .footer-bottom-bar { display: none !important; }
}

/* ================================================================
   HC MOBILE BOTTOM NAV
   ================================================================ */
.hc-bottom-nav {
  display: none; /* shown only on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border-top: 1px solid #ebebeb;
  height: 62px;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  /* safe area for notched phones */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 767px) {
  .hc-bottom-nav { display: flex; }
}

.hc-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  cursor: pointer;
  text-decoration: none;
  color: #888;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 0;
  border: none;
  background: transparent;
  transition: color .15s;
  position: relative;
}
.hc-bn-item:hover,
.hc-bn-item.active { color: #1a1a1a; }
.hc-bn-item svg { width: 22px; height: 22px; stroke-width: 1.8; }
.hc-bn-item.active svg { stroke-width: 2.5; }

/* Badge on nav icons */
.hc-bn-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  background: #e53e3e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Center CREATE button */
.hc-bn-create {
  flex: 1.2;
  position: relative;
  top: -10px;
}
.hc-bn-create-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: background .15s, transform .15s;
}
.hc-bn-create:hover .hc-bn-create-circle,
.hc-bn-create:active .hc-bn-create-circle {
  background: #333;
  transform: scale(1.06);
}
.hc-bn-create svg { width: 24px; height: 24px; stroke-width: 2.5; }
.hc-bn-create span { color: #1a1a1a; font-size: 10px; font-weight: 600; }

/* Create dropdown panel */
.hc-bn-create-panel {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: 16px;
  width: 280px;
  display: none;
  z-index: 1000;
  animation: hcBnIn .15s ease;
}
.hc-bn-create-panel.open { display: block; }
@keyframes hcBnIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hc-bn-create-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hc-bn-create-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  background: #f8f8f8;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background .12s;
}
.hc-bn-create-item:hover { background: #f0eeeb; color: #1a1a1a; }
.hc-bn-create-item svg { width: 22px; height: 22px; color: #1a1a1a; }

.hc-bn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
}
.hc-bn-overlay.open { display: block; }
