/* ============================================
   التجاوب + قائمة الهمبرغر
   ============================================ */

/* زر الهمبرغر */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* قائمة الموبايل */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 30px rgba(0,0,0,0.12);
  z-index: 1000;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-menu ul li a,
.mobile-menu ul li button {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: 8px;
  text-align: right;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li button:hover {
  background: var(--light);
  color: var(--primary);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.show {
  display: block;
  opacity: 1;
}

/* ========== Media Queries ========== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .auctions-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .section-title {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input {
    width: 100%;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-row select {
    width: 100%;
  }

  .listing-detail {
    grid-template-columns: 1fr !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .auth-card {
    padding: 1.8rem 1.3rem;
  }

  .categories {
    gap: 0.6rem;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .logo {
    font-size: 1.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
