/*
Theme Name: PlaceClarity
Description: A WordPress theme for neighborhood liveability analysis and rental decisions
Version: 2.0
Author: PlaceClarity Team
*/

/* Import Tailwind CSS */
@import url("https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css");

/* Enhanced Custom Styles */
body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

.hero-gradient {
  background: linear-gradient(135deg, #dbeafe 0%, #ffffff 50%, #dcfce7 100%);
}

/* Enhanced Mode Toggle Animations */
.mode-toggle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mode-toggle:hover {
  transform: scale(1.02);
}

.mode-toggle.active {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Search Loading State */
.search-loading {
  opacity: 0.7;
  pointer-events: none;
  transform: scale(0.98);
}

/* Enhanced Score Cards */
.score-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.score-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced Progress Bars */
.progress-bar {
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-green {
  background: linear-gradient(90deg, #10b981, #059669);
}
.progress-blue {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.progress-yellow {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.progress-red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Enhanced Form Inputs */
input:focus,
select:focus {
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Enhanced Button Hover Effects */
button:hover {
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Enhanced Loading Animation */
@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.loading-pulse {
  animation: pulse-scale 2s infinite;
}

/* Enhanced Card Shadows */
.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .search-container {
    padding: 1rem;
  }

  .mode-toggle {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .score-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .mode-toggle {
    flex-direction: column;
    padding: 0.5rem;
  }

  .mode-toggle span {
    font-size: 0.75rem;
  }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
  .mode-toggle,
  .score-card,
  .progress-fill,
  button {
    transition: none;
    animation: none;
  }
}

/* Enhanced Focus States */
input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}