/* Professional Categories & Subcategories Design */

/* Section Header Enhanced */
.section-header-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.section-header-enhanced .header-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px 0;
}

.section-header-enhanced .header-content h3 i {
  color: #2563eb;
  font-size: 22px;
}

.section-header-enhanced .header-content p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.btn-view-all-categories {
  padding: 10px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-view-all-categories:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Professional Categories Grid */
.categories-professional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Category Card Pro */
.category-card-pro {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.category-card-pro:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.category-card-pro:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.category-card-pro.active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.category-card-pro.featured {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

/* Card Header */
.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.category-icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #2563eb;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.category-card-pro:hover .category-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.category-card-pro.featured .category-icon-wrapper {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #f59e0b;
}

.badge-featured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Card Body */
.category-card-body {
  flex: 1;
}

.category-card-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
}

.category-card-pro:hover .category-card-body h4 {
  color: #2563eb;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ads-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 6px 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.ads-count i {
  font-size: 12px;
  color: #94a3b8;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.active i {
  font-size: 8px;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Card Footer */
.category-card-footer {
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.view-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  transition: all 0.3s ease;
}

.category-card-pro:hover .view-link {
  gap: 8px;
}

.view-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.category-card-pro:hover .view-link i {
  transform: translateX(-4px);
}

/* More Categories Chips */
.more-categories-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-chip:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.category-chip.active {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.category-chip i {
  font-size: 16px;
}

.chip-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.category-chip:hover .chip-badge,
.category-chip.active .chip-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .categories-professional-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section-header-enhanced {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .categories-professional-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .category-card-pro {
    padding: 20px;
  }
  
  .more-categories-chips {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .section-header-enhanced .header-content h3 {
    font-size: 20px;
  }
  
  .category-icon-wrapper {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .category-card-body h4 {
    font-size: 16px;
  }
}

/* Section Spacing */
.categories-grid-section {
  margin-bottom: 48px;
}
