@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% 98%;
    --foreground: 224 24% 12%;

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

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

    --primary: 231 48% 48%;
    --primary-foreground: 0 0% 100%;

    --secondary: 220 14% 96%;
    --secondary-foreground: 224 24% 12%;

    --muted: 220 14% 96%;
    --muted-foreground: 220 9% 46%;

    --accent: 180 80% 40%;
    --accent-foreground: 0 0% 100%;

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

    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 231 48% 48%;

    /* Study Buddy specific tokens - GenZ vibes */
    --hero-gradient: linear-gradient(135deg, hsl(280 100% 70%), hsl(320 100% 80%), hsl(220 100% 75%));
    --genz-purple: 280 100% 70%;
    --genz-pink: 320 100% 80%;
    --genz-blue: 220 100% 75%;
    --genz-green: 140 100% 60%;
    --genz-yellow: 45 100% 70%;
    --success: 142 76% 36%;
    --warning: 45 93% 47%;
    --info: 198 93% 60%;
    --surface-soft: 220 14% 98%;
    --shadow-soft: 231 48% 48% / 0.1;
    --gradient-card: linear-gradient(135deg, hsl(280 100% 95%), hsl(320 100% 95%));
    --glassmorphism: rgba(255, 255, 255, 0.1);
    --glow-purple: 280 100% 70% / 0.3;
    --glow-pink: 320 100% 80% / 0.3;

    --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: 240 10% 3.9%;
    --foreground: 280 5% 90%;

    --card: 240 10% 3.9%;
    --card-foreground: 280 5% 90%;

    --popover: 240 10% 3.9%;
    --popover-foreground: 280 5% 90%;

    --primary: 280 100% 70%;
    --primary-foreground: 240 10% 3.9%;

    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 280 5% 90%;

    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;

    --accent: 320 100% 80%;
    --accent-foreground: 240 10% 3.9%;

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

    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 280 100% 70%;
    --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-sans antialiased;
  }
}

@layer components {
  .hero-gradient {
    background: var(--hero-gradient);
  }
  
  .genz-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid hsl(var(--glassmorphism));
  }
  
  .genz-button {
    background: linear-gradient(135deg, hsl(var(--genz-purple)), hsl(var(--genz-pink)));
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  .genz-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px hsl(var(--glow-purple));
  }
  
  .genz-text-gradient {
    background: linear-gradient(135deg, hsl(var(--genz-purple)), hsl(var(--genz-pink)), hsl(var(--genz-blue)));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .status-available {
    @apply bg-green-500/10 text-green-700 border-green-500/20;
  }
  
  .status-busy {
    @apply bg-yellow-500/10 text-yellow-700 border-yellow-500/20;
  }
  
  .status-offline {
    @apply bg-gray-500/10 text-gray-700 border-gray-500/20;
  }
  
  .surface-soft {
    background-color: hsl(var(--surface-soft));
  }
  
  .shadow-study {
    box-shadow: 0 4px 16px hsl(var(--shadow-soft));
  }
  
  .glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .animate-float {
    animation: float 3s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }
}