/**
 * Movie Covers - Delight Enhancements
 * Adding joy, personality, and memorable moments to user interactions
 */

/* ==========================================================================
   CSS VARIABLES FOR DELIGHT
   ========================================================================== */
:root {
    --delight-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --delight-bounce: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --delight-ease: cubic-bezier(0.4, 0.0, 0.2, 1);
    --delight-pop: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --particle-gold: #FFD700;
    --particle-silver: #C0C0C0;
    --particle-red: #FF6B6B;
    --particle-blue: #4ECDC4;
    --particle-purple: #9B59B6;
    
    --glow-primary: 0 0 20px rgba(1, 180, 228, 0.5);
    --glow-success: 0 0 20px rgba(33, 208, 122, 0.5);
    --glow-warning: 0 0 20px rgba(255, 193, 7, 0.5);
}

/* ==========================================================================
   LOADING STATES & ANIMATIONS
   ========================================================================== */

/* Delightful Loading Spinner */
.delight-loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
    animation: delight-spin 1.2s infinite ease-in-out;
}

.delight-loader::before,
.delight-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--tmdb-blue), var(--tmdb-green), var(--tmdb-purple));
    animation: delight-pulse 1.5s infinite ease-in-out;
}

.delight-loader::after {
    animation-delay: -0.3s;
}

@keyframes delight-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes delight-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Movie Poster Loading Skeleton with Personality */
.movie-poster-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.movie-poster-skeleton::after {
    content: '🎬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.3;
    animation: skeleton-icon-bounce 2s infinite ease-in-out;
}

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

@keyframes skeleton-icon-bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Search Loading State */
.search-loading {
    position: relative;
}

.search-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--tmdb-blue);
    border-radius: 50%;
    border-top-color: transparent;
    animation: search-spin 0.8s linear infinite;
}

@keyframes search-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ==========================================================================
   MICRO-INTERACTIONS
   ========================================================================== */

/* Satisfying Button Click Effects */
.btn,
.movie-card,
.user-toggle,
.star-rating label {
    transition: all 0.3s var(--delight-ease);
    position: relative;
    overflow: hidden;
}

.btn:active,
.movie-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Ripple Effect for Buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Movie Card Hover */
.movie-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.movie-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(1, 180, 228, 0.1);
    transition: all 0.4s var(--delight-spring);
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
    transition: transform 0.4s var(--delight-ease);
}

/* Floating Action Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.movie-card:hover::after {
    content: '👁️';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    animation: float 2s ease-in-out infinite;
    opacity: 0;
    animation: fadeInFloat 0.3s ease forwards;
}

@keyframes fadeInFloat {
    to {
        opacity: 1;
        animation: float 2s ease-in-out infinite;
    }
}

/* Enhanced Star Rating with Celebration */
.star-rating label:hover {
    transform: scale(1.2) rotate(5deg);
    text-shadow: var(--glow-warning);
    animation: star-twinkle 0.6s ease;
}

@keyframes star-twinkle {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5) drop-shadow(0 0 8px gold); }
}

/* Rating Celebration Effect */
.rating-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    pointer-events: none;
    z-index: 9999;
    animation: rating-burst 1s ease-out forwards;
}

@keyframes rating-burst {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2) rotate(360deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   VISUAL ENHANCEMENTS
   ========================================================================== */

/* Particle System for Celebrations */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--particle-gold);
    border-radius: 50%;
    animation: particle-fall 3s linear forwards;
}

.particle:nth-child(2n) { background: var(--particle-silver); }
.particle:nth-child(3n) { background: var(--particle-red); }
.particle:nth-child(4n) { background: var(--particle-blue); }
.particle:nth-child(5n) { background: var(--particle-purple); }

@keyframes particle-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Enhanced Navigation with Glow */
.navbar-nav .nav-link:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    transition: all 0.3s var(--delight-ease);
}

/* Search Input Magic */
.search-input:focus,
.header-search-input:focus {
    box-shadow: 
        0 0 0 3px rgba(1, 180, 228, 0.2),
        var(--glow-primary);
    transform: scale(1.02);
    transition: all 0.3s var(--delight-ease);
}

/* Dropdown Magic */
.dropdown-menu {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    transition: all 0.2s var(--delight-spring);
}

.dropdown-menu.show {
    transform: scale(1) translateY(0);
    opacity: 1;
    animation: dropdown-magical-entrance 0.4s var(--delight-bounce);
}

