
#nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 56px;
  background: #282828;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
}

#nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

#nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 18px;
  color: #ff8c00;
  -webkit-text-stroke: 1px #ff8c00;
}

#nav-logo .love { color: #e00; -webkit-text-stroke: 1px #ff8c00; }
#nav-logo .heart { color: #e00; font-size: 16px; }

#nav-links {
  display: flex;
  gap: 48px;
  font-family: "Lobster", cursive;
  font-size: 20px;
  font-weight: 700;
  margin-top: -3px;
}

#nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
}

#nav-links a:first-child {
  color: #fff;
  opacity: 1;
}

#nav-links a:not(:first-child) {
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  opacity: 0.4;
}

#nav-return-btn {
  font-family: "Rubik", sans-serif;
  background: #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #555;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

#nav-return-btn:hover { background: #444; }

/* --- Hamburger controls (desktop hidden) --- */
#nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#nav-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #555;
  border-radius: 8px;
  background: #333;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

#nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- Mobile nav --- */
@media (max-width: 900px) {
  #nav-bar {
    padding: 0 12px;
    align-items: center;
  }

  #nav-left {
    gap: 12px;
    min-width: 0;
  }

  #nav-return-btn {
    display: none;
  }

  #nav-hamburger {
    display: inline-flex;
    margin-left: auto;
  }

  #nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #1f1f1f;
    border-top: 1px solid #3a3a3a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  #nav-links a {
    font-size: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #333;
    -webkit-text-stroke: 0 !important;
    color: #fff !important;
    opacity: 1 !important;
  }

  /* Open state via checkbox */
  #nav-toggle:checked ~ #nav-left #nav-links {
    max-height: 260px;
    opacity: 1;
  }

  /* Animate hamburger to X */
  #nav-toggle:checked ~ #nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  #nav-toggle:checked ~ #nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked ~ #nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}