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

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

@layer base {
  :root {
    /* Warm, festive palette */
    --background: 40 50% 98%;
    --foreground: 25 30% 15%;

    --card: 40 40% 97%;
    --card-foreground: 25 30% 15%;

    --popover: 40 40% 97%;
    --popover-foreground: 25 30% 15%;

    /* Coral/Orange - Primary festive color */
    --primary: 12 85% 60%;
    --primary-foreground: 0 0% 100%;

    /* Soft yellow cream */
    --secondary: 45 80% 92%;
    --secondary-foreground: 25 30% 20%;

    /* Muted warm tones */
    --muted: 40 30% 94%;
    --muted-foreground: 25 15% 45%;

    /* Teal accent - playful touch */
    --accent: 175 50% 45%;
    --accent-foreground: 0 0% 100%;

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

    --border: 40 30% 88%;
    --input: 40 30% 88%;
    --ring: 12 85% 60%;

    --radius: 1rem;

    /* Custom colors for Só Folia */
    --coral: 12 85% 60%;
    --coral-light: 12 85% 70%;
    --coral-dark: 12 85% 50%;
    --yellow: 45 95% 65%;
    --yellow-light: 45 95% 85%;
    --teal: 175 50% 45%;
    --teal-light: 175 50% 90%;
    --pink: 340 70% 65%;
    --pink-light: 340 70% 92%;
    --cream: 40 50% 98%;
    --warm-white: 40 40% 99%;
  }

  .dark {
    --background: 25 30% 10%;
    --foreground: 40 30% 95%;
    --card: 25 30% 12%;
    --card-foreground: 40 30% 95%;
    --popover: 25 30% 12%;
    --popover-foreground: 40 30% 95%;
    --primary: 12 85% 60%;
    --primary-foreground: 0 0% 100%;
    --secondary: 25 30% 18%;
    --secondary-foreground: 40 30% 95%;
    --muted: 25 20% 20%;
    --muted-foreground: 40 20% 65%;
    --accent: 175 50% 45%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 25 20% 20%;
    --input: 25 20% 20%;
    --ring: 12 85% 60%;
  }
}

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

  html {
    scroll-behavior: smooth;
  }

  body {
    @apply bg-background text-foreground;
    font-family: 'Poppins', sans-serif;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
  }
}

@layer utilities {
  .text-gradient {
    @apply bg-clip-text text-transparent;
    background-image: linear-gradient(135deg, hsl(var(--coral)) 0%, hsl(var(--pink)) 100%);
  }

  .bg-gradient-festive {
    background: linear-gradient(135deg, hsl(var(--coral-light)) 0%, hsl(var(--yellow-light)) 50%, hsl(var(--pink-light)) 100%);
  }

  .bg-gradient-hero {
    background: linear-gradient(180deg, hsl(var(--cream)) 0%, hsl(var(--yellow-light)) 100%);
  }

  .shadow-festive {
    box-shadow: 0 10px 40px -10px hsl(var(--coral) / 0.3);
  }

  .shadow-card {
    box-shadow: 0 4px 20px -4px hsl(25 30% 15% / 0.08);
  }
}

@layer components {
  .btn-whatsapp {
    @apply inline-flex items-center justify-center gap-3 px-8 py-4 text-lg font-semibold rounded-full transition-all duration-300;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 8px 30px -8px rgba(37, 211, 102, 0.5);
  }

  .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(37, 211, 102, 0.6);
  }

  .btn-whatsapp:active {
    transform: translateY(0);
  }

  .floating-whatsapp {
    @apply fixed bottom-6 right-6 z-50 flex items-center justify-center w-16 h-16 rounded-full transition-all duration-300;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 6px 24px -4px rgba(37, 211, 102, 0.5);
    animation: pulse-whatsapp 2s infinite;
  }

  .floating-whatsapp:hover {
    transform: scale(1.1);
  }

  @keyframes pulse-whatsapp {
    0%, 100% {
      box-shadow: 0 6px 24px -4px rgba(37, 211, 102, 0.5);
    }
    50% {
      box-shadow: 0 6px 36px -4px rgba(37, 211, 102, 0.7);
    }
  }
}
