/* ==========================================================================
   MOBILE BOTTOM NAVIGATION DOCK (PLAY TOGETHER APP THEME)
   ========================================================================== */

/* Hide on desktop */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 800px) {
  /* Hide the old top 3-bars hamburger menu */
  .hamburger,
  .mobile-menu-wrapper {
    display: none !important;
  }

  /* Add bottom padding to body so content isn't covered by dock */
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Lift support float icons above the dock */
  .support-float {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Mobile Bottom Navigation Dock Container */
  .mobile-bottom-dock {
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    left: 12px;
    right: 12px;
    max-width: 460px;
    margin: 0 auto;
    height: 64px;
    background: #ffffff;
    border-radius: 34px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.16), 0 4px 16px rgba(15, 23, 42, 0.08);
    border: 1.5px solid rgba(224, 242, 254, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 1000;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  /* Standard Item */
  .mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    text-decoration: none;
    color: #0284c7;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.15s ease, color 0.15s ease;
    user-select: none;
    cursor: pointer;
    border-radius: 18px;
  }

  .mobile-dock-item:active {
    transform: scale(0.92);
  }

  .mobile-dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .mobile-dock-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: block;
  }

  .mobile-dock-label {
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-weight: 700;
  }

  /* Center Item (Trang Chủ Hero Capsule) */
  .mobile-dock-item--center {
    flex: 1.25;
    max-width: 105px;
    height: 52px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-radius: 26px;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    margin: 0 4px;
    padding: 0 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .mobile-dock-item--center:active {
    transform: scale(0.94);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  }

  .mobile-dock-item--center .mobile-dock-icon svg {
    stroke: #ffffff;
  }

  .mobile-dock-item--center .mobile-dock-label {
    color: #ffffff;
    font-weight: 800;
  }

  /* Active state for standard items */
  .mobile-dock-item.is-active:not(.mobile-dock-item--center) {
    color: #0369a1;
  }

  .mobile-dock-item.is-active:not(.mobile-dock-item--center) .mobile-dock-icon {
    transform: translateY(-1px);
  }

  .mobile-dock-item.is-active:not(.mobile-dock-item--center) .mobile-dock-label {
    font-weight: 800;
    color: #0284c7;
  }

  /* Active state for center item */
  .mobile-dock-item--center.is-active {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.55);
  }
}