@keyframes dropdown-magical-entrance {
    0% {
        transform: scale(0.8) translateY(-20px) rotate(-2deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) translateY(2px) rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0) rotate(0deg);
        opacity: 1;
    }
}

/* ==========================================================================
   USER FEEDBACK & SUCCESS STATES
   ========================================================================== */

/* Success Notification with Celebration */
.notification-success {
    background: linear-gradient(135deg, var(--tmdb-green), #2ECC71);
    color: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 
        0 10px 25px rgba(33, 208, 122, 0.3),
        var(--glow-success);
    animation: notification-success-entrance 0.5s var(--delight-bounce);
    position: relative;
    overflow: hidden;
}

.notification-success::before {
    content: '✨';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: celebration-sparkle 2s infinite;
}

@keyframes notification-success-entrance {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes celebration-sparkle {
    0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); }
    25% { transform: translateY(-50%) rotate(90deg) scale(1.2); }
    50% { transform: translateY(-50%) rotate(180deg) scale(0.8); }
    75% { transform: translateY(-50%) rotate(270deg) scale(1.1); }
}

/* Error State with Friendly Shake */
.notification-error {
    background: linear-gradient(135deg, #E74C3C, #FF6B6B);
    color: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    animation: friendly-shake 0.5s ease-in-out;
}

@keyframes friendly-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-1deg); }
    75% { transform: translateX(5px) rotate(1deg); }
}

/* Form Validation with Encouragement */
.form-control.error {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    animation: gentle-pulse 1s ease-in-out;
}

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

.form-control.success {
    border-color: var(--tmdb-green);
    box-shadow: 0 0 0 3px rgba(33, 208, 122, 0.2);
}

/* ==========================================================================
   EASTER EGGS & FUN ELEMENTS
   ========================================================================== */

/* Konami Code Easter Egg Styles */
.konami-activated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7);
    background-size: 400% 400%;
    animation: rainbow-background 4s ease infinite;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
}

.konami-activated h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: konami-text-dance 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes rainbow-background {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes konami-text-dance {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    50% { transform: rotate(2deg) scale(1.05); }
}

/* Double-click movie poster easter egg */
.movie-poster.easter-egg-active {
    animation: poster-flip 1s ease-in-out;
    cursor: pointer;
}

@keyframes poster-flip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(0deg); }
}

/* Long-press easter egg for mobile */
.long-press-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    opacity: 0;
    animation: hint-fade-in 0.3s ease forwards;
}

@keyframes hint-fade-in {
    to { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DELIGHT
   ========================================================================== */

@media (max-width: 768px) {
    .movie-card:hover {
        transform: translateY(-4px);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .star-rating label:hover {
        transform: scale(1.1);
    }
    
    /* Mobile-specific particle adjustments */
    .particle {
        width: 4px;
        height: 4px;
    }
    
    /* Reduce motion for battery life */
    .movie-poster-skeleton::after {
        animation-duration: 3s;
    }
}

/* ==========================================================================
   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;
    }
    
    .movie-card:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .star-rating label:hover {
        transform: none;
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* GPU acceleration for smooth animations */
.movie-card,
.btn,
.dropdown-menu,
.notification-success,
.notification-error {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize repaints */
.particle-container {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==========================================================================
   DARK MODE DELIGHTS
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .movie-poster-skeleton {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
    }
    
    .search-input:focus,
    .header-search-input:focus {
        box-shadow: 
            0 0 0 3px rgba(1, 180, 228, 0.3),
            0 0 20px rgba(1, 180, 228, 0.2);
    }
}

/* ==========================================================================
   ACHIEVEMENT SYSTEM
   ========================================================================== */

/* Achievement Badge Styles */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 4px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: badge-glow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.achievement-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: badge-shine 3s ease-in-out infinite;
}

.achievement-badge .icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

@keyframes badge-glow {
    0% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6); }
}

@keyframes badge-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Achievement Notification */
.achievement-unlock {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: achievement-popup 3s ease-out forwards;
}

.achievement-unlock h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.achievement-unlock p {
    margin: 0;
    opacity: 0.8;
}

@keyframes achievement-popup {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-5deg);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(0.95) rotate(-1deg);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.02) rotate(0.5deg);
    }
    80% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    95% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
        opacity: 0;
    }
}

