@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap')
layer(base);

@import 'tailwindcss';
@import 'tw-animate-css';

@custom-variant dark (&:is(.dark *));

@theme {
  --font-serif: Playfair Display, Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;

  --color-brand-black: #1a1a1a;
  --color-brand-charcoal: #2d2d2d;
  --color-brand-anthracite: #3d3d3d;
  --color-brand-gold: #c9a96e;
  --color-brand-gold-light: #d4b87a;
  --color-brand-gold-dark: #b8944f;
  --color-brand-champagne: #f5e6c8;
  --color-brand-sand: #f2ece4;
  --color-brand-cream: #faf8f5;
  --color-brand-white: #fefefe;

  --color-background: hsl(var(--background));
  --color-foreground: hsl(var(--foreground));

  --color-card: hsl(var(--card));
  --color-card-foreground: hsl(var(--card-foreground));

  --color-popover: hsl(var(--popover));
  --color-popover-foreground: hsl(var(--popover-foreground));

  --color-primary: hsl(var(--primary));
  --color-primary-foreground: hsl(var(--primary-foreground));

  --color-secondary: hsl(var(--secondary));
  --color-secondary-foreground: hsl(var(--secondary-foreground));

  --color-muted: hsl(var(--muted));
  --color-muted-foreground: hsl(var(--muted-foreground));

  --color-accent: hsl(var(--accent));
  --color-accent-foreground: hsl(var(--accent-foreground));

  --color-destructive: hsl(var(--destructive));
  --color-destructive-foreground: hsl(var(--destructive-foreground));

  --color-border: hsl(var(--border));
  --color-input: hsl(var(--input));
  --color-ring: hsl(var(--ring));

  --color-chart-1: hsl(var(--chart-1));
  --color-chart-2: hsl(var(--chart-2));
  --color-chart-3: hsl(var(--chart-3));
  --color-chart-4: hsl(var(--chart-4));
  --color-chart-5: hsl(var(--chart-5));

  --radius-lg: var(--radius);
  --radius-md: calc(var(--radius) - 2px);
  --radius-sm: calc(var(--radius) - 4px);

  --animate-accordion-down: accordion-down 0.2s ease-out;
  --animate-accordion-up: accordion-up 0.2s ease-out;
  --animate-slide-in-right: slide-in-right 0.3s ease-out;
  --animate-fade-in: fade-in 0.5s ease-out;
  --animate-fade-in-up: fade-in-up 0.6s ease-out;

  @keyframes accordion-down {
    from {
      height: 0;
    }
    to {
      height: var(--radix-accordion-content-height);
    }
  }
  @keyframes accordion-up {
    from {
      height: var(--radix-accordion-content-height);
    }
    to {
      height: 0;
    }
  }
  @keyframes slide-in-right {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes fade-in-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/*
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentcolor);
  }
}

@utility text-balance {
  text-wrap: balance;
}

@utility glass-effect {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
}

@utility gold-gradient {
  background: linear-gradient(135deg, #c9a96e 0%, #d4b87a 50%, #b8944f 100%);
}

@utility text-gold-gradient {
  background: linear-gradient(135deg, #c9a96e 0%, #d4b87a 50%, #b8944f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@utility admin-input {
  @apply w-full rounded-lg border border-slate-700/50 bg-slate-900/30 px-3 py-2.5 text-sm text-white placeholder:text-slate-500 focus:outline-hidden focus:ring-2 focus:ring-brand-gold/30;
}

@layer base {
  :root {
    --background: 40 20% 98%;
    --foreground: 0 0% 10%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 10%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 10%;
    --primary: 37 38% 61%;
    --primary-foreground: 0 0% 100%;
    --secondary: 30 20% 94%;
    --secondary-foreground: 0 0% 15%;
    --muted: 30 15% 93%;
    --muted-foreground: 0 0% 40%;
    --accent: 37 38% 61%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 30 15% 88%;
    --input: 30 15% 88%;
    --ring: 37 38% 61%;
    --radius: 0.5rem;
    --chart-1: 37 38% 61%;
    --chart-2: 30 20% 50%;
    --chart-3: 0 0% 24%;
    --chart-4: 30 15% 70%;
    --chart-5: 37 50% 75%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground font-sans antialiased;
    line-height: 1.5;
  }
  h1, h2, h3, h4, h5, h6 {
    @apply font-serif;
    line-height: 1.2;
  }
}
