@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 {
    /* SilkFlorae Luxury Design System */
    --background: 0 0% 100%;
    --foreground: 0 0% 15%;

    --card: 0 0% 100%;
    --card-foreground: 0 0% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 15%;

    /* Luxury Brand Colors */
    --primary: 350 70% 85%; /* Blush Pink */
    --primary-foreground: 0 0% 15%;
    --primary-glow: 350 85% 90%;

    --secondary: 45 95% 85%; /* Champagne Gold */
    --secondary-foreground: 0 0% 15%;

    --luxury-gold: 45 85% 70%;
    --luxury-gold-light: 45 95% 85%;
    --luxury-rose: 340 50% 70%;
    --luxury-rose-light: 340 70% 85%;

    --muted: 0 0% 98%;
    --muted-foreground: 0 0% 45%;

    --accent: 350 70% 85%;
    --accent-foreground: 0 0% 15%;

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

    --border: 0 0% 92%;
    --input: 0 0% 92%;
    --ring: 350 70% 85%;

    --radius: 0.75rem;

    /* Luxury Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(350 70% 85%), hsl(350 85% 90%));
    --gradient-gold: linear-gradient(135deg, hsl(45 85% 70%), hsl(45 95% 85%));
    --gradient-rose: linear-gradient(135deg, hsl(340 50% 70%), hsl(340 70% 85%));

    /* Elegant Shadows */
    --shadow-luxury: 0 8px 32px hsl(350 70% 85% / 0.15);
    --shadow-gold: 0 4px 24px hsl(45 85% 70% / 0.2);
    --shadow-soft: 0 2px 16px hsl(0 0% 0% / 0.05);

    /* Animation Variables */
    --transition-luxury: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Nature Fund Colors */
    --nature-green: 125 45% 20%;        /* #1e4620 - Dark forest green */
    --nature-green-light: 125 35% 26%; /* #2d5a2e - Medium forest green */
    --nature-green-pale: 120 40% 96%;  /* #f0f7f0 - Pale green background */

    --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: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

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

  body {
    @apply bg-background text-foreground antialiased;
    /* Font loaded via /public/fonts/fonts.css */
  }

  h1, h2, h3, h4, h5, h6 {
    /* Font loaded via /public/fonts/fonts.css */
  }

  html {
    scroll-behavior: smooth;
  }
}

@layer components {
  /* Luxury Animation Classes */
  .luxury-hover {
    @apply transition-all duration-300 ease-out hover:scale-105 hover:shadow-lg;
  }

  .fade-in-up {
    @apply opacity-0 translate-y-4 transition-all duration-700 ease-out;
  }

  .fade-in-up.animate {
    @apply opacity-100 translate-y-0;
  }

  /* Navbar Link Hover */
  .nav-link-hover {
    @apply transition-colors duration-200;
  }

  .nav-link-hover:hover {
    color: hsl(350, 70%, 85%) !important;
  }
}

@layer utilities {
  /* Custom Scrollbar */
  .custom-scrollbar::-webkit-scrollbar {
    width: 8px;
  }

  .custom-scrollbar::-webkit-scrollbar-track {
    @apply bg-muted;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb {
    @apply bg-primary rounded-full;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    @apply bg-primary/80;
  }
}

/* Extra Mobile Optimizations */
@media (max-width: 374px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  button {
    font-size: 0.875rem !important;
  }
}

/* Prevent text overflow globally */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}