/* Custom styles for The Clean Eating Cookbook landing page */

/* Custom animations */
@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Custom animation durations */
.animate-spin {
  animation-duration: 20s;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar styling (optional) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FCFAF7;
}

::-webkit-scrollbar-thumb {
  background: #8B9D83;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7A8C72;
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid #8B9D83;
  outline-offset: 2px;
}

/* Custom hover effects */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Reduce motion for mobile performance */
  .animate-spin {
    animation-duration: 30s;
  }

  /* Adjust sticky CTA positioning */
  .fixed.bottom-0 {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Print styles */
@media print {
  .fixed,
  .sticky {
    position: static !important;
  }

  .hidden {
    display: block !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-\[#FCFAF7\] {
    background-color: white !important;
  }

  .text-gray-600 {
    color: black !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-spin,
  .transition-all,
  .transition-colors,
  .transition-transform {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Custom gradient backgrounds if needed */
.gradient-bg {
  background: linear-gradient(135deg, #8B9D83 0%, #7A8C72 100%);
}

/* Additional utility classes */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Ensure proper layering */
.z-\[60\] {
  z-index: 60;
}

.z-\[50\] {
  z-index: 50;
}

.z-\[20\] {
  z-index: 20;
}

.z-10 {
  z-index: 10;
}

.-z-10 {
  z-index: -10;
}
