@import "tailwindcss";

@plugin "@tailwindcss/forms";
@plugin "@tailwindcss/typography";

@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

:root {
  /* Megs Braap brand — dark-first palette */
  --background: #000000;
  --foreground: #f0f0f0;
  --card: #0d0d0d;
  --card-foreground: #f0f0f0;
  --popover: #0d0d0d;
  --popover-foreground: #f0f0f0;
  --primary: #FA0D99;
  --primary-foreground: #ffffff;
  --secondary: #9245DF;
  --secondary-foreground: #ffffff;
  --muted: #1a1a1a;
  --muted-foreground: #9f9f9f;
  --accent: #5BCAE5;
  --accent-foreground: #000000;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --input: rgba(255, 255, 255, 0.12);
  --ring: #FA0D99;
  --chart-1: #FA0D99;
  --chart-2: #9245DF;
  --chart-3: #5BCAE5;
  --chart-4: #f2a63b;
  --chart-5: #a78bfa;
  --radius: 0.625rem;

  /* Sidebar — dark admin panel */
  --sidebar: #0a0a0a;
  --sidebar-foreground: #e1e1e1;
  --sidebar-primary: #FA0D99;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #1a1a1a;
  --sidebar-accent-foreground: #f0f0f0;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --sidebar-ring: #FA0D99;

  /* ruby_ui specific */
  --warning: hsl(38 92% 50%);
  --warning-foreground: hsl(0 0% 100%);
  --success: hsl(87 100% 37%);
  --success-foreground: hsl(0 0% 100%);

  /* Brand extras */
  --brand-pink: #FA0D99;
  --brand-purple: #9245DF;
  --brand-cyan: #5BCAE5;
  --brand-gradient: linear-gradient(135deg, #FA0D99, #9245DF);
}

.dark {
  --background: #000000;
  --foreground: #f0f0f0;
  --card: #0d0d0d;
  --card-foreground: #f0f0f0;
  --popover: #0d0d0d;
  --popover-foreground: #f0f0f0;
  --primary: #FA0D99;
  --primary-foreground: #ffffff;
  --secondary: #9245DF;
  --secondary-foreground: #ffffff;
  --muted: #1a1a1a;
  --muted-foreground: #9f9f9f;
  --accent: #5BCAE5;
  --accent-foreground: #000000;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --input: rgba(255, 255, 255, 0.12);
  --ring: #FA0D99;
  --chart-1: #FA0D99;
  --chart-2: #9245DF;
  --chart-3: #5BCAE5;
  --chart-4: #f2a63b;
  --chart-5: #a78bfa;
  --sidebar: #0a0a0a;
  --sidebar-foreground: #e1e1e1;
  --sidebar-primary: #FA0D99;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #1a1a1a;
  --sidebar-accent-foreground: #f0f0f0;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --sidebar-ring: #FA0D99;

  /* ruby_ui specific */
  --warning: hsl(38 92% 50%);
  --warning-foreground: hsl(0 0% 100%);
  --success: hsl(84 81% 44%);
  --success-foreground: hsl(0 0% 100%);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  /* ruby_ui specific */
  --color-warning: var(--warning);
  --color-warning-foreground: var(--warning-foreground);
  --color-success: var(--success);
  --color-success-foreground: var(--success-foreground);

  /* Brand extras */
  --color-brand-pink: var(--brand-pink);
  --color-brand-purple: var(--brand-purple);
  --color-brand-cyan: var(--brand-cyan);

  /* Font families */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

@utility container {
  margin-inline: auto;
  padding-inline: 2rem;
  max-width: 1400px;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
    font-family: var(--font-body);
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }
}
