/**
 * Brekky and Brews - Production Animation System
 *
 * Features:
 * - CSS View Transitions API for page navigation
 * - CSS Scroll-driven animations for reveals
 * - Enhanced micro-interactions
 * - Accessibility: respects prefers-reduced-motion
 *
 * Browser Support:
 * - View Transitions: Chrome 111+, Edge 111+, Safari 18+
 * - Scroll-driven: Chrome 115+, Edge 115+
 * - Fallback: Standard CSS animations for older browsers
 */

/* =========================================
   1. VIEW TRANSITIONS - Page Navigation
   ========================================= */

/* Enable automatic view transitions for same-origin navigation */
@view-transition {
  navigation: auto;
}

/* Default crossfade for root */
::view-transition-old(root) {
  animation: 0.2s ease-out both vt-fade-out;
}

::view-transition-new(root) {
  animation: 0.2s ease-out both vt-fade-in;
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

/* Named transition for hero section - slides */
.hero-search,
.hero {
  view-transition-name: hero;
}

::view-transition-old(hero) {
  animation: 0.25s ease-out both vt-slide-out-up;
}

::view-transition-new(hero) {
  animation: 0.3s ease-out 0.05s both vt-slide-in-up;
}

@keyframes vt-slide-out-up {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes vt-slide-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Named transition for main content area */
.listings-grid,
.grid--3 {
  view-transition-name: content-grid;
}

::view-transition-old(content-grid) {
  animation: 0.2s ease-out both vt-scale-out;
}

::view-transition-new(content-grid) {
  animation: 0.25s ease-out 0.1s both vt-scale-in;
}

@keyframes vt-scale-out {
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes vt-scale-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}

/* =========================================
   2. SCROLL-DRIVEN ANIMATIONS
   ========================================= */

/* Scroll progress indicator at top of page */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #f59e0b 100%);
  transform-origin: left;
  z-index: 9999;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress-bar {
    animation: scroll-progress linear;
    animation-timeline: scroll(root);
  }

  @keyframes scroll-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* Scroll-triggered reveal for listing cards */
@supports (animation-timeline: scroll()) {
  .listing-card {
    animation: scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }

  .feature-card {
    animation: scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }

  .featured-card {
    animation: scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }

  @keyframes scroll-reveal {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Parallax effect on hero backgrounds */
  .hero-search::before,
  .hero::before {
    animation: parallax-shift linear;
    animation-timeline: scroll();
    animation-range: 0vh 100vh;
  }

  @keyframes parallax-shift {
    to {
      transform: translateY(25%);
      opacity: 0.15;
    }
  }

  /* Stats section parallax */
  .hero-search__stats {
    animation: stats-parallax linear;
    animation-timeline: scroll();
    animation-range: 0vh 80vh;
  }

  @keyframes stats-parallax {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-10px);
    }
  }
}

/* Fallback for browsers without scroll-driven support */
@supports not (animation-timeline: scroll()) {
  .listing-card,
  .feature-card,
  .featured-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .listing-card.in-view,
  .feature-card.in-view,
  .featured-card.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   3. HERO ENTRANCE ANIMATIONS
   ========================================= */

/* Badge entrance with blur */
.hero-search__badge {
  animation: badge-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes badge-enter {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.9);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Title slide up with blur reveal */
.hero-search__title {
  animation: title-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes title-enter {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Subtitle fade in */
.hero-search__subtitle {
  animation: subtitle-enter 0.5s ease-out 0.35s both;
}

@keyframes subtitle-enter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* Search box scale entrance */
.hero-search .search-box {
  animation: searchbox-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

@keyframes searchbox-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Quick links staggered entrance */
.quick-links {
  animation: quicklinks-enter 0.5s ease-out 0.55s both;
}

@keyframes quicklinks-enter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats counter animation with stagger */
.hero-search__stat {
  animation: stat-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-search__stat:nth-child(1) { animation-delay: 0.6s; }
.hero-search__stat:nth-child(2) { animation-delay: 0.7s; }
.hero-search__stat:nth-child(3) { animation-delay: 0.8s; }

@keyframes stat-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* State selector entrance */
.state-selector {
  animation: state-enter 0.4s ease-out 0.85s both;
}

@keyframes state-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================================
   4. FEATURES SECTION ANIMATIONS
   ========================================= */

/* Features title */
.features__title {
  animation: features-title-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes features-title-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature cards staggered entrance */
.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }
.feature-card:nth-child(9) { animation-delay: 0.45s; }

/* Feature tiles (mobile) */
.feature-tile:nth-child(1) { animation-delay: 0.05s; }
.feature-tile:nth-child(2) { animation-delay: 0.08s; }
.feature-tile:nth-child(3) { animation-delay: 0.11s; }
.feature-tile:nth-child(4) { animation-delay: 0.14s; }
.feature-tile:nth-child(5) { animation-delay: 0.17s; }
.feature-tile:nth-child(6) { animation-delay: 0.2s; }
.feature-tile:nth-child(7) { animation-delay: 0.23s; }
.feature-tile:nth-child(8) { animation-delay: 0.26s; }
.feature-tile:nth-child(9) { animation-delay: 0.29s; }

/* =========================================
   5. ENHANCED MICRO-INTERACTIONS
   ========================================= */

/* Card hover with 3D lift effect */
.listing-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
  will-change: transform;
}

.listing-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(245, 158, 11, 0.1);
}

/* Image zoom on card hover */
.listing-card__image img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.listing-card:hover .listing-card__image img {
  transform: scale(1.08);
}

/* Feature card hover */
.feature-card {
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.12),
    0 0 40px rgba(102, 126, 234, 0.08);
}

/* Icon bounce on feature card hover */
.feature-card__icon {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.2) rotate(-5deg);
}

/* Feature tile active state (mobile) */
.feature-tile {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-tile:active {
  transform: scale(0.92);
}

/* Button hover effects */
.btn,
.search-box__btn,
.quiz-trigger-btn {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    background-color 0.2s ease;
}

.btn:hover,
.search-box__btn:hover,
.quiz-trigger-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active,
.search-box__btn:active,
.quiz-trigger-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}

/* Filter pill interactions */
.filter-pill {
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.2s ease,
    color 0.15s ease;
}

.filter-pill:hover {
  transform: translateY(-2px) scale(1.02);
}

.filter-pill:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}

/* Pill activation animation */
.filter-pill.active {
  animation: pill-activate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pill-activate {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Quick link hover */
.quick-link {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s ease,
    box-shadow 0.25s ease;
}

.quick-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* State pill hover */
.state-pill {
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.15s ease;
}

.state-pill:not(.state-pill--disabled):hover {
  transform: translateY(-2px) scale(1.05);
}

/* Search input focus glow */
.search-box__input {
  transition:
    border-color 0.2s ease,
    box-shadow 0.3s ease;
}

.search-box__input:focus {
  box-shadow:
    0 0 0 3px rgba(102, 126, 234, 0.2),
    0 4px 12px rgba(102, 126, 234, 0.1);
}

/* =========================================
   6. MODAL ANIMATIONS (Enhanced)
   ========================================= */

/* Feature modal bottom sheet */
.feature-modal {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-modal.active {
  transform: translateY(0);
}

/* Modal overlay with blur */
.feature-modal-overlay {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    backdrop-filter 0.3s ease;
  backdrop-filter: blur(0px);
}

.feature-modal-overlay.active {
  backdrop-filter: blur(4px);
}

/* Quiz modal entrance (enhanced) */
.quiz-modal {
  animation: quiz-modal-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes quiz-modal-enter {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Quiz option hover enhancement */
.quiz-option {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    background-color 0.2s ease;
}

.quiz-option:hover {
  transform: translateX(10px) scale(1.01);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Quiz close button spin on hover */
.quiz-close-btn {
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s ease,
    color 0.2s ease;
}

.quiz-close-btn:hover {
  transform: rotate(90deg) scale(1.1);
}

/* =========================================
   7. TOAST NOTIFICATIONS
   ========================================= */

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-exit {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

.toast-notification {
  animation: toast-enter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notification.exiting {
  animation: toast-exit 0.25s ease-out forwards;
}

/* =========================================
   8. LOADING STATES
   ========================================= */

/* Shimmer skeleton loader */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary, #44403c) 0%,
    var(--color-bg-tertiary, #57534e) 50%,
    var(--color-bg-secondary, #44403c) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md, 8px);
}

/* Skeleton Card - Mimics listing-card structure */
.skeleton-card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: skeleton-fade-in 0.3s ease-out;
}

@keyframes skeleton-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skeleton image placeholder */
.skeleton-image {
  aspect-ratio: 16/10;
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary, #44403c) 0%,
    var(--color-bg-tertiary, #57534e) 50%,
    var(--color-bg-secondary, #44403c) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 0;
}

/* Skeleton content area */
.skeleton-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Skeleton text lines */
.skeleton-text {
  height: 0.875rem;
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary, #44403c) 0%,
    var(--color-bg-tertiary, #57534e) 50%,
    var(--color-bg-secondary, #44403c) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm, 4px);
}

.skeleton-text--title {
  height: 1.25rem;
  width: 70%;
}

.skeleton-text--subtitle {
  height: 0.75rem;
  width: 50%;
}

.skeleton-text--rating {
  height: 1rem;
  width: 40%;
}

.skeleton-text--price {
  height: 0.875rem;
  width: 30%;
}

.skeleton-text--line {
  height: 0.75rem;
  width: 100%;
}

.skeleton-text--line-short {
  height: 0.75rem;
  width: 85%;
}

/* Skeleton button placeholder */
.skeleton-button {
  height: 2.5rem;
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary, #44403c) 0%,
    var(--color-bg-tertiary, #57534e) 50%,
    var(--color-bg-secondary, #44403c) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md, 8px);
  margin-top: 0.5rem;
}

/* Skeleton stagger for multiple cards */
.skeleton-card:nth-child(1) { animation-delay: 0s; }
.skeleton-card:nth-child(2) { animation-delay: 0.05s; }
.skeleton-card:nth-child(3) { animation-delay: 0.1s; }
.skeleton-card:nth-child(4) { animation-delay: 0.15s; }
.skeleton-card:nth-child(5) { animation-delay: 0.2s; }
.skeleton-card:nth-child(6) { animation-delay: 0.25s; }
.skeleton-card:nth-child(7) { animation-delay: 0.3s; }
.skeleton-card:nth-child(8) { animation-delay: 0.35s; }
.skeleton-card:nth-child(9) { animation-delay: 0.4s; }

/* Pulsing loader */
@keyframes pulse-load {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.loading-pulse {
  animation: pulse-load 1.2s ease-in-out infinite;
}

/* =========================================
   9. COMPARISON BAR ANIMATIONS
   ========================================= */

.comparison-bar {
  animation: comparison-bar-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes comparison-bar-enter {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* =========================================
   10. ACCESSIBILITY - 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;
  }

  /* Keep essential feedback but instant */
  .btn,
  .filter-pill,
  .quick-link,
  .listing-card,
  .feature-card,
  .quiz-option {
    transition-duration: 0.1s !important;
  }

  /* Disable scroll-driven animations */
  .listing-card,
  .feature-card,
  .featured-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable parallax */
  .hero-search::before,
  .hero::before {
    animation: none !important;
  }

  /* Keep modals functional */
  .feature-modal,
  .quiz-modal,
  .feature-modal-overlay {
    transition-duration: 0.1s !important;
  }

  /* Disable view transitions */
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* =========================================
   11. UTILITY CLASSES
   ========================================= */

/* Manual scroll animation trigger class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger utility for children */
.stagger-children > *:nth-child(1) { transition-delay: 0.03s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.06s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.09s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.12s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.18s; }

/* Hover lift utility */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Hover glow utility */
.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px var(--color-accent-glow, rgba(245, 158, 11, 0.25));
}

/* Spring transition utility - for Motion One to enhance */
.spring-hover {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================
   12. LOTTIE ANIMATIONS
   ========================================= */

/* Loading overlay with Lottie animation */
.lottie-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    backdrop-filter 0.3s ease;
}

.lottie-loader.active {
  opacity: 1;
  visibility: visible;
}

/* Lottie animation container in loader */
#lottie-loader-container {
  width: 200px;
  height: 200px;
  max-width: 80vw;
  max-height: 80vw;
  filter: drop-shadow(0 10px 30px rgba(245, 158, 11, 0.3));
}

/* Loading text */
.lottie-loader__text {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Hero logo Lottie animation */
.lottie-logo {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #lottie-loader-container {
    width: 150px;
    height: 150px;
  }

  .lottie-loader__text {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .lottie-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.35rem;
  }
}

/* Ensure Lottie SVG maintains quality */
.lottie-svg {
  width: 100%;
  height: 100%;
}

/* Lottie loader entrance animation */
.lottie-loader.active #lottie-loader-container {
  animation: loader-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes loader-pop-in {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lottie-loader.active .lottie-loader__text {
  animation: text-fade-in 0.4s ease-out 0.3s both, pulse-text 1.5s ease-in-out 0.7s infinite;
}

@keyframes text-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

/* Accessibility - Reduced motion for Lottie */
@media (prefers-reduced-motion: reduce) {
  .lottie-loader,
  .lottie-logo {
    animation: none !important;
  }

  #lottie-loader-container {
    animation: none !important;
  }

  .lottie-loader__text {
    animation: none !important;
    opacity: 1 !important;
  }

  /* Show static fallback if preferred */
  .lottie-loader.active #lottie-loader-container::before {
    content: '☕';
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}
