/* ═══════════════════════════════════════════════════════════
   KYNK - BOTTOM NAVIGATION BAR
   Instagram-style fixed bottom navbar with 5 tabs
   ═══════════════════════════════════════════════════════════ */

.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background-color: var(--header-bg);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px var(--shadow-color);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.navbar-container {
  max-width: 600px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--spacing-sm);
}

/* ═══ NAVIGATION ITEMS ═══ */
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--oxblood);
}

/* ═══ ICONS ═══ */
.nav-icon {
  font-size: 24px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
}

/* ═══ LABELS ═══ */
.nav-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: capitalize;
  transition: all var(--transition-fast);
}

.nav-item.active .nav-label {
  font-weight: var(--font-weight-bold);
}

/* ═══ NOTIFICATION BADGE ═══ */
.nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(12px);
  background-color: var(--oxblood);
  color: white;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--header-bg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateX(12px) scale(1);
  }
  50% {
    transform: translateX(12px) scale(1.1);
  }
}

/* ═══ CREATE BUTTON (CENTER) ═══ */
.nav-item.create-btn {
  position: relative;
}

.nav-item.create-btn .nav-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--oxblood) 0%, var(--oxblood-dark) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  margin-top: -30px;
  border: 4px solid var(--header-bg);
}

.nav-item.create-btn:hover .nav-icon {
  transform: scale(1.1) rotate(90deg);
  box-shadow: var(--shadow-xl);
}

.nav-item.create-btn .nav-label {
  display: none;
}

/* ═══ ACTIVE INDICATOR LINE ═══ */
.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--oxblood), transparent);
  transition: width var(--transition-base);
}

.nav-item.active::before {
  width: 80%;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
  .nav-label {
    font-size: 10px;
  }

  .nav-icon {
    font-size: 20px;
  }

  .nav-item.create-btn .nav-icon {
    width: 45px;
    height: 45px;
    font-size: 24px;
    margin-top: -25px;
  }
}

@media (min-width: 768px) {
  .navbar-container {
    max-width: 100%;
    padding: 0 var(--spacing-xl);
  }
}

/* ═══ DARK MODE ADJUSTMENTS ═══ */
body.dark-mode .nav-item.create-btn .nav-icon {
  border-color: var(--dark-header);
}

body.dark-mode .nav-badge {
  border-color: var(--dark-header);
}