/**
 * Shared Menu Styles for St. Bernadette CYO Tree Sales
 *
 * This file contains all CSS styles for the navigation menu.
 * Include this file in your HTML to get consistent menu styling.
 */

/* Menu Button (Christmas Tree Icon) */
.menu-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
}

/* Hide menu button when not authenticated */
.menu-button.hidden {
  display: none !important;
}

.menu-button:hover {
  transform: scale(1.05);
}

.menu-button:active {
  transform: scale(0.95);
}

.menu-button:hover svg path:first-child {
  fill: #66bb6a;
}

/* Menu Panel (Dropdown) with Glass Effect */
.menu-panel {
  position: fixed;
  top: 86px;
  right: 20px;
  
  /* Enhanced Glass panel effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-left-color: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35),
              0 8px 32px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  
  min-width: 200px;
  max-width: 300px;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 199;
  overflow: hidden;
}

.menu-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.menu-panel li {
  margin: 0;
}

/* Hide role-based links by default */
.menu-panel li.role-based-link {
  display: none !important;
}

/* Show role-based links when explicitly shown */
.menu-panel li.role-based-link.show {
  display: block !important;
}

.menu-panel a {
  display: block;
  padding: 12px 20px;
  color: #32325d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.menu-panel a:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: #6772e5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .menu-button {
    top: 15px;
    right: 15px;
  }

  .menu-panel {
    top: 81px;
    right: 15px;
    max-width: calc(100vw - 30px);
  }
}
