/* Custom styles for Sementes de Fé landing page */

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #f0f9f4 0%, #fdfcf8 50%, #f4efd3 100%);
}

/* Glass effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(54, 164, 101, 0.1);
}

/* Primary button styles */
.btn-primary {
  background: linear-gradient(135deg, #36a465 0%, #2a8352 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2a8352 0%, #226843 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(54, 164, 101, 0.3);
}

/* Text shadow */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Focus states */
:focus-visible {
  outline: 3px solid #36a465;
  outline-offset: 2px;
}

/* Animation delays */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

/* Price Loader Styles */
.price-loader-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  max-width: 120px;
}

.price-loader-container.price-loader-large {
  min-width: 100px;
  max-width: 200px;
}

.price-loader-bar {
  width: 100%;
  height: 2px;
  background-color: rgb(220 252 231); /* bg-green-100 */
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.price-loader-progress {
  height: 100%;
  background: linear-gradient(90deg, rgb(34 197 94), rgb(54 164 101)); /* from-green-500 to-primary-500 */
  border-radius: 1px;
  animation: price-loading 1.5s ease-in-out infinite;
  width: 100%;
}

.price-loader-text {
  font-size: 0.75em;
  color: rgb(34 197 94); /* text-green-500 */
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.price-loader-large .price-loader-text {
  font-size: 0.6em;
  color: rgb(34 197 94); /* text-green-500 */
}

.price-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

@keyframes price-loading {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Loading state styles */
[data-price].loading {
  opacity: 1;
}

[data-price].error {
  opacity: 1;
}

/* Responsive adjustments for price loader */
@media (max-width: 640px) {
  .price-loader-container {
    min-width: 50px;
    max-width: 80px;
  }
  
  .price-loader-container.price-loader-large {
    min-width: 80px;
    max-width: 150px;
  }
  
  .price-loader-text {
    font-size: 0.7em;
  }
  
  .price-loader-large .price-loader-text {
    font-size: 0.55em;
  }
}
