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

@layer base {
  :root {
    /* Warm appetizing palette */
    --background: 36 40% 97%;
    --foreground: 20 30% 12%;

    --card: 0 0% 100%;
    --card-foreground: 20 30% 12%;

    --popover: 0 0% 100%;
    --popover-foreground: 20 30% 12%;

    /* Terracotta */
    --primary: 14 75% 48%;
    --primary-foreground: 36 40% 98%;
    --primary-glow: 22 85% 60%;

    /* Warm cream */
    --secondary: 36 40% 92%;
    --secondary-foreground: 20 30% 18%;

    --muted: 35 30% 94%;
    --muted-foreground: 20 15% 40%;

    /* Amber accent */
    --accent: 38 90% 55%;
    --accent-foreground: 20 30% 12%;

    --destructive: 0 75% 50%;
    --destructive-foreground: 36 40% 98%;

    --border: 30 20% 88%;
    --input: 30 20% 88%;
    --ring: 14 75% 48%;

    --radius: 0.85rem;

    /* Gradients */
    --gradient-warm: linear-gradient(135deg, hsl(14 75% 48%), hsl(22 85% 60%) 60%, hsl(38 90% 60%));
    --gradient-subtle: linear-gradient(180deg, hsl(36 40% 97%), hsl(35 45% 93%));
    --gradient-glow: radial-gradient(60% 60% at 50% 0%, hsl(22 85% 60% / 0.18), transparent 70%);

    /* Shadows */
    --shadow-warm: 0 20px 50px -20px hsl(14 75% 40% / 0.35);
    --shadow-soft: 0 10px 30px -15px hsl(20 30% 20% / 0.18);
    --shadow-glow: 0 0 60px hsl(22 85% 60% / 0.35);

    /* Typography */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);

    --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: 20 25% 8%;
    --foreground: 36 40% 96%;
    --card: 20 25% 10%;
    --card-foreground: 36 40% 96%;
    --popover: 20 25% 10%;
    --popover-foreground: 36 40% 96%;
    --primary: 22 85% 58%;
    --primary-foreground: 20 30% 10%;
    --secondary: 20 20% 16%;
    --secondary-foreground: 36 40% 96%;
    --muted: 20 20% 14%;
    --muted-foreground: 30 15% 65%;
    --accent: 38 90% 55%;
    --accent-foreground: 20 30% 10%;
    --destructive: 0 65% 45%;
    --destructive-foreground: 36 40% 96%;
    --border: 20 20% 18%;
    --input: 20 20% 18%;
    --ring: 22 85% 58%;
  }
}

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

  html {
    scroll-behavior: smooth;
  }

  body {
    @apply bg-background text-foreground antialiased;
    font-family: var(--font-body);
    font-feature-settings: 'ss01', 'cv11';
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
  }
}

@layer utilities {
  .bg-gradient-warm {
    background: var(--gradient-warm);
  }
  .bg-gradient-subtle {
    background: var(--gradient-subtle);
  }
  .bg-gradient-glow {
    background: var(--gradient-glow);
  }
  .text-gradient-warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .shadow-warm {
    box-shadow: var(--shadow-warm);
  }
  .shadow-soft {
    box-shadow: var(--shadow-soft);
  }
  .shadow-glow {
    box-shadow: var(--shadow-glow);
  }
  .transition-smooth {
    transition: all 0.4s var(--transition-smooth);
  }
}
