/* CompUp-Inspired Design System */
/* Purple-themed, modern, professional design */

:root {
  /* Purple Brand Colors (matching CompUp) */
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-800: #6b21a8;
  --purple-900: #581c87;

  /* Primary = Purple */
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --primary-dark: #6b21a8;
  --primary-glow: rgba(124, 58, 237, 0.3);

  /* Success (Green) */
  --success: #22c55e;
  --success-light: #4ade80;
  --success-dark: #16a34a;
  --success-bg: #f0fdf4;

  /* Warning/Alert (Red) */
  --alert: #ef4444;
  --alert-light: #f87171;
  --alert-dark: #dc2626;
  --alert-bg: #fef2f2;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Sidebar (Dark Navy) */
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-text: #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-purple: 0 10px 30px -5px rgba(124, 58, 237, 0.3);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
}

/* ============================================
   HERO SECTION - CompUp Style
   ============================================ */

.hero-section-compup {
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 50%, #f0f9ff 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

/* Purple glow effect */
.hero-section-compup::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* City houses illustration background */
.hero-section-compup::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background-image: url('https://illustrations.popsy.co/purple/city.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Alternative: Use a housing/neighborhood pattern */
@media (max-width: 1200px) {
  .hero-section-compup::after {
    width: 400px;
    height: 400px;
    right: -50px;
  }
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--purple-100);
  color: var(--purple-700);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: slideDown 0.6s ease-out;
}

.hero-title-compup {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin: 0 0 24px 0;
  animation: slideUp 0.8s ease-out;
}

.hero-title-compup .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-compup {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto 40px;
  animation: slideUp 1s ease-out;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 40px 0;
  flex-wrap: wrap;
  animation: fadeIn 1.2s ease-out;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeIn 1.4s ease-out;
}

.btn-primary-compup {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-compup:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -5px rgba(124, 58, 237, 0.4);
}

.btn-secondary-compup {
  padding: 16px 32px;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-compup:hover {
  background: var(--purple-50);
  transform: translateY(-2px);
}

/* ============================================
   FEATURES / STEPS SECTION
   ============================================ */

.steps-section {
  padding: 100px 20px;
  background: white;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--purple-100);
  color: var(--purple-700);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 16px 0;
}

.section-description {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background: white;
  border: 2px solid var(--gray-100);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px 0;
}

.step-description {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   PROPERTY SNAPSHOT CARD
   ============================================ */

.property-snapshot {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  max-width: 900px;
  margin: 40px auto;
  border: 1px solid var(--gray-200);
}

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

.property-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.property-badge {
  padding: 8px 16px;
  background: var(--alert-bg);
  color: var(--alert);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.property-badge.success {
  background: var(--success-bg);
  color: var(--success);
}

.property-image-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--gray-100);
}

.property-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.detail-item {
  text-align: center;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
}

.detail-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.detail-value.increase {
  color: var(--alert);
}

.detail-value.success {
  color: var(--success);
}

/* ============================================
   MAP VIEW (Comparable Properties)
   ============================================ */

.map-view-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.map-panel {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 600px;
}

.map-panel-header {
  padding: 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.map-iframe {
  width: 100%;
  height: calc(100% - 70px);
}

/* Comparable Table */
.comparable-table {
  overflow-y: auto;
  max-height: calc(600px - 70px);
}

.comp-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.comp-row:hover {
  background: var(--purple-50);
}

.comp-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.comp-marker.yellow {
  background: #f59e0b;
}

.comp-marker.red {
  background: var(--alert);
}

.comp-details {
  flex: 1;
}

.comp-address {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.comp-stats {
  font-size: 12px;
  color: var(--gray-600);
}

.comp-value {
  text-align: right;
}

.comp-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}

.comp-distance {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 768px) {
  .hero-title-compup {
    font-size: 36px;
  }

  .hero-subtitle-compup {
    font-size: 16px;
  }

  .stats-bar {
    gap: 30px;
  }

  .stat-value {
    font-size: 28px;
  }

  .map-view-container {
    grid-template-columns: 1fr;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn-primary-compup,
  .btn-secondary-compup {
    width: 100%;
    justify-content: center;
  }
}

/* Fix z-index for feature cards and other content to appear above background */
.features-section,
.features-container,
.features-grid,
.feature-card,
.section-header,
.stats-bar,
.cta-section,
.step-card {
  position: relative;
  z-index: 10;
}

/* Ensure modal content appears above background */
.modal-footer,
.appeal-options,
.appeal-card {
  position: relative;
  z-index: 10;
}
