/* 
 * New.hulp.nl - Animations and Interactions
 * Based on original Hulp.nl
 */

/* Transitions */
.top-bar__logo,
.top-bar__navigation-item a,
.category-tile__inner,
.button,
.footer__nav-link,
.footer__social-link {
  transition: all 0.3s ease;
}

/* Hover effects */
.top-bar__navigation-item a:hover .icon {
  stroke: var(--color-teal-100);
}

.category-tile__inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.button--primary:hover {
  background-color: var(--color-yellow-30);
  transform: translateY(-2px);
}

.button--secondary:hover {
  background-color: var(--color-teal-100);
  transform: translateY(-2px);
}

.button--outline:hover {
  background-color: var(--color-teal-80);
  color: #fff;
}

.footer__nav-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__social-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--color-yellow-50);
  outline-offset: 2px;
}

/* Loading animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: fadeIn 0.8s ease-out;
}

.category-tile {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.category-tile:nth-child(1) {
  animation-delay: 0.1s;
}

.category-tile:nth-child(2) {
  animation-delay: 0.2s;
}

.category-tile:nth-child(3) {
  animation-delay: 0.3s;
}

.step {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.step:nth-child(1) {
  animation-delay: 0.4s;
}

.step:nth-child(2) {
  animation-delay: 0.5s;
}

.step:nth-child(3) {
  animation-delay: 0.6s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .category-tile,
  .step {
    opacity: 1;
  }
}
