
/** navbar-fix.css - Bottom Navigation Fix **/

#navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background-color: white;
  box-shadow: 0 0 10px #ddd;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: bottom 0.3s ease-in-out;
}

@media (prefers-color-scheme: dark) {
  #navbar {
    background-color: #1a1a1a;
    box-shadow: 0 0 10px #000;
  }
}

#navbar.nav-hidden {
  bottom: -100px;
}

#navbar ul {
  display: flex;
  max-width: 900px;
  justify-content: center;
  padding: 10px 0;
  list-style: none;
  margin: 0 auto;
  width: 100%;
}

#navbar li {
  flex: 1;
  text-align: center;
}

#navbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #28a745;
  font-size: 12px;
  padding: 8px;
  transition: color 0.2s;
}

#navbar a.active {
  color: #28a745;
  font-weight: 500;
  border-radius: 50px;
}

#navbar a i {
  font-size: 14px;
  margin-bottom: 5px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  padding: 10px;
  height: 35px;
  width: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.icon-badge-wrapper {
  position: relative;
  display: inline-block;
}

.icon-with-badge {
  position: relative;
  display: inline-block;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  text-align: center;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

#messages-badge {
  margin-right: 18px;
}

/* Mobile: Show centered bottom nav */
@media (max-width: 899px) {
  #navbar {
    display: flex;
  }
}

/* Desktop: Move nav to top right */
@media (min-width: 900px) {
  #navbar {
    top: -4px;
    bottom: auto;
    left: auto;
    right: 0px;
    transform: none;
    max-width: 400px;
    background-color: transparent;
    box-shadow: none;
  }

  #navbar.nav-hidden {
    bottom: auto;
    transform: none;
  }

  #navbar a span:not(.notification-badge):not(.icon-with-badge) {
    display: none;
  }
}
/** action-buttons-fix.css - Sell & Request Buttons Fix **/

/* PREMIUM ACTION BUTTONS - MOBILE ONLY */
.premium-action-bar {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border-bottom: 0.1px #ddd solid;
  position: sticky;
  top: 60px;
  z-index: 99;
}

.premium-action-bar.mobile-only {
  display: flex;
}

.action-btn-link {
  flex: 1;
  text-decoration: none;
}

.premium-input-btn {
  width: 100%;
  padding: 9px 14px;
  background: #fff;
  color: #28a745;
  border: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
}

.premium-input-btn i {
  font-size: 14px;
}

.primary-action {
  background: #fff;
  color: #28a745;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.primary-action:active {
  transform: translateY(0);
}

.secondary-action {
  background: white;
  color: #28a745;
  border: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
}

.secondary-action:hover {
  background: #28a745;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
}

.secondary-action:active {
  transform: translateY(0);
}

/* CATEGORY FILTER POSITIONING */
.category-filter-wrapper {
  background: white;
  padding: 9px 0;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  z-index: 98;
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  padding: 9px 16px;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.category-btn:hover {
  background: #e9ecef;
  border-color: #28a745;
  color: #28a745;
}

.category-btn.active {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
  border-color: #28a745;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-btn i {
  font-size: 14px;
}

/* MOBILE: Show action buttons, position category filter below them */
@media (max-width: 767px) {
  .premium-action-bar {
    display: flex !important;
  }
  
  .category-filter-wrapper {
    top: 120px; /* 60px header + 60px action buttons */
  }
}

/* TABLET & DESKTOP: Hide action buttons on mobile bar, show in right sidebar */
@media (min-width: 768px) {
  .premium-action-bar.mobile-only {
    display: none !important;
  }
  
  .category-filter-wrapper {
    top: 60px; /* Only below header */
  }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
  #navbar a {
    color: #00B761;
  }

  #navbar a i {
    background: #2a2a2a;
    border-color: #2a2a2a;
    box-shadow: 0 0 10px #000;
  }

  #navbar a.active {
    color: #00B761;
  }

  .premium-input-btn {
    background: #2a2a2a;
    color: #00B761;
    border-color: #2a2a2a;
    box-shadow: 0 0 10px #000;
  }

  .primary-action:hover {
    box-shadow: 0 8px 20px rgba(0, 183, 97, 0.3);
  }

  .secondary-action {
    background: #2a2a2a;
    color: #00B761;
    border-color: #2a2a2a;
    box-shadow: 0 0 10px #000;
  }

  .secondary-action:hover {
    background: #00B761;
    color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(0, 183, 97, 0.2);
  }

  .category-filter-wrapper {
    background: #1a1a1a;
    border-bottom-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .category-btn {
    background: #2a2a2a;
    border-color: #333;
    color: #999;
  }

  .category-btn:hover {
    background: #333;
    border-color: #00B761;
    color: #00B761;
  }

  .category-btn.active {
    background: linear-gradient(135deg, #00B761 0%, #009746 100%);
    color: #1a1a1a;
    border-color: #00B761;
  }
}
