/* Menu System - Controls content boundary and positioning */

/* CSS Custom Property for content boundary - controlled by menu system */
:root {
  --menu-content-boundary: 180px; /* Default mobile boundary */
}



/* Menu header container */
.menu-header {
  position: fixed;
  text-align: center;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--menu-black);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--header-height);
  font-size: 22px;
  padding: 8px 16px;
  margin: 0;
  gap: 12px;
  width: 100%;
}

/* Standardized menu item sizing */
.menu-option,
.selected-header {
  margin: 0;
  text-align: center;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu option styling */
.menu-option {
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
  position: relative;
}

/* Selected header styling */
.selected-header {
  color: var(--yellow);
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.menu-option:hover {
  background-color: var(--yellow-hover);
}

.menu-option a {
  color: var(--light-gray);
  text-decoration: none;
}

.menu-option a:hover {
  color: var(--yellow);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  margin: 0;
}

.dropdown-toggle {
  color: var(--light-gray);
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

.dropdown-toggle:hover {
  color: var(--yellow);
  text-decoration: none !important;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--content-black);
  border: 1px solid var(--dark-gray);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 150px;
  box-shadow: 0 4px 20px var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Dropdown menu item sizing */
.dropdown-menu a,
.dropdown-menu .selected-header {
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

/* Submenu item styling */
.submenu-item {
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

/* Dropdown menu link styling */
.dropdown-menu a {
  color: var(--light-gray);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: var(--yellow-hover);
  color: var(--yellow);
}

/* Dropdown selected header */
.dropdown-menu .selected-header {
  color: var(--yellow);
  font-weight: bold;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

/* Disabled styling */
.disabled {
  color: var(--light-gray);
  opacity: 0.6;
  cursor: not-allowed;
  user-select: none;
  pointer-events: none;
}

/* Header logo */
.headerlogo {
  position: fixed;
  width: 100px;
  height: 100px;
  display: none;
  top: 0px;
  left: 0px;
  z-index: 150;
}

/* Responsive breakpoints - Menu controls content boundary */
@media screen and (max-width: 1049px) {
  :root { 
    --header-height: 253px; /* Stacked mobile menu height */
    --menu-content-boundary: 253px; /* Menu height + 40px buffer for more breathing room */
  }
}

@media screen and (min-width: 1050px) {
  :root { 
    --header-height: 92px;
    --menu-content-boundary: 92px; /* Respect actual menu height */
  }
  
  .menu-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    font-size: 24px;
  }
  
  .dropdown-menu a,
  .dropdown-menu .selected-header {
    font-size: 18px;
  }
}

@media screen and (min-width: 1200px) {
  :root { 
    --header-height: 100px;
    --menu-content-boundary: 100px; /* Respect actual menu height */
  }
  
  .menu-header {
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    font-size: 26px;
  }
  
  .headerlogo {
    display: block;
  }
  
  .dropdown-menu a,
  .dropdown-menu .selected-header {
    font-size: 20px;
  }
} 