/**
 * Ticket Events Styles
 * CSS animations and styles for ticket events page
 */

/* Ripple Effect Animation */
@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Team Abbreviation Float Animation */
@keyframes floatTeamAbbrev {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Ripple Effect Styles */
.logo-ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: rippleEffect 0.6s ease-out;
    /* Default size - actual size calculated via transform */
    width: 100px;
    height: 100px;
    /* Position will be set via transform based on data attributes */
}

/* Ripple active state - uses CSS to read data attributes */
.ripple-active {
    /* Ripple effect is handled purely through CSS animation */
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 0.6s ease-out forwards;
}

/* Team Abbreviation Float */
.team-abbrev-float {
    animation: floatTeamAbbrev 2s ease-in-out infinite;
}

/* Card Animations */
.card-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-focused {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Logo Hover Effects */
.logo-hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* VS Separator Animation - simplified without dynamic delay */
.animate-float {
    animation: floatTeamAbbrev 3s ease-in-out infinite;
    /* Animation delay can be set via nth-child selectors if needed */
}

.animate-float:nth-child(1) { animation-delay: 0s; }
.animate-float:nth-child(2) { animation-delay: 0.2s; }
.animate-float:nth-child(3) { animation-delay: 0.4s; }
.animate-float:nth-child(4) { animation-delay: 0.6s; }
.animate-float:nth-child(5) { animation-delay: 0.8s; }
.animate-float:nth-child(6) { animation-delay: 1.0s; }
.animate-float:nth-child(7) { animation-delay: 1.2s; }
.animate-float:nth-child(8) { animation-delay: 1.4s; }
.animate-float:nth-child(9) { animation-delay: 1.6s; }
.animate-float:nth-child(10) { animation-delay: 1.8s; }

/* Screen Reader Only (Accessibility) - Scoped to event content only */
.event-card .sr-only,
.events-header .sr-only,
.container-fluid > .sr-only,
body > .sr-only[aria-live="polite"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Ensure navbar sr-only is NOT affected */
.navbar .sr-only,
.layout-navbar .sr-only,
#layout-navbar .sr-only {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: inherit !important;
}

/* 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;
    }
}

/* Manual Animation Disabling */
body.disable-animations *,
body.disable-animations *::before,
body.disable-animations *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

