/* mobile-menu.css - استایل‌های منوی موبایل */

/* منوی همبرگری موبایل */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle .btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-menu-toggle .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* منوی موبایل overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  direction: rtl;
}

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

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.mobile-menu-header .btn-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-menu-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.mobile-menu-body {
  padding: 1rem;
}

.mobile-menu-section {
  margin-bottom: 2rem;
}

.mobile-menu-section:last-child {
  margin-bottom: 0;
}

.mobile-menu-section h6 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
}

.mobile-menu-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding-right: 0.5rem;
  border-radius: 8px;
  transform: translateX(-5px);
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item i {
  width: 24px;
  margin-left: 0.75rem;
  font-size: 1.1rem;
  text-align: center;
}

.mobile-menu-item span {
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
}

/* انیمیشن‌های ورود و خروج */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

.mobile-menu-content.slide-in {
  animation: slideInRight 0.3s ease forwards;
}

.mobile-menu-content.slide-out {
  animation: slideOutRight 0.3s ease forwards;
}

/* تنظیمات ریسپانسیو */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .mobile-menu-content {
    width: 280px;
  }

  .mobile-menu-header {
    padding: 1rem 0.75rem 0.75rem;
  }

  .mobile-menu-body {
    padding: 0.75rem;
  }

  .mobile-menu-item {
    padding: 0.6rem 0;
  }

  .mobile-menu-item i {
    font-size: 1rem;
    width: 20px;
  }

  .mobile-menu-item span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .mobile-menu-content {
    width: 260px;
  }

  .mobile-menu-header h5 {
    font-size: 1rem;
  }

  .mobile-menu-section h6 {
    font-size: 0.8rem;
  }
}

/* اسکرول بار سفارشی */
.mobile-menu-content::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}