/* ===============================
   HAMBURGER BUTTON — zgoraj desno
=============================== */
#hamburger-btn {
  position: fixed;
  top: 5px;              /* bolj mobilno-friendly */
  right: 5px;
  width: 20px;            /* večji tap target za mob. */
  height: 20px;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px;
  background: rgba(7, 51, 78, 0.88);
  border-radius: 9px;
  backdrop-filter: blur(3px);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Hover efekt (desktop) */
@media (hover: hover) {
  #hamburger-btn:hover {
    background: rgba(7, 51, 78, 1);
    transform: scale(1.06);
  }
}

#hamburger-btn span {
  display: block;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: 0.35s ease;
}

/* Animacija v X */
#hamburger-btn.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}
#hamburger-btn.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ===============================
   SIDEBAR — animacija + desna stran
=============================== */
#sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 420px;
  height: 100vh;
  background: rgba(22, 33, 43, 0.98);
  padding-top: 90px;
  overflow-y: auto;
  
  /* mehka animacija (slide + fade) */
  opacity: 0;
  transition:
    right 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.35s ease-out;
  z-index: 10001;
  box-shadow: -8px 0 20px rgba(0,0,0,0.45);
}

#sidebar.active {
  right: 0;
  opacity: 1;
}

/* ===============================
   MENU ITEMS — boljši spacing
=============================== */
#menu-list li a {
  display: block;
  padding: 18px 28px;
  font-size: 18px;
  text-decoration: none;
  color: #e6e6e6;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.25s ease, padding-left 0.25s ease;
}

#menu-list li a:hover {
  background: rgba(255,255,255,0.12);
  padding-left: 36px;
}

/* ===============================
   OVERLAY — fade animacija
=============================== */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}
#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   MOBILE — še boljši UX
=============================== */
@media (max-width: 480px) {
  #hamburger-btn {
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    padding: 7px;
  }

  #sidebar {
    width: 88%; /* malo širši za mobilne */
    padding-top: 75px;
  }

  #menu-list li a {
    font-size: 17px;
    padding: 18px 24px;
  }
}

/* ===============================
   DESKTOP — ožji meni
=============================== */
@media (min-width: 900px) {
  #sidebar {
    width: 320px;
  }
}
