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

/* FHHFIRE Design System - Financial Freedom Theme
All colors MUST be HSL for design consistency.
*/

@layer base {
  :root {
    /* Background System */
    --background: 220 15% 5%;
    --foreground: 210 20% 98%;

    /* Card System */
    --card: 220 15% 8%;
    --card-foreground: 210 20% 95%;

    /* Popover System */
    --popover: 220 15% 8%;
    --popover-foreground: 210 20% 95%;

    /* Primary Brand - Deep Financial Blue */
    --primary: 214 84% 56%;
    --primary-foreground: 210 20% 98%;
    --primary-glow: 214 84% 70%;

    /* Secondary - Prosperity Gold */
    --secondary: 45 93% 58%;
    --secondary-foreground: 220 15% 8%;

    /* Success/Growth Green */
    --success: 142 76% 36%;
    --success-foreground: 210 20% 98%;
    --success-glow: 142 76% 50%;

    /* Muted System */
    --muted: 220 15% 15%;
    --muted-foreground: 220 15% 65%;

    /* Accent System */
    --accent: 220 15% 12%;
    --accent-foreground: 210 20% 95%;

    /* Status Colors */
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 20% 98%;

    /* Interactive Elements */
    --border: 220 15% 20%;
    --input: 220 15% 12%;
    --ring: 214 84% 56%;

    /* Financial Growth Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    --gradient-growth: linear-gradient(135deg, hsl(var(--success)), hsl(var(--success-glow)));
    --gradient-prosperity: linear-gradient(135deg, hsl(var(--secondary)) 0%, hsl(var(--primary)) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(220 15% 8%) 50%, hsl(var(--accent)) 100%);

    /* Shadows & Effects */
    --shadow-glow: 0 0 40px hsl(var(--primary-glow) / 0.3);
    --shadow-prosperity: 0 10px 40px hsl(var(--secondary) / 0.2);
    --shadow-card: 0 8px 32px hsl(220 15% 2% / 0.4);

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

    --radius: 0.75rem;

    --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 components {
  /* FHHFIRE Custom Components */
  .gradient-text {
    @apply bg-gradient-to-r from-secondary to-primary bg-clip-text text-transparent;
  }
  
  .chart-line {
    background: linear-gradient(135deg, transparent 0%, hsl(var(--success)) 40%, hsl(var(--secondary)) 100%);
    clip-path: polygon(0% 100%, 0% 80%, 25% 70%, 50% 40%, 75% 20%, 100% 0%, 100% 100%);
  }
  
  .glow-effect {
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
  }
  
  .prosperity-glow {
    box-shadow: var(--shadow-prosperity);
  }
}

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

  body {
    @apply bg-background text-foreground font-sans;
    background: hsl(var(--background));
  }
  
  h1, h2, h3, h4, h5, h6 {
    @apply font-bold tracking-tight;
  }
}