/**
 * Mobile Menu Styles
 */

/* Default desktop menu behavior */
.hamburger-menu {
  display: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-icon {
  width: 28px;
  height: 20px;
  position: relative;
  margin: 0;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #4CAF50;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2),
.hamburger-icon span:nth-child(3) {
  top: 9px;
}

.hamburger-icon span:nth-child(4) {
  top: 18px;
}

/* When menu is open */
.hamburger-icon.open span:nth-child(1),
.hamburger-icon.open span:nth-child(4) {
  top: 9px;
  width: 0%;
  left: 50%;
}

.hamburger-icon.open span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  text-align: center;
  width: 80%;
  max-width: 320px;
}

.mobile-menu-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.mobile-menu-content ul li {
  margin: 1.5rem 0;
}

.mobile-menu-content ul li a {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  width: 100%;
}

.mobile-menu-content ul li a:hover,
.mobile-menu-content ul li a:active {
  color: #4CAF50;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Make the Report Issue link stand out */
.mobile-menu-content ul li a[href="/report"] {
  background-color: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.mobile-menu-content ul li a[href="/report"]:hover {
  background-color: rgba(76, 175, 80, 0.3);
}

.mobile-menu-content ul li a i {
  margin-right: 10px;
}

.mobile-user-menu {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-user-name {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Media queries for mobile and tablet */
@media (max-width: 991px) {
  .hamburger-menu {
    display: block;
  }
  
  .main-nav, 
  .user-menu {
    display: none;
  }
  
  /* This needs to override the conflicting media query in improved-styles.css */
  .header-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    align-items: center !important;
  }
}

/* Also add the 768px media query to specifically override the conflicting one */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row !important;
    gap: 0 !important;
  }
  
  .logo {
    flex: 0 1 auto;
    max-width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .hamburger-menu {
    flex: 0 0 auto;
    margin-left: auto;
  }
  
  .d-flex.align-items-center.justify-content-between.w-100 {
    display: flex !important;
    width: 100% !important;
    flex-direction: row !important;
  }
}

/* Smaller font for the logo text on very small screens */
@media (max-width: 375px) {
  .logo .fs-4 {
    font-size: 1.2rem !important;
  }
  
  .header-content {
    padding: 0 !important;
  }
} 