/* ProFinder Bottom Nav Bar - mobile app-style navigation */

.pfbn-bottom-nav {
  display: none; /* hidden on desktop by default, shown via media query below */
}

@media (max-width: 767px) {
  .pfbn-bottom-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    padding: 8px 4px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); /* iPhone home-indicator clearance */
  }

  /* push page content up so the fixed bar never covers the footer/last elements */
  body {
    padding-bottom: 64px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .pfbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #8a8a8a;
    font-size: 10px;
    line-height: 1.2;
    padding: 4px 2px;
  }
  .pfbn-item i {
    font-size: 18px;
    margin-bottom: 2px;
  }
  .pfbn-item.pfbn-active {
    color: #1e3d2f; /* matches the dark green accent used in the reference screenshot */
    font-weight: 600;
  }

  /* center "+" button: elevated, circular, brand color */
  .pfbn-center-item {
    position: relative;
    top: -18px;
  }
  .pfbn-center-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1e3d2f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(30, 61, 47, 0.35);
    border: 4px solid #fff;
  }
  .pfbn-center-btn i {
    font-size: 20px;
    margin: 0;
  }

  /* unread messages badge */
  .pfbn-icon-wrap {
    position: relative;
    display: inline-block;
  }
  .pfbn-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #d50a08;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
  }
}
