/* Base Theme Variables */
:root {
  --background: 35 50% 98%;
  --foreground: 30 20% 15%;
  --card: 35 40% 97%;
  --card-foreground: 30 20% 15%;
  --popover: 35 40% 97%;
  --popover-foreground: 30 20% 15%;
  --primary: 18 80% 52%;
  --primary-foreground: 0 0% 100%;
  --secondary: 100 45% 35%;
  --secondary-foreground: 0 0% 100%;
  --muted: 35 30% 92%;
  --muted-foreground: 30 15% 45%;
  --accent: 35 60% 90%;
  --accent-foreground: 30 20% 15%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 35 30% 85%;
  --input: 35 30% 90%;
  --ring: 18 80% 52%;
  --radius: 0.75rem;
  
  --euro-orange: #E85A24;
  --euro-orange-light: #F47B3F;
  --euro-orange-dark: #D14A18;
  --euro-green: #4A8B2C;
  --euro-green-light: #6BA84E;
  --euro-green-dark: #3A6E22;
  --euro-cream: #FDF8F3;
  --euro-beige: #F5E6D3;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--euro-cream);
  color: hsl(var(--foreground));
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Custom Components */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, var(--euro-orange) 0%, var(--euro-green) 100%);
}

.text-gradient-orange {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, var(--euro-orange) 0%, var(--euro-orange-light) 100%);
}

.bg-gradient-floral {
  background: linear-gradient(135deg, rgba(232, 90, 36, 0.05) 0%, rgba(74, 139, 44, 0.05) 100%);
}

.bg-gradient-warm {
  background: linear-gradient(180deg, #FDF8F3 0%, #F5E6D3 100%);
}

.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glass-dark {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--euro-orange);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--euro-orange-dark);
  box-shadow: 0 0 40px rgba(232, 90, 36, 0.3);
  transform: translateY(-4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--euro-green);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background-color: var(--euro-green-dark);
  box-shadow: 0 0 40px rgba(74, 139, 44, 0.3);
  transform: translateY(-4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 2px solid var(--euro-orange);
  color: var(--euro-orange);
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background-color: var(--euro-orange);
  color: white;
  transform: translateY(-4px);
}

.card-hover {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #FDF8F3;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--euro-orange) 0%, var(--euro-green) 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--euro-orange-dark) 0%, var(--euro-green-dark) 100%);
}

::selection {
  background: rgba(232, 90, 36, 0.3);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes slide-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-rotate-slow { animation: rotate-slow 20s linear infinite; }
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

.text-shadow-lg {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Reveal Animation Initial State */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Product Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 90%;
  max-width: 600px;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-open .modal-overlay,
.modal-open .modal-content {
  opacity: 1;
  visibility: visible;
}

.modal-open .modal-content {
  transform: translate(-50%, -50%);
}
