/* POPUP NAVIGATION BUTTON FOR DESKTOP - Only visible when scrolled away from main nav */

/* Popup Navigation Button */
.popup-nav-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--primary-color, #e20074);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(226, 0, 116, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.popup-nav-button:hover {
  background: var(--primary-dark, #c4005f);
  transform: translateY(-20px) scale(1.1);
  box-shadow: 0 8px 30px rgba(226, 0, 116, 0.4);
}

.popup-nav-button.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Popup Navigation Menu */
.popup-nav-menu {
  position: fixed;
  top: 90px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.popup-nav-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.popup-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.popup-nav-menu li {
  margin: 0;
}

.popup-nav-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color, #717171);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.popup-nav-menu a:hover {
  background: rgba(226, 0, 116, 0.05);
  color: var(--primary-color, #e20074);
  border-left-color: var(--primary-color, #e20074);
}

.popup-nav-menu a.contact-button {
  background: var(--primary-color, #e20074);
  color: white;
  margin: 5px 10px;
  border-radius: 6px;
  text-align: center;
  border-left: 3px solid transparent;
}

.popup-nav-menu a.contact-button:hover {
  background: var(--primary-dark, #c4005f);
  transform: translateY(-1px);
}

/* Overlay for closing menu when clicking outside */
.popup-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile and tablet - hide popup nav (only show on desktop) */
@media (max-width: 960px) {
  .popup-nav-button,
  .popup-nav-menu,
  .popup-nav-overlay {
    display: none !important;
  }
}

/* Responsive adjustments for different desktop sizes */
@media (min-width: 961px) and (max-width: 1280px) {
  .popup-nav-button {
    width: 55px;
    height: 55px;
    font-size: 18px;
  }
  
  .popup-nav-menu {
    min-width: 200px;
  }
  
  .popup-nav-menu a {
    padding: 10px 18px;
    font-size: 15px;
  }
}

/* Large screens */
@media (min-width: 1281px) {
  .popup-nav-button {
    width: 65px;
    height: 65px;
    font-size: 22px;
  }
  
  .popup-nav-menu {
    min-width: 240px;
  }
  
  .popup-nav-menu a {
    padding: 14px 22px;
    font-size: 17px;
  }
}

/* Portrait orientation adjustments */
@media (min-width: 961px) and (orientation: portrait) {
  .popup-nav-button {
    top: 15px;
    right: 15px;
  }
  
  .popup-nav-menu {
    top: 80px;
    right: 15px;
  }
}

/* Landscape orientation adjustments */
@media (min-width: 961px) and (orientation: landscape) {
  .popup-nav-button {
    top: 20px;
    right: 20px;
  }
  
  .popup-nav-menu {
    top: 90px;
    right: 20px;
  }
}

/* Animation for menu items */
.popup-nav-menu.visible li {
  animation: slideInMenu 0.3s ease forwards;
}

.popup-nav-menu.visible li:nth-child(1) { animation-delay: 0.05s; }
.popup-nav-menu.visible li:nth-child(2) { animation-delay: 0.1s; }
.popup-nav-menu.visible li:nth-child(3) { animation-delay: 0.15s; }
.popup-nav-menu.visible li:nth-child(4) { animation-delay: 0.2s; }
.popup-nav-menu.visible li:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInMenu {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
} 