/* Enhanced Site-wide Transitions and Animations */

/* === GLOBAL SMOOTH TRANSITIONS === */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, 
              opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* === PAGE LOADING ANIMATION === */
.page-wrapper {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

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

/* === ENHANCED HOVER EFFECTS === */
.archive__item {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.archive__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.archive__item-teaser {
  transition: transform 0.4s ease;
}

.archive__item:hover .archive__item-teaser {
  transform: scale(1.05);
}

/* === NAVIGATION ENHANCEMENTS === */
.masthead__menu-item {
  transition: all 0.3s ease;
}

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

/* === BUTTON ENHANCEMENTS === */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* === SCROLL ANIMATIONS === */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === LOADING STATES === */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === RESPONSIVE ANIMATIONS === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === DARK THEME ENHANCEMENTS === */
[data-theme="dark"] .loading-skeleton {
  background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
  background-size: 200% 100%;
}
