@tailwind base;
@tailwind components;
@tailwind utilities;
 
@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 346.8 77.2% 49.8%;
    --primary-foreground: 355.7 100% 97.3%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 346.8 77.2% 49.8%;
    --radius: 0.5rem;
  }
 
  .dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 346.8 77.2% 49.8%;
    --primary-foreground: 355.7 100% 97.3%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 346.8 77.2% 49.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }

  html[dir="rtl"] {
    font-family: theme('fontFamily.arabic');
  }

  html[dir="ltr"] {
    font-family: theme('fontFamily.sans');
  }
}

.rtl {
  direction: rtl;
  font-family: theme('fontFamily.arabic');
}

.ltr {
  direction: ltr;
  font-family: theme('fontFamily.sans');
}

/* blogposts.css */
.prose {
  @apply max-w-none;
}

.prose h1 {
  @apply text-4xl font-bold mb-8;
}

.prose h2 {
  @apply text-3xl font-bold mt-12 mb-6;
}

.prose h3 {
  @apply text-2xl font-bold mt-8 mb-4;
}

.prose p {
  @apply mb-6 leading-relaxed;
}

.prose code {
  @apply px-1 py-0.5 rounded bg-gray-100 dark:bg-gray-800;
}

.prose pre {
  @apply p-4 rounded-lg bg-gray-100 dark:bg-gray-800 overflow-x-auto;
}

.prose ul {
  @apply list-disc pl-6 mb-6;
}

.prose ol {
  @apply list-decimal pl-6 mb-6;
}

.prose li {
  @apply mb-2;
}

.prose a {
  @apply text-purple-600 dark:text-purple-400 hover:underline;
}

.prose blockquote {
  @apply border-l-4 border-gray-300 dark:border-gray-700 pl-4 italic;
}