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

html,
body {
  color: hsl(var(--BLACK));
  background-color: hsl(var(--background));
  -webkit-text-fill-color: currentColor;
}



@layer base {
  :root {
    --BLACK: 0 0% 14%;
    --BLACK2: 0 0% 30%;
    --GRAY: 0 0% 59%;
    --GRAY2: 0 0% 88%;
    --GRAY3: 0 0% 91%;
    --WHITE: 0 0% 99%;
    --WHITE2: 0 0% 93%;
    --WHITE3: 0 0% 96%;
    --VITROWN_BLUE: 212 97% 27%;
    --BLUE: 210 89% 54%;
    --BLUE2: 204 92% 59%;
    --RED: 0 100% 62%;
    --GREEN: 130 61% 60%;
    --hover: 240 5% 96%;
    --nbackground: 0 0% 0%;
    --ntext: 0 0% 100%;
    --inputBg: 240 2% 96%;
    --inputPlaceholder: 0 0% 50%;
    /* Social Media Colors */
    --TELEGRAM: 199 82% 55%;
    --WHATSAPP: 134 61% 50%;
    /* UI Element Colors */
    --DARK_OVERLAY: 200 4% 15%;
    --DARK_OVERLAY_HOVER: 0 0% 20%;
    --MEDIUM_GRAY: 220 3% 58%;
    --LIGHT_SHADOW: 240 2% 93%;
    --TRANSPARENT_BLACK_10: 0 0% 0% / 10%;
    --TRANSPARENT_BLACK_30: 0 0% 0% / 30%;
    --TRANSPARENT_BLACK_50: 0 0% 0% / 50%;
    --GRADIENT_GRAY_FROM: 200 4% 52%;
    --GRADIENT_GRAY_TO: 200 4% 15%;
    --BEIGE: 60 26% 92%;
    --HIGHLIGHT_BLUE: 217 91% 60%;
    --HIGHLIGHT_BLUE_TRANSPARENT: 217 91% 60% / 0%;
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 0% / 10%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
  }
  .dark {
    --BLACK: 0 0% 90%;
    --BLACK2: 0 0% 70%;
    --GRAY: 0 0% 50%;
    --GRAY2: 0 0% 30%;
    --GRAY3: 0 0% 20%;
    --WHITE: 0 0% 10%;
    --WHITE2: 0 0% 20%;
    --WHITE3: 0 0% 30%;
    --VITROWN_BLUE: 212 97% 27%;
    --hover: 240 5% 15%;
    --nbackground: 0 0% 100%;
    --ntext: 0 0% 14%;
    --inputBg: 240 2% 96%;
    --inputPlaceholder: 0 0% 60%;
    /* Social Media Colors - stay the same */
    --TELEGRAM: 199 82% 55%;
    --WHATSAPP: 134 61% 50%;
    /* UI Element Colors - inverted for dark mode */
    --DARK_OVERLAY: 200 4% 85%;
    --DARK_OVERLAY_HOVER: 0 0% 80%;
    --MEDIUM_GRAY: 220 3% 42%;
    --LIGHT_SHADOW: 240 2% 7%;
    --TRANSPARENT_BLACK_10: 0 0% 100% / 10%;
    --TRANSPARENT_BLACK_30: 0 0% 100% / 30%;
    --TRANSPARENT_BLACK_50: 0 0% 100% / 50%;
    --GRADIENT_GRAY_FROM: 200 4% 48%;
    --GRADIENT_GRAY_TO: 200 4% 85%;
    --BEIGE: 60 26% 8%;
    --HIGHLIGHT_BLUE: 217 91% 60%;
    --HIGHLIGHT_BLUE_TRANSPARENT: 217 91% 60% / 0%;
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}



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

/* iOS Safari specific fixes for text colors */
@layer utilities {
  .text-BLACK {
    color: hsl(var(--BLACK)) !important;
    -webkit-text-fill-color: hsl(var(--BLACK)) !important;
  }
  .text-BLACK2 {
    color: hsl(var(--BLACK2)) !important;
    -webkit-text-fill-color: hsl(var(--BLACK2)) !important;
  }
  .text-GRAY {
    color: hsl(var(--GRAY)) !important;
    -webkit-text-fill-color: hsl(var(--GRAY)) !important;
  }
  .text-inputPlaceholder {
    color: hsl(var(--inputPlaceholder)) !important;
    -webkit-text-fill-color: hsl(var(--inputPlaceholder)) !important;
  }
  
  /* Persian font text utilities */
  .text-R8 {
    font-size: 8px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-R10 {
    font-size: 10px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-R12 {
    font-size: 12px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-R14 {
    font-size: 14px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-R16 {
    font-size: 16px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-R18 {
    font-size: 18px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-R20 {
    font-size: 20px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-R22 {
    font-size: 22px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-R24 {
    font-size: 24px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B8 {
    font-size: 8px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B10 {
    font-size: 10px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B12 {
    font-size: 12px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B14 {
    font-size: 14px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B16 {
    font-size: 16px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B18 {
    font-size: 18px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B20 {
    font-size: 20px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B22 {
    font-size: 22px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
  .text-B24 {
    font-size: 24px;
    font-family: "pinar", "Tahoma", "Arial", sans-serif;
    font-weight: bold;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
  }
}
