/* Mobile Navigation Components - The People Booking Platform */

/* Mobile Navigation Menu */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  border-left: 1px solid var(--color-border);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: transform var(--transition-slow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  pointer-events: none;
  isolation: isolate;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Mobile menu backdrop overlay */
.mobile-nav-menu::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.mobile-nav-menu.nav-open::before {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure mobile menu is always on top when open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Force mobile menu to be on top */
html, body {
  position: relative;
}

.mobile-nav-menu.nav-open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  background: #ffffff;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.2);
}

.mobile-nav-content {
  padding: 20px;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.mobile-nav-section h3 {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-links li {
  margin: 0;
  padding: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.mobile-nav-links a:hover {
  background: #f8fafc;
  border-color: var(--color-border);
  transform: translateX(4px);
}

.mobile-nav-links a.active {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #3b82f6;
}

/* Mobile Admin Link Styling */
.mobile-nav-links .admin-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.mobile-nav-links .admin-link:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 12px;
}

.mobile-profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.mobile-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-profile-initials {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 600;
}

.mobile-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.mobile-user-type {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.mobile-notification-badge {
  background: #ef4444;
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-btn {
  width: 100%;
  justify-content: center;
  padding: 12px var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.mobile-logout {
  color: #ef4444 !important;
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.mobile-logout:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}
