/**
 * BlogThree Animation Styles
 * Cyber punk themed animations and effects
 */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Floating Animations */
@keyframes float-slow {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1); 
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9); 
    }
}

@keyframes float-medium {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(-30px, 30px) scale(1.05); 
    }
    66% { 
        transform: translate(20px, -20px) scale(0.95); 
    }
}

@keyframes float-fast {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    25% { 
        transform: translate(20px, -30px) scale(1.1); 
    }
    50% { 
        transform: translate(-30px, -10px) scale(0.9); 
    }
    75% { 
        transform: translate(10px, 20px) scale(1.05); 
    }
}

.animate-float-slow { 
    animation: float-slow 20s ease-in-out infinite; 
}

.animate-float-medium { 
    animation: float-medium 15s ease-in-out infinite; 
}

.animate-float-fast { 
    animation: float-fast 10s ease-in-out infinite; 
}

/* Gradient Animations */
@keyframes gradient-x {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

@keyframes gradient-y {
    0%, 100% { 
        background-position: 50% 0%; 
    }
    50% { 
        background-position: 50% 100%; 
    }
}

.animate-gradient-x { 
    animation: gradient-x 15s ease infinite; 
    background-size: 200% 200%; 
}

.animate-gradient-y { 
    animation: gradient-y 10s ease infinite; 
    background-size: 200% 200%; 
}

/* Glow Animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15), 
                    0 8px 32px rgba(14, 165, 233, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2), 
                    0 8px 40px rgba(14, 165, 233, 0.15);
    }
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.95;
        filter: brightness(1.1);
    }
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-neon-pulse {
    animation: neon-pulse 3s ease-in-out infinite;
}

/* Scroll Indicator */
@keyframes scroll-indicator {
    0% { 
        transform: translateY(0); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100%); 
        opacity: 0; 
    }
}

.animate-scroll-indicator { 
    animation: scroll-indicator 1.5s ease-in-out infinite; 
}

/* Particle Effects */
@keyframes particle-float {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: particle-float 25s linear infinite;
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Cyber Grid Background */
.bg-cyber-grid {
    background-image: linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-grid {
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
}

/* Professional Shadow Effects */
.shadow-glow {
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.1);
}

.shadow-glow-sm {
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
}

.shadow-glow-lg {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
}

/* Professional Hover Shadows */
.hover\:shadow-glow:hover {
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.hover\:shadow-glow-sm:hover {
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.1);
}

.hover\:shadow-glow-lg:hover {
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.18);
}

/* Success/Error/Warning Glow */
.shadow-glow-success {
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.shadow-glow-error {
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.shadow-glow-warning {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

/* Transition Classes */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Duration Modifiers */
.duration-150 {
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

/* Delay Modifiers */
.delay-75 {
    transition-delay: 75ms;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-150 {
    transition-delay: 150ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Scale Animations */
@keyframes scale-up {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scale-down {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

.animate-scale-up {
    animation: scale-up 0.3s ease-out;
}

.animate-scale-down {
    animation: scale-down 0.3s ease-in;
}

/* Slide Animations */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-top {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-in-bottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.5s ease-out;
}

.animate-slide-in-top {
    animation: slide-in-top 0.5s ease-out;
}

.animate-slide-in-bottom {
    animation: slide-in-bottom 0.5s ease-out;
}

/* Utility Classes */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Aspect Ratios */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-4\/3 {
    aspect-ratio: 4 / 3;
}

/* Z-Index Utilities */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Carousel Specific Styles */
.trending-nfts-carousel {
    position: relative;
}

.trending-nfts-carousel .carousel-track {
    scroll-behavior: smooth;
}

.trending-nfts-carousel .carousel-item {
    scroll-snap-align: start;
}

/* NFT Card Hover Effects */
.trending-nfts-carousel .nft-card:hover .nft-image {
    transform: scale(1.05);
}

.trending-nfts-carousel .nft-card .hover-overlay {
    transition: opacity 0.3s ease;
}

/* Price Badge Animation */
@keyframes price-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.price-change-positive {
    animation: price-pulse 2s ease-in-out infinite;
}

/* Loading Skeleton for NFT Cards */
.nft-skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 37%, #1f2937 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* Carousel Navigation */
.carousel-nav-button {
    transition: all 0.3s ease;
}

.carousel-nav-button:not(:disabled):hover {
    transform: scale(1.1);
}

.carousel-nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

/* Dots Indicator */
.carousel-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    width: 2rem;
    border-radius: 0.25rem;
    background-color: #0ea5e9;
}

.carousel-dot:hover:not(.active) {
    background-color: rgba(14, 165, 233, 0.5);
}

/* NFT Rank Badge */
@keyframes rank-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
    }
}

.rank-badge {
    animation: rank-glow 2s ease-in-out infinite;
}

/* Reduced Motion Support */
@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;
    }
    
    .animate-float-slow,
    .animate-float-medium,
    .animate-float-fast,
    .animate-gradient-x,
    .animate-gradient-y,
    .animate-glow,
    .animate-neon-pulse,
    .animate-scroll-indicator,
    .animate-spin,
    .animate-bounce,
    .particle {
        animation: none !important;
    }
}

/* Dashboard Enhancement Animations */
.dashboard-fade-in {
    animation: dashboardFadeIn 0.8s ease-out;
}

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

/* Revenue Card Glow Effect */
.revenue-card-glow {
    position: relative;
    overflow: hidden;
}

.revenue-card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(16, 185, 129, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: revenueGlow 3s linear infinite;
}

@keyframes revenueGlow {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Activity Timeline Slide */
.activity-slide-in {
    animation: activitySlideIn 0.5s ease-out;
}

@keyframes activitySlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Quick Action Hover Pulse */
.quick-action-pulse {
    position: relative;
}

.quick-action-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    animation: quickActionPulse 2s infinite;
}

@keyframes quickActionPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}