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

/* Definition of the design system. All colors, gradients, fonts, etc should be defined here. 
All colors MUST be HSL.
*/

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 25 25% 12%;

    --card: 0 0% 100%;
    --card-foreground: 25 25% 12%;

    --popover: 0 0% 100%;
    --popover-foreground: 25 25% 12%;

    --primary: 25 85% 55%;
    --primary-foreground: 0 0% 100%;

    --secondary: 120 35% 20%;
    --secondary-foreground: 0 0% 100%;

    --muted: 40 30% 96%;
    --muted-foreground: 25 15% 45%;

    --accent: 45 95% 65%;
    --accent-foreground: 25 25% 12%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;

    --border: 40 20% 88%;
    --input: 40 20% 88%;
    --ring: 25 85% 55%;

    /* Premium adventure theme colors */
    --forest: 120 35% 20%;
    --forest-light: 120 25% 35%;
    --terracotta: 25 85% 55%;
    --terracotta-light: 25 75% 70%;
    --amber: 45 95% 65%;
    --amber-dark: 40 85% 55%;
    --sage: 100 15% 85%;
    --earth: 30 25% 25%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(var(--forest)) 0%, hsl(var(--forest-light)) 50%, hsl(var(--terracotta)) 100%);
    --gradient-accent: linear-gradient(90deg, hsl(var(--terracotta)) 0%, hsl(var(--amber)) 100%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, hsla(var(--forest), 0.8) 100%);

    /* Shadows */
    --shadow-premium: 0 10px 40px -10px hsla(var(--forest), 0.25);
    --shadow-glow: 0 0 30px hsla(var(--amber), 0.3);

    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --radius: 0.5rem;

    --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: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

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

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --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;
  }
}

@layer base {
  /* Mobile-first readable defaults */
  h1 { @apply text-4xl md:text-6xl font-bold leading-tight tracking-tight; }
  h2 { @apply text-3xl md:text-5xl font-semibold leading-tight; }
  h3 { @apply text-2xl md:text-3xl font-semibold; }
  p { @apply leading-relaxed; }
  section { @apply px-4 sm:px-6; }
}

@keyframes color-change {
  0% { 
    background-image: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
  }
  25% { 
    background-image: linear-gradient(45deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
  }
  50% { 
    background-image: linear-gradient(45deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
  }
  75% { 
    background-image: linear-gradient(45deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
  }
  100% { 
    background-image: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
