/**
 * Mobile Bottom Navigation Bar
 * Fixed bottom navigation for mobile devices (< 768px)
 */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  display: none; /* Hidden by default, shown on mobile */
  justify-content: space-around;
  align-items: center;
  z-index: var(--z-fixed);
  box-shadow: 0 -2px 10px var(--shadow);
  padding: 0 var(--spacing-sm);
  overflow: active;
}

.mobile-bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  transition: all var(--transition-fast);
  min-width: 44px; /* Accessibility: minimum touch target */
  min-height: 44px;
  position: relative;
  padding: var(--spacing-xs);
}

.mobile-bottom-nav .nav-item i {
  font-size: 22px;
  margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item span {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
}

.mobile-bottom-nav .nav-item.active {
  color: var(--primary-color);
}

.mobile-bottom-nav .nav-item.active i {
  transform: scale(1.1);
}
.mobile-bottom-nav .nav-item.disabled i {
  transform: scale(0.8);
  opacity: 25%;
}
/* Badge for notifications and matches */
.mobile-bottom-nav .nav-item .badge {
  position: absolute;
  top: 4px;
  right: 50%;
  transform: translateX(10px);
  background: var(--danger-color);
  color: white;
  border-radius: 10px;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  min-width: 16px;
  text-align: center;
}

/* Show on mobile */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  /* Add bottom padding to main content to prevent overlap */
  body {
    padding-bottom: 70px;
  }

  /* Hide desktop navigation */
  .navbar .desktop-menu {
    display: none !important;
  }
}

/* Tablet adjustments */
@media (min-width: 576px) and (max-width: 768px) {
  .mobile-bottom-nav .nav-item span {
    font-size: 11px;
  }

  .mobile-bottom-nav .nav-item i {
    font-size: 24px;
  }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
  .mobile-bottom-nav .nav-item:active {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
  }
}

/* Top bar restructure for mobile */
.mobile-top-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
    height: var(--navbar-height);
  }

  .mobile-top-bar .logo {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
  }

  .mobile-top-bar .actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
  }

  .mobile-top-bar .action-icon {
    position: relative;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--transition-fast);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-top-bar .action-icon:hover {
    color: var(--primary-color);
  }

  .mobile-top-bar .action-icon .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    min-width: 16px;
    text-align: center;
  }

  .mobile-top-bar .profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
  }

  .mobile-top-bar .hamburger-menu {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
