/* Custom Animations and Styles */

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
  }
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

.duration-3000 {
  transition-duration: 3000ms;
}

/* Prose Styling for Readability */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 700;
  line-height: 1.25;
}

.prose h1 {
  font-size: 2.25em;
}

.prose h2 {
  font-size: 1.875em;
}

.prose h3 {
  font-size: 1.5em;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose strong {
  font-weight: 600;
  color: #ffd700;
}

.prose a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #ffed4e;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f2818;
}

::-webkit-scrollbar-thumb {
  background: #4f7942;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
details:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Details/Summary Animation */
details summary {
  transition: all 0.3s ease;
}

details[open] summary {
  margin-bottom: 1rem;
}

/* Text Balance and Pretty */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Additional Farm Theme Elements */
body {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(79, 121, 66, 0.05) 10px,
    rgba(79, 121, 66, 0.05) 20px
  );
}

/* Hover Effects for Cards */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Shadow Effects */
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Mobile Menu Transitions */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* Print Styles */
@media print {
  #ctaBanner,
  header,
  footer {
    display: none;
  }
}
