:root {
  --background: 0 0% 100%;
  --foreground: 220 20% 10%;

  --card: 0 0% 100%;
  --card-foreground: 220 20% 10%;

  --popover: 0 0% 100%;
  --popover-foreground: 220 20% 10%;

  --primary: 4 90% 55%;
  --primary-foreground: 0 0% 100%;

  --secondary: 210 85% 55%;
  --secondary-foreground: 0 0% 100%;

  --muted: 220 14% 96%;
  --muted-foreground: 220 10% 45%;

  --accent: 210 85% 55%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 4 90% 55%;

  --radius: 0.75rem;

  /* Custom colors */
  --leadlife-red: 4 90% 55%;
  --leadlife-blue: 210 85% 55%;
  --leadlife-red-light: 4 90% 95%;
  --leadlife-blue-light: 210 85% 95%;
}

.dark {
  --background: 220 20% 8%;
  --foreground: 0 0% 98%;
  --card: 220 20% 10%;
  --card-foreground: 0 0% 98%;
  --popover: 220 20% 10%;
  --popover-foreground: 0 0% 98%;
  --primary: 4 90% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 85% 55%;
  --secondary-foreground: 0 0% 100%;
  --muted: 220 15% 15%;
  --muted-foreground: 220 10% 60%;
  --accent: 210 85% 55%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 220 15% 20%;
  --input: 220 15% 20%;
  --ring: 4 90% 55%;
}

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

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

/* Global cursor pointer for all links */
a, a:hover, a:focus, a:active {
  cursor: pointer !important;
}

/* Also for buttons that act as links */
button[type="button"], button[type="submit"], button:not([disabled]) {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
}

.bg-gradient-leadlife {
  background: linear-gradient(135deg, hsl(var(--leadlife-red)) 0%, hsl(var(--leadlife-blue)) 100%);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.animate-fade-up {
  animation: fade-up 0.3s ease-out;
}

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

/* Custom button variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 500;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  outline: none;
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-primary:focus-visible {
  outline-color: hsl(var(--primary));
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.9);
}

.btn-secondary:focus-visible {
  outline-color: hsl(var(--secondary));
}

.btn-outline {
  border-width: 2px;
  border-color: hsl(var(--border));
  background-color: transparent;
}

.btn-outline:hover {
  background-color: hsl(var(--muted));
}

.btn-outline:focus-visible {
  outline-color: hsl(var(--primary));
}

.btn-ghost:hover {
  background-color: hsl(var(--muted));
}

.btn-ghost:focus-visible {
  outline-color: hsl(var(--primary));
}

.btn-sm {
  height: 2.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
}

.btn-md {
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 1rem;
}

.btn-lg {
  height: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1.125rem;
}
