/* Demo Page Styles */

/* Demo Header */
.demo-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0 3rem;
  text-align: center;
}

.demo-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.demo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.demo-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.demo-header p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.error-container {
  text-align: center;
  padding: 4rem 2rem;
}

.error-content {
  max-width: 500px;
  margin: 0 auto;
}

.error-content i {
  font-size: 4rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.error-content h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.error-content p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Statistics Section */
.demo-stats {
  padding: 3rem 0;
  background: #f9fafb;
}

.demo-stats h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card i {
  font-size: 2.5rem;
  color: #667eea;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tier Features Section */
.tier-features {
  padding: 3rem 0;
  background: white;
}

.tier-features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 2px solid transparent;
}

.feature-item.included {
  border-color: #10b981;
  background: #f0fdf4;
}

.feature-item.not-included {
  opacity: 0.5;
}

.feature-item i:first-child {
  font-size: 1.5rem;
  color: #667eea;
  width: 30px;
}

.feature-item span {
  flex: 1;
  font-weight: 500;
  color: #1f2937;
}

.feature-item i:last-child {
  font-size: 1.25rem;
}

.feature-item.included i:last-child {
  color: #10b981;
}

.feature-item.not-included i:last-child {
  color: #ef4444;
}

/* Vehicles Section */
.demo-vehicles {
  padding: 3rem 0;
  background: #f9fafb;
}

.demo-vehicles h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vehicle-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vehicle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.vehicle-title h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.vehicle-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.vehicle-mileage {
  background: #f3f4f6;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.vehicle-vin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.875rem;
  color: #4b5563;
}

.vehicle-vin i {
  color: #667eea;
}

.vehicle-purchase {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f0fdf4;
  border-radius: 6px;
  font-size: 0.875rem;
}

.vehicle-purchase .price {
  font-weight: 700;
  color: #10b981;
  font-size: 1rem;
}

.vehicle-notes {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
}

.vehicle-services {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f3f4f6;
}

.vehicle-services h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vehicle-services h4 i {
  color: #667eea;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-record {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.service-type {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

.service-cost {
  font-weight: 700;
  color: #667eea;
  font-size: 1.125rem;
}

.service-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.service-details span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.service-details i {
  color: #667eea;
}

.service-description {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.service-provider {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-provider i {
  color: #667eea;
}

.no-services {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 1rem;
}

.more-services {
  text-align: center;
  color: #667eea;
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* CTA Section */
.demo-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-secondary {
  background: white;
  color: #667eea;
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .demo-header h1 {
    font-size: 2rem;
  }

  .demo-header p {
    font-size: 1rem;
  }

  .stats-grid,
  .features-grid,
  .vehicles-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-header {
    flex-direction: column;
    gap: 1rem;
  }

  .vehicle-mileage {
    align-self: flex-start;
  }

  .demo-cta h2 {
    font-size: 1.875rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }
}