/* Progress Bar with Movie Theming */
.movie-progress-bar {
    background: #2a2a2a;
    border-radius: 25px;
    height: 8px;
    overflow: hidden;
    position: relative;
    margin: 10px 0;
}

.movie-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6B6B);
    border-radius: 25px;
    position: relative;
    transition: width 0.8s var(--delight-ease);
    overflow: hidden;
}

.movie-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   ENHANCED EMPTY STATES
   ========================================================================== */

/* Creative Empty State Container */
.empty-state-creative {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.empty-state-creative::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(1, 180, 228, 0.05) 0%, transparent 70%);
    animation: empty-state-float 6s ease-in-out infinite;
}

@keyframes empty-state-float {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: empty-icon-bounce 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes empty-icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-10px) scale(1.05); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-5px) scale(1.02); }
}

.empty-state-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.empty-state-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.empty-state-cta {
    background: linear-gradient(135deg, #01B4E4, #21D07A);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s var(--delight-spring);
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(1, 180, 228, 0.3);
}

.empty-state-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(1, 180, 228, 0.4);
    color: white;
}

/* Themed Empty States */
.empty-watchlist {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.empty-reviews {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.empty-search {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* ==========================================================================
   PLAYFUL COPY ENHANCEMENTS
   ========================================================================== */

/* Animated Button Text */
.btn-playful {
    position: relative;
    overflow: hidden;
}

.btn-playful .btn-text {
    display: inline-block;
    transition: transform 0.3s var(--delight-ease);
}

.btn-playful:hover .btn-text {
    transform: scale(1.05);
}

.btn-playful::after {
    content: attr(data-hover);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s var(--delight-spring);
    white-space: nowrap;
}

.btn-playful:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn-playful:hover .btn-text {
    opacity: 0;
}

/* Quote Carousel for Loading States */
.loading-quotes {
    text-align: center;
    margin: 20px 0;
}

.quote-item {
    opacity: 0;
    animation: quote-fade 4s ease-in-out infinite;
    font-style: italic;
    color: #666;
}

.quote-item:nth-child(2) { animation-delay: 4s; }
.quote-item:nth-child(3) { animation-delay: 8s; }
.quote-item:nth-child(4) { animation-delay: 12s; }

@keyframes quote-fade {
    0%, 75%, 100% { opacity: 0; transform: translateY(10px); }
    25%, 50% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MOBILE DELIGHT ENHANCEMENTS
   ========================================================================== */

/* Pull-to-Refresh Animation */
.pull-to-refresh-indicator {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #01B4E4, #21D07A);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s var(--delight-spring);
    z-index: 1000;
}

.pull-to-refresh-indicator.active {
    top: 20px;
    animation: refresh-bounce 0.6s ease-out;
}

@keyframes refresh-bounce {
    0% { transform: translateX(-50%) scale(0.8); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Swipe Feedback */
.swipe-feedback {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.swipe-feedback.show {
    opacity: 1;
    animation: swipe-pulse 0.6s ease-out;
}

@keyframes swipe-pulse {
    0% { transform: translateY(-50%) scale(0.8); }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); }
}

/* ==========================================================================
   SEASONAL AND SPECIAL EVENT STYLES
   ========================================================================== */

/* Holiday Themes */
body.holiday-theme {
    position: relative;
}

body.holiday-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    animation: snow-fall 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes snow-fall {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Halloween Theme */
body.halloween-theme .movie-card:hover {
    box-shadow: 0 0 30px #ff6b35, 0 0 60px #ff6b35;
    animation: spooky-glow 2s ease-in-out infinite alternate;
}

@keyframes spooky-glow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(20deg); }
}

/* ==========================================================================
   PERFORMANCE-OPTIMIZED ANIMATIONS
   ========================================================================== */

/* Contain layouts for performance */
.movie-card,
.achievement-badge,
.notification,
.empty-state-creative {
    contain: layout style paint;
}

/* Optimize expensive animations */
@media (max-width: 768px) {
    .movie-card:hover {
        transform: translateY(-4px);
    }
    
    .achievement-badge {
        animation-duration: 4s;
    }
    
    .particle {
        animation-duration: 2s;
    }
}

/* Battery saving mode */
@media (prefers-reduced-motion: reduce) {
    .achievement-badge,
    .movie-progress-fill::after,
    .empty-state-creative::before {
        animation: none;
    }
}

/* ==========================================================================
   PRINT STYLES (Remove animations for printing)
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .achievement-badge,
    .empty-state-creative {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}