/*
Theme Name: Catch n Collect
Theme URI: https://catchncollect.local
Author: Catch n Collect
Description: Custom theme generated from the Lovable Catch 'n Collect design system.
Version: 1.0.0
Text Domain: catchncollect
*/

:root {
  --background: 0 0% 98%;
  --foreground: 220 50% 20%;
  --card: 0 0% 100%;
  --card-foreground: 220 50% 20%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 50% 20%;
  --primary: 220 50% 25%;
  --primary-foreground: 0 0% 100%;
  --secondary: 40 95% 55%;
  --secondary-foreground: 220 50% 20%;
  --accent: 5 85% 58%;
  --accent-foreground: 0 0% 100%;
  --muted: 220 15% 92%;
  --muted-foreground: 220 20% 45%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 20% 85%;
  --input: 220 20% 85%;
  --ring: 40 95% 55%;
  --radius: 1rem;
  --brand-navy: 220 50% 25%;
  --brand-yellow: 40 95% 55%;
  --brand-red: 5 85% 58%;
  --gradient-primary: linear-gradient(135deg, hsl(220 50% 25%) 0%, hsl(220 60% 35%) 100%);
  --gradient-warm: linear-gradient(135deg, hsl(5 85% 58%) 0%, hsl(40 95% 55%) 100%);
  --gradient-hero: linear-gradient(135deg, hsl(220 50% 25%) 0%, hsl(5 85% 58%) 50%, hsl(40 95% 55%) 100%);
  --shadow-card: 0 4px 12px hsl(220 50% 25% / 0.1);
  --shadow-card-hover: 0 8px 24px hsl(220 50% 25% / 0.15);
  --shadow-glow-yellow: 0 0 20px hsl(40 95% 55% / 0.3);
  --shadow-glow-red: 0 0 20px hsl(5 85% 58% / 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --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: 220 50% 8%;
  --foreground: 0 0% 98%;
  --card: 220 45% 12%;
  --card-foreground: 0 0% 98%;
  --popover: 220 45% 12%;
  --popover-foreground: 0 0% 98%;
  --primary: 40 95% 55%;
  --primary-foreground: 220 50% 20%;
  --secondary: 220 40% 18%;
  --secondary-foreground: 0 0% 98%;
  --muted: 220 35% 15%;
  --muted-foreground: 220 15% 65%;
  --accent: 5 85% 58%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 62.8% 45%;
  --destructive-foreground: 0 0% 98%;
  --border: 220 30% 20%;
  --input: 220 30% 20%;
  --ring: 40 95% 55%;
  --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%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  margin: 0;
  min-height: 100%;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Nunito', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin-top: 0;
}

a {
  text-decoration: none;
}

.bg-pattern-dots {
  background-image: radial-gradient(circle, hsl(var(--muted-foreground) / 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.card-glow {
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.card-glow:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.sparkle-hover {
  position: relative;
  transition: transform 0.3s ease;
}

.sparkle-hover::after {
  content: '*';
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sparkle-hover:hover {
  transform: scale(1.05);
}

.sparkle-hover:hover::after {
  opacity: 1;
}

.mobile-menu-panel {
  position: fixed;
  inset: 0 auto 0 100%;
  width: 320px;
  max-width: 85%;
  background: hsl(var(--background));
  height: 100vh;
  box-shadow: -2px 0 20px hsl(var(--foreground) / 0.1);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  z-index: 60;
}

.mobile-menu-panel.is-open {
  transform: translateX(-100%);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 50;
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--primary));
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.gradient-hero {
  background-image: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 50%, hsl(var(--secondary)) 100%);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  color: hsl(var(--primary));
}

.section-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
