/* Absurd Hero Image Enhancements */

/* Ensure 1:1 aspect ratio is properly handled */
.hero-director-focused .hero-image,
.hero-player-focused .hero-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: auto;
    max-height: 500px;
}

/* For responsive design, maintain square aspect ratio */
@media (max-width: 1200px) {
    .hero-director-focused .hero-image,
    .hero-player-focused .hero-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-director-focused .hero-image,
    .hero-player-focused .hero-image {
        max-height: 350px;
    }
}

/* Subtle animation only on user interaction */
.hero-director-focused .hero-image-container,
.hero-player-focused .hero-image-container {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Float animation only on hover to reduce visual noise */
.hero-director-focused .hero-image-container:hover,
.hero-player-focused .hero-image-container:hover {
    transform: translateY(-5px);
}

/* Add a mystical glow effect on hover */
.hero-director-focused .hero-image-container:hover,
.hero-player-focused .hero-image-container:hover {
    filter: brightness(1.1) contrast(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                0 0 60px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.3);
}

/* Simplified overlay effects */
.hero-director-focused .hero-overlay {
    transition: opacity 0.3s ease;
}

.hero-director-focused .hero-overlay:hover {
    opacity: 0.9;
}

/* Simplified stat badge styling */
.hero-director-focused .stat-badge {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.2));
    border: 1px solid rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.5);
    transition: all 0.3s ease;
}

.hero-director-focused .stat-badge:hover {
    transform: scale(1.05);
    border-color: rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.8);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-director-focused .hero-image-container,
    .hero-player-focused .hero-image-container,
    .hero-director-focused .hero-overlay,
    .hero-director-focused .stat-badge {
        animation: none;
    }
    
    .hero-director-focused .hero-image-container:hover,
    .hero-player-focused .hero-image-container:hover {
        filter: brightness(1.05);
    }
}

/* Dark mode enhancements for absurd images */
[data-bs-theme="dark"] .hero-director-focused,
[data-bs-theme="dark"] .hero-player-focused {
    /* Add a subtle color shift for dark mode */
    .hero-image-container {
        filter: brightness(0.95) saturate(1.1);
    }
    
    .hero-image-container:hover {
        filter: brightness(1.05) saturate(1.2) contrast(1.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                    0 0 80px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.4);
    }
}

/* Optional: Add a "badge" to indicate this is an enhanced/special image */
.hero-director-focused .hero-image-container::after,
.hero-player-focused .hero-image-container::after {
    content: attr(data-sparkle);
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* Default sparkle if no data-sparkle attribute */
.hero-director-focused .hero-image-container:not([data-sparkle])::after,
.hero-player-focused .hero-image-container:not([data-sparkle])::after {
    content: "✨";
}

/* Sparkle rotation only on hover */
.hero-director-focused .hero-image-container:hover::after,
.hero-player-focused .hero-image-container:hover::after {
    animation: sparkleRotate 2s linear;
}

@keyframes sparkleRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

[data-bs-theme="dark"] .hero-director-focused .hero-image-container::after,
[data-bs-theme="dark"] .hero-player-focused .hero-image-container::after {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}