/* Custom CSS for Addressly - Works with Tailwind CDN */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Variables - White Background with Blue and Orange */
:root {
  --background: 0 0% 100%; /* White */
  --foreground: 222 47% 11%; /* Dark navy for text */
  --card: 0 0% 100%; /* White */
  --card-foreground: 222 47% 11%; /* Dark text */
  --primary: 217 91% 60%; /* #3B82F6 - Bright Blue */
  --primary-foreground: 0 0% 100%; /* White */
  --secondary: 220 13% 91%; /* Light gray */
  --secondary-foreground: 222 47% 11%; /* Dark text */
  --muted: 220 13% 96%; /* Very light gray */
  --muted-foreground: 215 16% 47%; /* Medium gray */
  --accent: 24 95% 53%; /* #F97316 - Warm Orange */
  --accent-foreground: 0 0% 100%; /* White */
  --success: 142 76% 36%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 91%; /* Light gray border */
  --input: 220 13% 91%; /* Light gray input */
  --ring: 217 91% 60%; /* Blue */
  --radius: 0.75rem;
}

/* Base styles */
* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  font-size: 80%;
}

@media (max-width: 640px) {
  html {
    font-size: 100%;
  }
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom utility classes */
.bg-background { background-color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.text-primary { color: hsl(var(--primary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.text-accent { color: hsl(var(--accent)); }
.bg-success { background-color: hsl(var(--success)); }
.text-success { color: hsl(var(--success)); }
.bg-muted { background-color: hsl(var(--muted)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.border-border { border-color: hsl(var(--border)); }

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.05), hsl(var(--background)), hsl(var(--accent) / 0.05));
}

/* Glass card */
.glass-card {
  background-color: hsl(var(--card) / 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Glass effect for navbar and other elements */
.glass-effect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

/* Progress fill */
.progress-fill {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
}

/* Stat number */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

/* Step indicators */
.step-active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.step-complete {
  background-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.step-inactive {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

/* Field focus */
.field-focus {
  transition: all 0.2s;
}

.field-focus:focus {
  outline: none;
  ring-width: 2px;
  ring-color: hsl(var(--ring) / 0.2);
  border-color: hsl(var(--primary));
}

/* Animations */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
