/* ===== ANIMACJE ===== */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0.4; }
}

@keyframes textPulse {
  0%, 100% { text-shadow: 0 0 4px #00ff80, 0 0 10px #00ff80; }
  50% { text-shadow: 0 0 8px #aaff00, 0 0 16px #aaff00; }
}

/* 🚀 Glow: pulsuje brightness (nie opacity – zero kolizji z transition) */
@keyframes gradientGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}
.tutbtn{display:none;}
/* ===== KONTAINER ===== */
.bottom-bar-wrapper {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 999;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===== PASEK (domyślnie poziomy) ===== */
.bottom-bar {
  display: flex;
  gap: 50px;
  justify-content:center;
  padding: 12px 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}
.bottom-bar::-webkit-scrollbar { display: none; }

/* ===== ELEMENTY ===== */
.nav-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #00ff80;
  text-decoration: none;
  font-size: 0.7rem;
  animation: flicker 3s infinite;
  transition: transform 0.2s;
  cursor: pointer;
}

.nav-item svg {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  fill: currentColor;
  transition: transform 0.3s, filter 0.3s;
}

.nav-item span {
  animation: textPulse 2.5s infinite;
}

.nav-item.active,
.nav-item:hover {
  color: #aaff00;
  transform: scale(1.1);
}

.nav-item.active svg,
.nav-item:hover svg {
  filter: drop-shadow(0 0 6px #aaff00);
}
.icon-wrapper {
  position: relative;
  display: inline-block;
}

/* Styl licznika (badge) */
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: red;
  color: white;
  font-size: 7px;
  font-weight: bold;
  padding: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== GRADIENTY POZIOME (portrait / desktop) ===== */
.bottom-bar-wrapper::before,
.bottom-bar-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 1000; /* 🚀 Wyższy, na wypadek nakładania */
  opacity: 0;
  transition: opacity 0.8s ease-in-out; /* 🚀 Fade-in z 0→1 */
  will-change: opacity;
  transform: translateZ(0); /* 🚀 GPU */
  background-size: 100% 100%; /* 🚀 Bez slide, prostsze */
}

.bottom-bar-wrapper.show-left::before {
  opacity: 1; /* 🚀 Jawnie – trigger dla transition! */
  animation: gradientGlow 2s ease-in-out infinite; /* Puls po fade */
}

.bottom-bar-wrapper.show-right::after {
  opacity: 1; /* 🚀 Jawnie */
  animation: gradientGlow 2s ease-in-out infinite;
}

.bottom-bar-wrapper::before { 
  left: 0; 
  background: linear-gradient(to right, rgba(0,255,128,0.3), rgba(0,0,0,0)); 
}
.bottom-bar-wrapper::after { 
  right: 0; 
  background: linear-gradient(to left, rgba(0,255,128,0.3), rgba(0,0,0,0)); 
}

/* ===== MOBILE PORTRAIT ===== */
@media (max-width: 600px) {
  .bottom-bar-wrapper { position: fixed; background: rgba(0,0,0,0.95); }
  .bottom-bar {
	justify-content:normal;
	gap: 30px;
  }
  .nav-item svg {
	  width: 18px;
	  height: 18px;
  }
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
	.tutbtn{display:flex;}
  .bottom-bar-wrapper {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    bottom: auto;
    top: 0;
    left: 0;
    width: 80px;
    height: 100dvh;
    overflow: hidden;
  }

  .bottom-bar {
    display: block;
    overflow-y: auto;
    height: 100%;
	gap: 30px;
  }

  .nav-item {
    padding: 20px 0;
    font-size: 0.6rem;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
  }

  .nav-item span {
    font-size: 8px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    max-width: 60px;
  }

  /* === GRADIENTY pionowe === */
  .bottom-bar-wrapper::before,
  .bottom-bar-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 70px;
    pointer-events: none;
    z-index: 1000; /* 🚀 Wyższy */
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* 🚀 Fade-in */
    will-change: opacity;
    transform: translateZ(0);
    animation: none;
    background-size: 100% 100%; /* 🚀 Prostsze */
  }

  /* GÓRA */
  .bottom-bar-wrapper::before {
    top: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 255, 128, 0.3),
      rgba(0, 0, 0, 0)
    );
  }

  /* DÓŁ */
  .bottom-bar-wrapper::after {
    bottom: 0;
    top: auto;
    background: linear-gradient(
      to top,
      rgba(0, 255, 128, 0.3),
      rgba(0, 0, 0, 0)
    );
  }

  /* Glow po fade – 🚀 z opacity:1 */
  .bottom-bar-wrapper.show-top::before {
    opacity: 1; /* 🚀 Jawnie – trigger transition! */
    animation: gradientGlow 2s ease-in-out infinite;
  }

  .bottom-bar-wrapper.show-bottom::after {
    opacity: 1; /* 🚀 Jawnie */
    animation: gradientGlow 2s ease-in-out infinite;
  }
}
@media (max-width: 1024px) {
	.bottom-bar {
		justify-content:normal;
	}
}