/* Hero Simple Component Animation Styles */

/* Base styles for hero-simple component */
.hero-simple {
    position: relative;
    transition: all 0.3s ease;
    will-change: transform, opacity;
    transform-origin: center;
    overflow: hidden;
}

/* Ensure smooth animations for all child elements */
.hero-simple * {
    will-change: transform, opacity, color, background-color, box-shadow;
}

/* Stat cards base styling */
.hero-simple .bg-white {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transform-origin: center;
}

/* Stat card shimmer effect */
.hero-simple .bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.hero-simple .bg-white:hover::before {
    left: 100%;
}

/* Numbers styling */
.hero-simple .text-3xl {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero-simple .text-3xl::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f87171);
    transform: translateX(-50%);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.hero-simple .bg-white:hover .text-3xl::after {
    width: 100%;
}

/* Labels styling */
.hero-simple .text-gray-700 {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* Grid enhancements */
.hero-simple .grid {
    gap: 2rem;
}

/* Loading state */
.hero-simple.hero-simple-loading {
    pointer-events: none;
}

.hero-simple.hero-simple-loading .bg-white {
    opacity: 0;
    transform: translateY(60px) scale(0.8) rotateX(15deg);
}

.hero-simple.hero-simple-loading .text-3xl {
    opacity: 0;
    transform: scale(0.5) rotateY(180deg);
}

.hero-simple.hero-simple-loading .text-gray-700 {
    opacity: 0;
    transform: translateY(20px);
}

/* Ready state - floating animation */
.hero-simple.hero-simple-ready .bg-white {
    animation: cardFloat 4s ease-in-out infinite;
}

.hero-simple.hero-simple-ready .bg-white:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-simple.hero-simple-ready .bg-white:nth-child(3) {
    animation-delay: 1s;
}

.hero-simple.hero-simple-ready .bg-white:nth-child(4) {
    animation-delay: 1.5s;
}

/* Floating animation keyframes */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Glow effect for numbers */
@keyframes numberGlow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
    }
    50% { 
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.6), 0 0 30px rgba(220, 38, 38, 0.4);
    }
}

.hero-simple.hero-simple-ready .text-3xl {
    animation: numberGlow 3s ease-in-out infinite;
}

/* Hover enhancements */
.hero-simple .bg-white:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
}

.hero-simple .bg-white:hover .text-3xl {
    color: #dc2626;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.hero-simple .bg-white:hover .text-gray-700 {
    color: #374151;
    transform: translateY(-5px);
}

/* Click effect */
.hero-simple .bg-white:active {
    transform: translateY(-10px) scale(0.95);
    transition: all 0.1s ease;
}

/* Ripple effect */
.hero-simple .bg-white::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.hero-simple .bg-white:hover::after {
    width: 200px;
    height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-simple .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-simple .bg-white {
        padding: 1.5rem;
    }
    
    .hero-simple .text-3xl {
        font-size: 2rem;
    }
    
    .hero-simple .text-gray-700 {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .hero-simple .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-simple .bg-white {
        padding: 1.25rem;
    }
    
    .hero-simple .text-3xl {
        font-size: 1.75rem;
    }
    
    .hero-simple .text-gray-700 {
        font-size: 0.8125rem;
    }
    
    /* Reduce hover effects on mobile */
    .hero-simple .bg-white:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-simple,
    .hero-simple * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-simple .bg-white::before,
    .hero-simple .bg-white::after,
    .hero-simple .text-3xl::after {
        display: none;
    }
    
    .hero-simple.hero-simple-ready .bg-white,
    .hero-simple.hero-simple-ready .text-3xl {
        animation: none;
    }
}

/* Focus states for accessibility */
.hero-simple .bg-white:focus-visible {
    outline: 3px solid #f87171;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-simple .bg-white {
        border: 2px solid currentColor;
    }
    
    .hero-simple .text-3xl {
        text-decoration: underline;
    }
    
    .hero-simple .bg-white:hover {
        background-color: #f3f4f6;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero-simple .bg-white {
        background-color: #1f2937;
        color: #ffffff;
    }
    
    .hero-simple .text-gray-700 {
        color: #d1d5db;
    }
    
    .hero-simple .bg-white:hover {
        background-color: #374151;
    }
}

/* Print styles */
@media print {
    .hero-simple {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .hero-simple::before,
    .hero-simple::after,
    .hero-simple *::before,
    .hero-simple *::after {
        display: none !important;
    }
    
    .hero-simple .bg-white {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        background: #fff !important;
    }
    
    .hero-simple .text-3xl {
        color: #dc2626 !important;
    }
    
    .hero-simple .text-gray-700 {
        color: #374151 !important;
    }
}

/* Performance optimizations */
.hero-simple .bg-white {
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-simple .text-3xl,
.hero-simple .text-gray-700 {
    backface-visibility: hidden;
}

/* Container enhancements */
.hero-simple .container {
    transition: all 0.3s ease;
    will-change: transform;
}

/* Text selection styling */
.hero-simple ::selection {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.hero-simple ::-moz-selection {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

/* Additional hover effects for better UX */
.hero-simple .bg-white:hover {
    cursor: pointer;
}

.hero-simple .bg-white:hover .text-3xl {
    animation: none;
    transform: scale(1.1);
}

/* Smooth scrolling behavior */
.hero-simple {
    scroll-behavior: smooth;
}

/* Loading spinner for delayed content */
.hero-simple.hero-simple-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 