/* ========================================
   ALOFOKE JEEPETA CHALLENGE - Styles
   ======================================== */

/* Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #E31C25 #141414;
}
*::-webkit-scrollbar {
    width: 8px;
}
*::-webkit-scrollbar-track {
    background: #141414;
}
*::-webkit-scrollbar-thumb {
    background: #E31C25;
    border-radius: 4px;
}

/* Card Eliminated State */
.card-eliminated {
    filter: grayscale(100%);
}
.card-eliminated .card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 59, 59, 0.15);
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
}

/* Participant Card Animation */
.participant-card {
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #E31C25 0%, #FF2D37 50%, #E31C25 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Noise Background - z-index bajo para no interferir */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Filter Button Active State */
.filter-btn.active {
    background: linear-gradient(135deg, #E31C25 0%, #FF2D37 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Video Container - Responsive 16:9 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: inherit;
    -webkit-overflow-scrolling: touch;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
    touch-action: auto;
}

/* Mobile optimizations for video */
@media (max-width: 768px) {
    .video-container {
        padding-bottom: 56.25%;
    }
}

/* Stat Card with Blur */
.stat-card {
    backdrop-filter: blur(10px);
    background: rgba(20, 20, 20, 0.8);
}

/* Banner Ad */
.banner-ad {
    background: linear-gradient(135deg, rgba(227, 28, 37, 0.1) 0%, rgba(255, 45, 55, 0.05) 100%);
    border: 1px dashed rgba(227, 28, 37, 0.3);
}

/* Search Input Focus */
.search-input:focus {
    box-shadow: 0 0 0 2px rgba(227, 28, 37, 0.5);
    border-color: rgba(227, 28, 37, 0.5);
}

/* Hide scrollbar for mobile filter */
.filter-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar {
    display: none;
}

/* Animations */
@keyframes slideUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(227, 28, 37, 0.3); }
    100% { box-shadow: 0 0 40px rgba(227, 28, 37, 0.6); }
}