@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* TailTrails Color Palette - Warm & Natural */
    --background: 40 23% 96%; /* #F5F3EE cream */
    --foreground: 80 20% 20%; /* Dark olive text */

    --card: 40 20% 98%;
    --card-foreground: 80 20% 20%;

    --popover: 40 20% 98%;
    --popover-foreground: 80 20% 20%;

    /* Olive/Sage Green Primary */
    --primary: 90 14% 42%; /* #6B7B5F */
    --primary-foreground: 40 23% 96%;

    --secondary: 40 15% 90%;
    --secondary-foreground: 80 20% 20%;

    --muted: 40 15% 92%;
    --muted-foreground: 80 10% 45%;

    --accent: 35 60% 50%; /* Warm amber accent */
    --accent-foreground: 40 23% 96%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 40 15% 85%;
    --input: 40 15% 85%;
    --ring: 90 14% 42%;

    --radius: 0.75rem;

    /* Custom tokens */
    --olive: 90 14% 42%;
    --olive-dark: 90 20% 25%;
    --olive-light: 90 14% 55%;
    --cream: 40 23% 96%;
    --cream-dark: 40 20% 90%;
    --amber: 35 60% 50%;
    --amber-light: 35 70% 60%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(40 23% 96%) 0%, hsl(40 20% 92%) 100%);
    --gradient-olive: linear-gradient(135deg, hsl(90 14% 42%) 0%, hsl(90 20% 35%) 100%);
    --gradient-card: linear-gradient(180deg, hsl(40 20% 98%) 0%, hsl(40 23% 96%) 100%);

    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsl(90 14% 42% / 0.15);
    --shadow-elevated: 0 8px 30px -8px hsl(90 14% 42% / 0.2);
    --shadow-glow: 0 0 40px hsl(90 14% 42% / 0.15);

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 80 20% 10%;
    --foreground: 40 23% 96%;

    --card: 80 18% 12%;
    --card-foreground: 40 23% 96%;

    --popover: 80 18% 12%;
    --popover-foreground: 40 23% 96%;

    --primary: 90 14% 55%;
    --primary-foreground: 80 20% 10%;

    --secondary: 80 15% 18%;
    --secondary-foreground: 40 23% 96%;

    --muted: 80 15% 20%;
    --muted-foreground: 40 15% 65%;

    --accent: 35 60% 55%;
    --accent-foreground: 80 20% 10%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 80 15% 20%;
    --input: 80 15% 20%;
    --ring: 90 14% 55%;

    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground font-body antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    @apply font-display;
  }
}

@layer utilities {
  .font-display {
    font-family: var(--font-display);
  }
  
  .font-body {
    font-family: var(--font-body);
  }

  .gradient-hero {
    background: var(--gradient-hero);
  }

  .gradient-olive {
    background: var(--gradient-olive);
  }

  .gradient-card {
    background: var(--gradient-card);
  }

  .shadow-soft {
    box-shadow: var(--shadow-soft);
  }

  .shadow-elevated {
    box-shadow: var(--shadow-elevated);
  }

  .shadow-glow {
    box-shadow: var(--shadow-glow);
  }

  .text-balance {
    text-wrap: balance;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

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

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

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

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

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

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
