/**
 * AR Edilizia - Modern Services List Page Styles
 * Enhanced styling for services list/catalog view
 * Version: 2.0
 */

/* ============================================
   HERO SECTION - Enhanced
   ============================================ */

.services-list-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}

/* Animated background pattern */
.services-list-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  animation: pulse-glow 8s ease-in-out infinite;
}

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

/* ============================================
   FEATURED SERVICES SECTION
   ============================================ */

.featured-services-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

[data-theme="dark"] .featured-services-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.featured-services-header {
  text-align: center;
  margin-bottom: 60px;
}

.featured-services-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.3);
}

.featured-services-label svg {
  width: 16px;
  height: 16px;
}

.featured-services-title {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.2;
}

[data-theme="dark"] .featured-services-title {
  color: #f8fafc;
}

.featured-services-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

[data-theme="dark"] .featured-services-subtitle {
  color: #94a3b8;
}

.featured-services-view-all {
  margin-top: 48px;
  text-align: center;
}

.featured-services-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.featured-services-view-all-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.featured-services-view-all-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.featured-services-view-all-link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */

.category-section {
  padding: 60px 0;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .category-section {
  border-color: #334155;
}

.category-section:last-child {
  border-bottom: none;
}

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

[data-theme="dark"] .category-header {
  border-color: #334155;
}

.category-header__content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-header__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.category-header__text h3 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

[data-theme="dark"] .category-header__text h3 {
  color: #f8fafc;
}

.category-header__text p {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

[data-theme="dark"] .category-header__text p {
  color: #94a3b8;
}

.category-header__action {
  padding: 12px 24px;
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-header__action:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

/* ============================================
   FILTER SECTION
   ============================================ */

.filter-section {
  padding: 40px 0;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .filter-section {
  background: #1e293b;
  border-color: #334155;
}

.filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

[data-theme="dark"] .filter-title {
  color: #f8fafc;
}

.filter-count {
  font-size: 18px;
  font-weight: 400;
  color: #64748b;
  margin-left: 12px;
}

.filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

[data-theme="dark"] .filter-button {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

.filter-button:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
  transform: translateY(-2px);
}

.filter-button--active {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border-color: #0ea5e9;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.filter-button--active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}

/* ============================================
   PAGINATION - Modern Design
   ============================================ */

.pagination-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
  padding: 40px 0;
}

.pagination-modern a,
.pagination-modern span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
}

[data-theme="dark"] .pagination-modern a,
[data-theme="dark"] .pagination-modern span {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.pagination-modern a:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
  transform: translateY(-2px);
}

.pagination-modern .current {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border-color: #0ea5e9;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

/* ============================================
   SEARCH BAR - Enhanced
   ============================================ */

.search-bar-enhanced {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar-enhanced input {
  width: 100%;
  padding: 16px 60px 16px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  font-size: 16px;
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-bar-enhanced input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-bar-enhanced input:focus {
  outline: none;
  border-color: #0ea5e9;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.search-bar-enhanced button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar-enhanced button:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .services-list-hero {
    padding: 60px 0 40px;
  }

  .featured-services-title {
    font-size: 32px;
  }

  .featured-services-subtitle {
    font-size: 16px;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .category-header__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-header__icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .category-header__text h3 {
    font-size: 24px;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions {
    justify-content: center;
  }

  .pagination-modern {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pagination-modern a,
  .pagination-modern span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.filter-button:focus-visible,
.pagination-modern a:focus-visible,
.search-bar-enhanced input:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 4px;
}
