/* Mobile Menu Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.mobile-menu-container {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: var(--bg-primary);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu-title {
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--bg-secondary);
  border-color: var(--brand-primary);
}

.mobile-menu-nav {
  flex: 1;
  padding: var(--space-lg);
}

.mobile-menu-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  margin-bottom: var(--space-sm);
}

.mobile-menu-link:hover {
  background: var(--bg-secondary);
  color: var(--brand-primary);
  transform: translateX(4px);
}

.mobile-menu-link.active {
  background: var(--brand-primary);
  color: white;
}

.mobile-menu-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.mobile-menu-controls {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.mobile-lang-toggle,
.mobile-theme-toggle {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.mobile-lang-toggle:hover,
.mobile-theme-toggle:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.mobile-lang-toggle .lang-current,
.mobile-lang-toggle .lang-switch {
  font-weight: 600;
}

.mobile-lang-toggle .lang-separator {
  opacity: 0.5;
  margin: 0 2px;
}

.mobile-theme-toggle svg {
  width: 20px;
  height: 20px;
}

[data-theme="light"] .mobile-theme-toggle .moon-icon,
[data-theme="dark"] .mobile-theme-toggle .sun-icon {
  display: none;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-menu-overlay.active .mobile-menu-link {
  animation: slideIn 0.3s ease forwards;
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(5) { animation-delay: 0.3s; }

/* Dark theme adjustments */
[data-theme="dark"] .mobile-menu-container {
  background: var(--bg-primary);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .mobile-menu-close:hover,
[data-theme="dark"] .mobile-menu-link:hover,
[data-theme="dark"] .mobile-lang-toggle,
[data-theme="dark"] .mobile-theme-toggle {
  background: var(--bg-secondary);
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .mobile-menu-overlay {
    display: none;
  }
}