@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 {
    /* Playful and colorful design for humor site */
    --background: 45 100% 96%;
    --foreground: 220 20% 15%;

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

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

    /* Vibrant orange primary for main actions */
    --primary: 25 95% 55%;
    --primary-foreground: 0 0% 100%;

    /* Soft purple secondary */
    --secondary: 270 60% 88%;
    --secondary-foreground: 270 60% 25%;

    /* Light gray muted */
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;

    /* Fun yellow accent */
    --accent: 45 90% 70%;
    --accent-foreground: 220 20% 15%;

    /* Fun red for errors */
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    /* Soft borders */
    --border: 220 13% 85%;
    --input: 220 13% 91%;
    --ring: 25 95% 55%;
    
    /* Custom fun colors for jokes site */
    --fun-blue: 200 90% 60%;
    --fun-green: 120 70% 55%;
    --fun-pink: 330 80% 70%;
    --fun-yellow: 50 95% 65%;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(25 95% 55%), hsl(45 90% 70%));
    --gradient-fun: linear-gradient(135deg, hsl(200 90% 60%), hsl(270 60% 70%));

    --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: 220 20% 8%;
    --foreground: 45 100% 95%;

    --card: 220 20% 12%;
    --card-foreground: 45 100% 95%;

    --popover: 220 20% 12%;
    --popover-foreground: 45 100% 95%;

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

    --secondary: 270 20% 20%;
    --secondary-foreground: 270 60% 80%;

    --muted: 220 20% 15%;
    --muted-foreground: 220 20% 65%;

    --accent: 45 90% 60%;
    --accent-foreground: 220 20% 8%;

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

    --border: 220 20% 20%;
    --input: 220 20% 18%;
    --ring: 25 95% 55%;
    
    --fun-blue: 200 80% 55%;
    --fun-green: 120 60% 50%;
    --fun-pink: 330 70% 65%;
    --fun-yellow: 50 85% 60%;
    --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;
  }
}
