/* ============================================
   bottom-nav.css
   Нижняя панель навигации (≤440px)
   ============================================ */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  
  background: #F4F6F7;
  padding: 0 20px;
  
  flex-direction: row;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  
  box-shadow: 4px 4px 50px 0px rgba(38, 68, 92, 0.2);
  
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Элемент панели — одинаковый фон для всех по умолчанию */
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 16px;
  padding: 4px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  
  /* Фон по умолчанию — прозрачный (как у родителя #F4F6F7) */
  background: transparent;
  box-shadow: none;
}

.bottom-nav-item:hover {
  background: #E3E7EA;
}

/* Активный элемент — белый фон + тень */
.bottom-nav-item.active {
  background: #FCFCFC;
  box-shadow: 4px 4px 50px 0px rgba(38, 68, 92, 0.2);
}

/* Иконка */
.bottom-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Подпись */
.bottom-nav-label {
  color: #1C1F26;
  text-align: center;
  font-family: 'OpenRunde-Regular', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  line-height: 150%;
  letter-spacing: -0.011em;
  font-weight: 400;
}

/* Бейдж (красный кружок с цифрой) */
.bottom-nav-badge {
  display: none; /* По умолчанию скрыт */
  position: absolute;
  top: -4px;
  left: 53px;
  width: 20px;
  height: 20px;
  background: #B50042;
  border-radius: 50%;
  
  align-items: center;
  justify-content: center;
  
  color: #FFFFFF;
  font-family: 'OpenRunde-Medium', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: -0.011em;
  font-weight: 500;
}

/* Когда бейдж активен — показываем */
.bottom-nav-badge.visible {
  display: flex;
}

/* ===== ПОКАЗЫВАЕМ ТОЛЬКО НА ВЕРТИКАЛЬНОМ МОБИЛЬНОМ (≤440px) ===== */
@media (max-width: 440px) {
  .bottom-nav {
    display: flex;
  }
  
  .main-content-wrapper {
    padding-bottom: 70px;
  }
  
  .footer {
    padding-bottom: 80px;
  }
}