@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 {
    /* ===== Chems Pause Brand Colors ===== */
    --background: 0 0% 100%;
    --foreground: 0 0% 0%;

    /* Background variants for depth */
    --bg-subtle: 45 20% 98%;
    --bg-raised: 0 0% 100%;

    /* Foreground variants for hierarchy */
    --fg-dim: 0 0% 55%;
    --fg-muted: 0 0% 45%;

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

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

    /* Primary: Chems Pause Yellow */
    --primary: 45 100% 50%;
    --primary-foreground: 0 0% 0%;
    --primary-hover: 45 100% 45%;
    --primary-glow: 45 100% 65%;

    /* Brand variants for surfaces */
    --brand: 45 100% 50%;
    --brand-fg: 0 0% 0%;
    --brand-soft: 45 90% 96%;

    /* Secondary: Elegant Black */
    --secondary: 0 0% 10%;
    --secondary-foreground: 0 0% 100%;

    --muted: 45 20% 95%;
    --muted-foreground: 0 0% 45%;

    --accent: 45 80% 85%;
    --accent-foreground: 0 0% 0%;
    --accent-soft: 45 72% 96%;

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

    /* Semantic colors */
    --success: 150 60% 40%;
    --warning: 40 100% 48%;
    --danger: 0 72% 55%;

    --border: 45 20% 90%;
    --input: 45 20% 94%;
    --ring: 45 100% 50%;

    /* ===== Custom Design Tokens ===== */
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    --gradient-hero: linear-gradient(135deg, hsl(45 100% 50%), hsl(50 100% 60%));
    --gradient-subtle: linear-gradient(180deg, hsl(0 0% 100%), hsl(45 20% 98%));
    
    /* Shadows - optimized for depth perception */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lift: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.2);
    --shadow-card: 0 4px 6px -1px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.06);
    
    /* Transitions - faster, more responsive */
    --transition-smooth: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Border radius */
    --radius: 0.5rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-pill: 999px;

    --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 {
    /* ===== Dark mode adaptation with Chems Pause identity ===== */
    --background: 0 0% 8%;
    --foreground: 0 0% 100%;

    /* Background variants for depth */
    --bg-subtle: 0 0% 9%;
    --bg-raised: 0 0% 12%;

    /* Foreground variants for hierarchy */
    --fg-dim: 0 0% 70%;
    --fg-muted: 0 0% 84%;

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

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

    --primary: 45 100% 50%;
    --primary-foreground: 0 0% 0%;
    --primary-hover: 45 100% 45%;
    --primary-glow: 45 100% 65%;

    /* Brand variants for surfaces */
    --brand: 45 100% 50%;
    --brand-fg: 0 0% 0%;
    --brand-soft: 45 80% 12%;

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

    --muted: 0 0% 18%;
    --muted-foreground: 0 0% 65%;

    --accent: 45 50% 25%;
    --accent-foreground: 0 0% 100%;
    --accent-soft: 45 40% 15%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 100%;

    /* Semantic colors (dark mode adjusted) */
    --success: 150 50% 35%;
    --warning: 40 90% 45%;
    --danger: 0 65% 50%;

    --border: 0 0% 20%;
    --input: 0 0% 18%;
    --ring: 45 100% 50%;

    /* Dark mode gradients */
    --gradient-hero: linear-gradient(135deg, hsl(45 100% 50%), hsl(50 90% 55%));
    --gradient-subtle: linear-gradient(180deg, hsl(0 0% 8%), hsl(0 0% 12%));
    
    /* Dark mode shadows - more pronounced */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.3);
    --shadow-card: 0 4px 6px -1px hsl(0 0% 0% / 0.3), 0 2px 4px -1px hsl(0 0% 0% / 0.2);
    --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;
  }
}
