/* ============================
   Services Page Specific Styles
   ============================ */

.services-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.services-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.services-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.services-hero-subtitle {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 48px;
  line-height: 1.7;
}

.services-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.services-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.services-stat i {
  font-size: 32px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-stat .stat-number {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.services-stat .stat-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

/* ============================
   Networks Section
   ============================ */

.networks-section {
  padding: 80px 0;
  background: var(--white);
}

.networks-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--light-gray);
  background: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
}

.filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-hero);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

/* ============================
   Network Card
   ============================ */

.network-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.network-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.3);
}

.network-card-header {
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.network-logo-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.network-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.network-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s infinite;
}

.network-type-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.network-type-badge.mainnet {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
}

.network-type-badge.testnet {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.network-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.network-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.network-description {
  color: var(--gray);
  line-height: 1.6;
  font-size: 15px;
}

.network-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--light-gray);
  border-radius: var(--radius-md);
}

.network-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-mono, monospace);
}

.network-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-blue);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.feature-tag i {
  font-size: 12px;
}

.network-card-footer {
  padding: 20px 24px;
  background: var(--light-gray);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.network-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--gradient-hero);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  text-decoration: none;
}

.network-card-btn:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.network-card-btn i {
  transition: transform 0.3s ease;
}

.network-card-btn:hover i {
  transform: translateX(4px);
}

/* ============================
   Services Features
   ============================ */

.services-features {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.services-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-feature {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-hero);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
}

.service-feature h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-feature p {
  color: var(--gray);
  line-height: 1.7;
}

/* ============================
   Filter Animation
   ============================ */

.network-card.hidden {
  display: none;
}

.network-card.fade-in {
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================
   Responsive Design
   ============================ */

@media (max-width: 768px) {
  .services-hero {
    padding: 120px 0 60px;
  }

  .services-hero-title {
    font-size: 32px;
  }

  .services-hero-subtitle {
    font-size: 16px;
  }

  .services-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .networks-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    justify-content: center;
  }

  .networks-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .network-info-grid {
    grid-template-columns: 1fr;
  }

  .services-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .network-card-header {
    flex-direction: column;
    gap: 16px;
  }

  .network-logo {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .network-name {
    font-size: 24px;
  }

  .feature-tag {
    font-size: 11px;
    padding: 4px 10px;
  }
}
