/**
 * MOBILE MENU OVERLAY STYLES
 * Full-screen overlay navigation for mobile devices
 * Integrated with existing design system
 */

/* Mobile Menu Container */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  display: flex;
  pointer-events: auto;
}

/* Backdrop */
.mobile-menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.mobile-menu-overlay.active .mobile-menu-backdrop {
  opacity: 1;
}

/* Menu Container */
.mobile-menu-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  z-index: 2;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu-container {
  transform: translateX(0);
}

/* Close Button */
.mobile-menu-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 0;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.close-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Menu Links Container */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6rem 1.5rem 2rem;
  width: 100%;
  list-style: none;
  margin: 0;
}

/* Individual Menu Links */
.mobile-menu-link {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 1.25rem 0;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  padding-left: 1rem;
  cursor: pointer;
  user-select: none;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: #d4af37;
  border-left-color: #8B0000;
  outline: none;
}

/* CTA Link Styling */
.mobile-menu-link.mobile-menu-cta {
  margin-top: 0.75rem;
  color: #d4af37;
  border-left-color: #8B0000;
  font-weight: 600;
}

.mobile-menu-link.mobile-menu-cta:hover,
.mobile-menu-link.mobile-menu-cta:focus {
  color: white;
  border-left-color: #d4af37;
}

/* Divider */
.mobile-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 0.5rem 0;
}

/* Desktop - Hide mobile menu */
@media (min-width: 768px) {
  .mobile-menu-overlay {
    display: none !important;
  }

  [data-mobile-menu-toggle] {
    display: none !important;
  }
}

/* Mobile Specific Adjustments */
@media (max-width: 767px) {
  .mobile-menu-overlay {
    display: none;
  }

  .mobile-menu-overlay.active {
    display: flex;
  }

  .mobile-menu-links {
    padding: 7rem 1.25rem 2rem;
  }

  .mobile-menu-link {
    font-size: 0.9rem;
    padding: 1rem 0;
    padding-left: 0.75rem;
  }

  .mobile-menu-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }

  .close-icon {
    width: 18px;
    height: 18px;
  }
}

/* Small phones (320px - 480px) */
@media (max-width: 480px) {
  .mobile-menu-links {
    padding: 6rem 1rem 2rem;
  }

  .mobile-menu-link {
    font-size: 0.85rem;
    padding: 0.9rem 0;
    letter-spacing: 0.05em;
  }

  .mobile-menu-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-container,
  .mobile-menu-backdrop,
  .mobile-menu-link {
    transition: none;
  }
}

/* Landscape mobile */
@media (max-height: 600px) and (max-width: 767px) {
  .mobile-menu-links {
    padding: 5rem 1.25rem 1rem;
  }

  .mobile-menu-link {
    padding: 0.75rem 0;
  }
}
