/* ─── Premium Glassmorphism Floating Bottom Bar CSS ─── */

.floating-bottom-bar {
  position: fixed;
  bottom: -100px; /* Hidden by default, animated in via JS scroll trigger */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08), 
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
  max-width: 92%;
  width: auto;
}

.floating-bottom-bar.is-visible {
  bottom: 24px;
}

.floating-bottom-bar__container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.floating-bottom-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  color: #1a365d !important;
  text-decoration: none !important;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

/* Item separators */
.floating-bottom-bar__item + .floating-bottom-bar__item {
  position: relative;
}

.floating-bottom-bar__item + .floating-bottom-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background: rgba(26, 54, 93, 0.15);
}

/* Icons */
.floating-bottom-bar__icon {
  font-size: 17px;
  color: #1a365d;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover effects */
.floating-bottom-bar__item:hover {
  background: rgba(26, 54, 93, 0.05);
  color: #2563eb !important;
}

.floating-bottom-bar__item:hover .floating-bottom-bar__icon {
  transform: scale(1.15) translateY(-1px);
  color: #2563eb;
}

.floating-bottom-bar:hover {
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.12), 
    0 2px 6px rgba(0, 0, 0, 0.04);
}

/* RTL layout support */
html[dir="rtl"] .floating-bottom-bar__item + .floating-bottom-bar__item::before {
  left: auto;
  right: 0;
}

/* ─── Responsive Adjustments ─── */

/* Mobile view: fit in screen center and wrap/simplify spacing */
@media (max-width: 767.98px) {
  .floating-bottom-bar {
    border-radius: 20px;
    padding: 4px;
    width: 95%;
    max-width: 380px;
    bottom: -150px;
  }
  
  .floating-bottom-bar.is-visible {
    bottom: 16px;
  }

  .floating-bottom-bar__container {
    width: 100%;
    justify-content: space-around;
  }

  .floating-bottom-bar__item {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    font-size: 9px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-align: center;
  }

  .floating-bottom-bar__icon {
    font-size: 15px;
  }

  .floating-bottom-bar__item + .floating-bottom-bar__item::before {
    height: 30px;
  }
}

@media (max-width: 380px) {
  .floating-bottom-bar__item {
    font-size: 8px;
    gap: 2px;
  }
  
  .floating-bottom-bar__icon {
    font-size: 13px;
  }
}
