/* ==== NAV SHEET DROPDOWN (hover open like your screenshot) ==== */
.nav-sheet {
  position: relative;
}

/* The panel (the rounded sheet) */
.nav-sheet-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;                 /* aligns to the right edge of the nav item */
  min-width: 260px;

  padding: 14px 14px;
  border-radius: 18px;

  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);

  /* Animation state (closed) */
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;

  /* Use transform+opacity for smoothness */
  transition: opacity 180ms ease, transform 220ms ease;

  z-index: 9999;
}

/* Items inside */
.nav-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 10px 12px;
  border-radius: 14px;

  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-weight: 600;

  transition: background-color 160ms ease, transform 160ms ease;
}

.nav-sheet-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

/*.nav-sheet-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  opacity: 0.95;
}*/

/* Open on hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .nav-sheet:hover .nav-sheet-panel,
  .nav-sheet:focus-within .nav-sheet-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* Optional: caret styling */
.nav-sheet-caret {
  font-size: 0.9em;
  opacity: 0.8;
  margin-left: 6px;
}

/* Mobile behavior: make panel full-width dropdown under the nav */
@media (max-width: 991.98px) {
  .nav-sheet-panel {
    position: static;
    margin-top: 10px;
    right: auto;
    min-width: 0;
    width: 100%;

    /* start closed for JS toggle */
    max-height: 0;
    overflow: hidden;

    opacity: 0;
    transform: none;
    pointer-events: none;

    transition: max-height 260ms ease, opacity 200ms ease;
  }

  .nav-sheet.is-open .nav-sheet-panel {
    max-height: 420px; /* enough to show items */
    opacity: 1;
    pointer-events: auto;
  }
}

.nav-sheet-panel::before {
  content: "";
  position: absolute;
  top: -14px;        /* bridge height */
  left: 0;
  right: 0;
  height: 14px;
}
