/* Sellers Page Enhancements */

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

/* Loading Skeleton */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.skeleton-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.skeleton-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  margin: 0 auto 20px;
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-text.title {
  height: 20px;
  width: 70%;
  margin: 0 auto 16px;
}

.skeleton-text.short {
  width: 50%;
  margin: 0 auto 12px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  display: none;
}

.empty-state.active {
  display: block;
}

.empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #2563eb;
}

.empty-state h3 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 30px;
}

.empty-state .btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.empty-state .btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Mobile Filter Enhancements */
.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  z-index: 999;
  gap: 8px;
  align-items: center;
}

.mobile-filter-btn .filter-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.filter-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: white;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
  padding: 20px;
}

.filter-sidebar.active {
  left: 0;
}

.filter-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.filter-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.filter-sidebar-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.close-sidebar {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  transition: all 0.3s ease;
}

.close-sidebar:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Enhanced Seller Card Animations */
.seller-card {
  position: relative;
  overflow: hidden;
}

.seller-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.seller-card:hover::after {
  left: 100%;
}

.seller-card:hover .seller-avatar img {
  transform: scale(1.1) rotate(5deg);
}

.seller-card:hover .verified-badge {
  transform: scale(1.2);
  animation: badge-pulse 0.5s ease;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.4);
  }
}

/* Badge Color Variations */
.seller-badge.premium {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.seller-badge.top-rated {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.seller-badge.new {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Search Highlight */
.highlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* Stats Animation */
.stat-value {
  display: inline-block;
  transition: all 0.3s ease;
}

.seller-card:hover .stat-value {
  transform: scale(1.1);
  color: #2563eb;
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  transform: translateY(50px);
  transition: transform 0.3s ease;
}

.contact-modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.close-modal {
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 20px;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-send {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-filter-btn {
    display: flex;
  }
  
  /* Show filters on small screens; stack vertically */
  .search-filter-wrapper {
    display: block !important;
  }
  
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
  
  .scroll-to-top {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 1200px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
