/* Custom animations for HumanDailyChoices */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Fade out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.fade-out {
  animation: fadeOut 0.4s ease-in forwards;
}

/* Growth animation */
@keyframes grow {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.grow {
  animation: grow 0.5s ease-out forwards;
}

/* Shimmer/Twinkle effect */
@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.shimmer {
  animation: shimmer 2s ease-in-out infinite;
}

/* Price tag flip animation */
@keyframes flipTag {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

.flip-tag {
  animation: flipTag 1s ease-in-out;
}

/* Treasure reveal animation */
@keyframes reveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
  }
}

.reveal {
  animation: reveal 0.8s ease-out forwards;
}

/* Vintage film effect */
@keyframes filmGrain {
  0%, 100% {
    opacity: 0.02;
  }
  50% {
    opacity: 0.05;
  }
}

.film-grain {
  animation: filmGrain 0.3s steps(8) infinite;
}

/* Collection zoom animation */
@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.zoom-in {
  animation: zoomIn 0.3s ease-out forwards;
}

.zoom-out {
  animation: zoomIn 0.3s ease-out reverse;
}

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

/* Stagger animation delay utility */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

/* Active tab button style */
[data-tab-button].active {
  background-color: #B7410E;
  color: white;
  border-bottom-color: #B7410E !important;
}

[data-tab-button] {
  border-bottom: 2px solid transparent;
}

/* Active menu link style */
.menu-link-active {
  color: #8B4513;
  font-weight: 600;
}

/* Responsive adjustments for tabs */
@media (max-width: 640px) {
  [data-tab-button] {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  [data-tab-panel] {
    font-size: 0.9375rem;
  }
}

/* FAQ styles */
[data-faq-question].active svg {
  transform: rotate(180deg);
}

[data-faq-question] {
  user-select: none;
}

[data-faq-answer] {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}
