/* ANCHOR: mobile_menu_styles */
/* FSD: shared/ui/navigation/components → Mobile burger menu styles */
/* REUSED: Consistent design tokens from variables.css */
/* SCALED FOR: Touch-friendly mobile interactions */
/* UPDATED COMMENTS: Fullscreen overlay menu with smooth animations */

/* CRITICAL: Import button styles for ActionButtons component */
@import url('../../button/button.css');

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

.mobile-menu-overlay {
  /* CRITICAL: Fullscreen backdrop */
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100001;
  
  /* CRITICAL: Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================
   MOBILE MENU CONTAINER
   ============================================ */

.mobile-menu {
  /* CRITICAL: Fullscreen fixed panel */
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: #1A1A1A;
  z-index: 100002;

  /* Fade-only appearance */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;

  /* SCALED FOR: Scrollable content */
  overflow-y: auto;
  overflow-x: hidden;
  
  /* CRITICAL: Hide scrollbars (avoid tint bar on iOS) */
  scrollbar-width: none;
}

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

/* ============================================
   MENU CONTENT
   ============================================ */

.mobile-menu__content {
  /* CRITICAL: Content wrapper with padding */
  padding: 100px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CRITICAL: Staggered animation for menu items */
/* Menu items appear instantly with the panel */

/* ============================================
   MENU DIVIDER
   ============================================ */

.mobile-menu__divider {
  /* CRITICAL: Visual separator between navigation and action buttons */
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

/* ============================================
   ACTIVE STATE
   ============================================ */

.mobile-menu__item--active {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

/* CRITICAL: Make desktop buttons full width in mobile menu */
/* UPDATED COMMENTS: Keep ALL desktop styles, only change width */
.mobile-menu__content .nav-button {
  width: 100% !important;
  min-width: 100% !important;
}

.mobile-menu__content .nav-button--icon {
  width: 100% !important;
}

.mobile-menu__content .nav-button--cv,
.mobile-menu__content .nav-button--share {
  width: 100% !important;
  min-width: 100% !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 375px) {
  .mobile-menu__content {
    padding: 80px 20px 40px;
  }
}
