/* Non-critical CSS for below-the-fold content */
/* This CSS is loaded asynchronously after initial render */

/* Additional CSS Variables needed by below-fold content */
:root {
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --gray-300: #d4d4d8;
  --gray-500: #71717a;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Modern Cards - Below fold */
.card-modern {
  background: white;
  border-radius: var(--radius-xl, 1rem);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100, #f4f4f5);
}

/* Feature Cards - Below fold */
.feature-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-xl, 1rem);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100, #f4f4f5);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
  border-radius: var(--radius-xl, 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600, #2563eb);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900, #18181b);
}

.feature-description {
  color: var(--gray-600, #52525b);
  line-height: 1.6;
}

/* Footer styles - Below fold */
.footer-modern {
  background: var(--gray-900, #18181b);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-link {
  color: var(--gray-400, #a1a1aa);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

/* Section styles - Below fold */
.section-modern {
  padding: 5rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gray-900, #18181b);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600, #52525b);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Grid - Below fold */
.feature-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Stats Grid - Below fold */
.stats-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat-label {
  color: var(--gray-600, #52525b);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Loading skeleton - Below fold */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200, #e4e4e7) 25%, var(--gray-100, #f4f4f5) 50%, var(--gray-200, #e4e4e7) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hover states moved from critical.css for page speed optimization */
.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

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

/* Animations moved from critical.css */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
  will-change: opacity, transform;
  transform: translateZ(0); /* Force GPU layer */
}

.animate-slideIn {
  animation: slideIn 0.4s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Result sections and cards */
.result-section {
  margin-bottom: 0;
}

.result-section-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-count {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
}

.result-card {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.15s;
}

.result-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* State filter */
.state-filter-section {
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.state-filter-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.state-filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.state-filter-select {
  padding: 0.25rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.state-filter-select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Results summary bar */
.results-summary-bar {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.results-summary-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #2563eb;
  border-radius: 50%;
}

/* Grid layouts */
.grid-1-col {
  display: grid;
  gap: 1rem;
}

.grid-2-col {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-2-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Property cards */
.property-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.property-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.property-value {
  font-weight: 600;
}

.property-detail {
  font-size: 0.875rem;
}

.property-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Business cards */
.business-card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .business-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.business-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.business-name {
  font-weight: 600;
}

.business-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
}

/* Professional cards */
.professional-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .professional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.professional-card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.professional-info {
  flex: 1;
}

.professional-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.professional-title {
  color: #374151;
  font-weight: 500;
}

.professional-company {
  font-size: 0.875rem;
  color: #2563eb;
  margin-top: 0.25rem;
}

.professional-location {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.linkedin-icon {
  color: #3b82f6;
  transition: color 0.15s;
}

.linkedin-icon:hover {
  color: #1d4ed8;
}

.linkedin-svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Healthcare cards */
.healthcare-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .healthcare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.healthcare-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.healthcare-name {
  font-weight: 600;
}

.healthcare-credential {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
}

/* Empty states */
.empty-state-container {
  text-align: center;
  padding: 3rem 0;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
  color: #6b7280;
  margin-bottom: 1rem;
}

.empty-state-icon-svg {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
}

.empty-state-title {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.empty-state-description {
  color: #6b7280;
}

/* Start search state */
.start-search-container {
  text-align: center;
  padding: 4rem 0;
}

.start-search-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 3rem;
  max-width: 42rem;
  margin: 0 auto;
}

.start-search-icon {
  color: #3b82f6;
  margin-bottom: 1.5rem;
}

.start-search-icon-svg {
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
}

.start-search-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.start-search-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.start-search-features {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Additional contribution styles */
.contribution-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .contribution-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.contribution-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.contribution-name {
  font-weight: 600;
}

.contribution-amount {
  font-weight: 700;
  color: #059669;
  font-size: 1.125rem;
}

/* All other remaining styles from search-components.css that aren't critical */
.patent-grid, .education-grid, .realtor-grid, .marketing-grid, .visitor-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .patent-grid, .education-grid, .realtor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .marketing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Respect user motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}