@import './styles/accessibility.css';

@font-face {
  font-family: 'Yarden';
  src: url('/__l5e/assets-v1/95c1f827-1512-4499-b9e4-44e5744d2d07/yarden-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@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: 20 17% 96%;
    --foreground: 337 68% 25%;

    --card: 20 17% 96%;
    --card-foreground: 337 68% 25%;

    --popover: 20 17% 96%;
    --popover-foreground: 337 68% 25%;

    --primary: 6 100% 69%;
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 100%;
    --secondary-foreground: 337 68% 25%;

    --muted: 18 75% 95%;
    --muted-foreground: 337 68% 25%;

    --accent: 180 19% 58%;
    --accent-foreground: 0 0% 100%;

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

    --border: 337 68% 25% / 0.2;
    --input: 337 68% 25% / 0.2;
    --ring: 6 100% 69%;

    --radius: 1rem;

    /* Custom tokens - Srauka theme */
    --teal: 180 19% 58%;
    --teal-vibrant: 180 55% 40%;
    --rose-muted: 345 22% 60%;
    --peach: 18 75% 95%;
    --apricot: 24 100% 89%;
    --blush: 345 100% 94%;
    --cream: 20 17% 96%;
    --burgundy: 337 68% 25%;
    --coral: 6 100% 69%;
    --shadow-soft: 0 10px 40px -10px hsl(180 19% 58% / 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --sidebar-background: 20 17% 96%;
    --sidebar-foreground: 337 68% 25%;
    --sidebar-primary: 6 100% 69%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 18 75% 95%;
    --sidebar-accent-foreground: 337 68% 25%;
    --sidebar-border: 337 68% 25% / 0.2;
    --sidebar-ring: 6 100% 69%;
  }

  .dark {
    --background: 337 68% 15%;
    --foreground: 20 17% 96%;

    --card: 337 68% 20%;
    --card-foreground: 20 17% 96%;

    --popover: 337 68% 20%;
    --popover-foreground: 20 17% 96%;

    --primary: 6 100% 69%;
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 100%;
    --secondary-foreground: 337 68% 25%;

    --muted: 337 68% 25%;
    --muted-foreground: 20 17% 80%;

    --accent: 180 19% 58%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 62.8% 50.6%;
    --destructive-foreground: 20 17% 96%;

    --border: 20 17% 96% / 0.2;
    --input: 20 17% 96% / 0.2;
    --ring: 6 100% 69%;

    --sidebar-background: 337 68% 12%;
    --sidebar-foreground: 20 17% 96%;
    --sidebar-primary: 6 100% 69%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 337 68% 25%;
    --sidebar-accent-foreground: 20 17% 96%;
    --sidebar-border: 20 17% 96% / 0.2;
    --sidebar-ring: 6 100% 69%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  html {
    -webkit-text-size-adjust: 100%;
    width: 100%;
    direction: rtl;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
  }

  body,
  #root {
    width: 100%;
  }

  body {
    @apply bg-background text-foreground;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
  }
}

@layer utilities {
  .bg-cream {
    background-color: hsl(var(--cream));
  }
  
  .bg-peach {
    background-color: hsl(var(--peach));
  }
  
  .bg-apricot {
    background-color: hsl(var(--apricot));
  }
  
  .bg-blush {
    background-color: hsl(var(--blush));
  }
  
  .bg-teal {
    background-color: hsl(var(--teal));
  }
  
  .bg-rose-muted {
    background-color: hsl(var(--rose-muted));
  }
  
  .bg-burgundy {
    background-color: hsl(var(--burgundy));
  }
  
  .bg-coral {
    background-color: hsl(var(--coral));
  }
  
  .text-burgundy {
    color: hsl(var(--burgundy));
  }
  
  .text-coral {
    color: hsl(var(--coral));
  }
  
  .text-teal {
    color: hsl(var(--teal));
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
  }
  
  .animate-shake {
    animation: shake 0.4s ease-in-out;
  }
}