/* Modern Event Cards Enhancement */

/* Base scroll animation styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced vertical event cards */
.event-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.event-card:hover::before {
    opacity: 1;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .card-img-top {
    transform: scale(1.05);
}

.event-card .card-body {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.event-card .card-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-card .card-text {
    line-height: 1.6;
}

.event-card .card-footer {
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem;
}

.event-card .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.event-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Enhanced event type badge */
.event-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Enhanced race options card */
.race-options-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.race-options-header h6 {
    color: #374151;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.race-option-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.race-option-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.race-option-item:last-child {
    margin-bottom: 0;
}

.race-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.race-details {
    flex: 1;
}

.race-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.race-description {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
}

.race-price {
    font-weight: 700;
    color: #059669;
    font-size: 1rem;
}

/* Enhanced price display */
.price-display {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.price-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

/* Enhanced horizontal cards */
.event-card-horizontal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
}

.event-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.event-card-horizontal__image-wrapper img {
    transition: transform 0.3s ease;
}

.event-card-horizontal:hover .event-card-horizontal__image-wrapper img {
    transform: scale(1.03);
}

/* Enhanced stat items */
.event-card-horizontal__stat-item {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.event-card-horizontal__stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced progress bars with shimmer effect */
.event-card-horizontal__stat-item .progress {
    height: 10px;
    border-radius: 20px;
    background: linear-gradient(90deg, #e2e8f0, #f1f5f9);
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.event-card-horizontal__stat-item .progress-bar {
    border-radius: 20px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4);
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.event-card-horizontal__stat-item .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced filter pills */
.nav-pills .nav-link {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #6b7280;
}

.nav-pills .nav-link:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Page header enhancements */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 20px;
}

.page-header h1 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.page-header p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .event-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .event-card-horizontal:hover {
        transform: translateY(-2px);
    }
    
    .race-option-item:hover {
        transform: translateX(2px);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 0;
        transform: none;
        transition: opacity 0.3s ease;
    }
    
    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: none;
    }
    
    .event-card:hover,
    .event-card-horizontal:hover,
    .race-option-item:hover {
        transform: none;
    }
}