/**
 * SportsPulse - Animation Styles
 * Smooth, performant animations
 * @version 1.0.0
 */

/* =============================================================================
   TRANSITIONS & EASING
   ============================================================================= */

:root {
  --ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
  --ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
}

/* =============================================================================
   NAVIGATION ANIMATIONS
   ============================================================================= */

/* Dropdown Fade In */
@keyframes dropFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav Link Underline */
.nav-link::after {
  transition: transform 0.25s var(--ease-out-cubic);
}

/* =============================================================================
   TICKER ANIMATION
   ============================================================================= */

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-content {
  animation: ticker-scroll 40s linear infinite;
}

/* Pause ticker on hover */
.ticker-bar:hover .ticker-content {
  animation-play-state: paused;
}

/* =============================================================================
   LIVE INDICATOR PULSE
   ============================================================================= */

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

.live-dot {
  animation: pulse-dot 1.2s ease infinite;
}

/* =============================================================================
   CARD HOVER EFFECTS
   ============================================================================= */

.art-card,
.hero-main-card,
.pod-card,
.writer-card,
.video-card {
  transition: all 0.3s var(--ease-out-cubic);
}

.art-card img,
.hero-main-card img,
.video-card img,
.sport-main-img img {
  transition: transform 0.5s var(--ease-out-expo);
}

.art-card:hover,
.pod-card:hover,
.writer-card:hover {
  transform: translateY(-4px);
}

.art-card:hover img,
.hero-main-card:hover img,
.video-card:hover img,
.sport-main-img:hover img {
  transform: scale(1.05);
}

/* =============================================================================
   BUTTON ANIMATIONS
   ============================================================================= */

.btn,
.btn-orange,
.btn-advertise,
.newsletter-input-group button {
  transition: all 0.2s var(--ease-out-cubic);
}

.btn-orange:hover,
.btn-advertise:hover {
  transform: translateY(-2px);
}

.play-btn,
.pod-play {
  transition: all 0.25s var(--ease-out-cubic);
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.pod-play:hover {
  transform: scale(1.1);
}

/* =============================================================================
   TRENDING LIST ANIMATION
   ============================================================================= */

.trending-list li {
  transition: transform 0.2s var(--ease-out-cubic);
}

.trending-list li:hover {
  transform: translateX(4px);
}

.sport-side-item {
  transition: transform 0.2s var(--ease-out-cubic);
}

.sport-side-item:hover {
  transform: translateX(4px);
}

/* =============================================================================
   SOCIAL ICONS ANIMATION
   ============================================================================= */

.social-icons a,
.top-bar__social .social-link {
  transition: all 0.2s var(--ease-out-cubic);
}

.social-icons a:hover {
  transform: translateY(-2px);
}

.top-bar__social .social-link:hover {
  color: var(--orange) !important;
}

/* =============================================================================
   BACK TO TOP BUTTON
   ============================================================================= */

#backToTop {
  transition: opacity 0.3s var(--ease-out-cubic), transform 0.2s var(--ease-out-cubic);
}

#backToTop:hover {
  transform: scale(1.1);
}

#backToTop:active {
  transform: scale(0.95);
}

/* =============================================================================
   LOADING ANIMATIONS (Optional)
   ============================================================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =============================================================================
   FOCUS ANIMATIONS (Accessibility)
   ============================================================================= */

/* Enhanced focus states */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  transition: outline-offset 0.1s ease;
}

/* Remove default outline for mouse users, keep for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* =============================================================================
   AOS FALLBACK ANIMATIONS
   ============================================================================= */

[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-cubic), transform 0.6s var(--ease-out-cubic);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

/* =============================================================================
   SMOOTH SCROLL
   ============================================================================= */

html {
  scroll-behavior: smooth;
}

/* Disable smooth scroll when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================================= */

/* Use GPU acceleration for transforms */
.art-card,
.hero-main-card,
.pod-card,
.writer-card,
.video-card,
.play-btn,
.trending-list li {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Remove will-change after animation completes */
.art-card:hover,
.pod-card:hover,
.writer-card:hover {
  will-change: auto;
}
