/* Additional Imports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');

/* Enhanced General Styles */
body {
    font-family: 'Rajdhani', sans-serif;
    background: #0f1923;
    color: #fff;
    overflow-x: hidden;
}

/* Cyberpunk Neon Text Effect */
.neon-text {
    color: #fff;
    text-shadow: 0 0 5px #0ff,
                 0 0 10px #0ff,
                 0 0 20px #0ff,
                 0 0 40px #0ff;
    font-family: 'Orbitron', sans-serif;
}

.cyber-glitch-1 {
    animation: glitch1 2s linear infinite;
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1593079831268-3381b0db4a77?w=1920') center/cover,
                url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920') center/cover;
    background-blend-mode: overlay, normal;
    min-height: 100vh;
    padding: 180px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 234, 0.1)),
        repeating-linear-gradient(
            45deg,
            rgba(15, 25, 35, 0.8) 0%,
            rgba(15, 25, 35, 0.8) 10%,
            transparent 10%,
            transparent 20%
        );
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(15, 25, 35, 0.8) 100%
    );
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-content {
    transform: translateZ(50px);
    padding: 40px;
    background: rgba(15, 25, 35, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    position: relative;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 #ff00ea;
    top: 0;
    color: #fff;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-2 3s infinite linear alternate-reverse;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Enhanced Timer Container */
.countdown-timer {
    position: relative;
    margin-top: 40px;
    padding: 20px;
    background: rgba(15, 25, 35, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    transform: translateZ(30px);
}

.countdown-timer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0ff, #ff00ea);
    z-index: -1;
    border-radius: 12px;
    filter: blur(10px);
    opacity: 0.5;
}

/* Additional Animations */
@keyframes noise-anim-2 {
    0% {
        clip: rect(76px, 9999px, 31px, 0);
    }
    5% {
        clip: rect(25px, 9999px, 99px, 0);
    }
    10% {
        clip: rect(53px, 9999px, 44px, 0);
    }
    15% {
        clip: rect(77px, 9999px, 4px, 0);
    }
    20% {
        clip: rect(94px, 9999px, 98px, 0);
    }
    25% {
        clip: rect(67px, 9999px, 43px, 0);
    }
    30% {
        clip: rect(25px, 9999px, 25px, 0);
    }
    35% {
        clip: rect(96px, 9999px, 58px, 0);
    }
    40% {
        clip: rect(61px, 9999px, 98px, 0);
    }
    45% {
        clip: rect(68px, 9999px, 92px, 0);
    }
    50% {
        clip: rect(56px, 9999px, 18px, 0);
    }
    55% {
        clip: rect(62px, 9999px, 11px, 0);
    }
    60% {
        clip: rect(64px, 9999px, 39px, 0);
    }
    65% {
        clip: rect(87px, 9999px, 71px, 0);
    }
    70% {
        clip: rect(32px, 9999px, 89px, 0);
    }
    75% {
        clip: rect(94px, 9999px, 46px, 0);
    }
    80% {
        clip: rect(62px, 9999px, 82px, 0);
    }
    85% {
        clip: rect(54px, 9999px, 47px, 0);
    }
    90% {
        clip: rect(28px, 9999px, 65px, 0);
    }
    95% {
        clip: rect(45px, 9999px, 31px, 0);
    }
    100% {
        clip: rect(86px, 9999px, 85px, 0);
    }
}

/* Enhanced Challenge Cards */
.challenge-card {
    background: rgba(15, 25, 35, 0.9);
    border: 1px solid #0ff;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.challenge-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #0ff3, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.challenge-card:hover::after {
    opacity: 1;
}

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    z-index: 2;
    border: 1px solid currentColor;
}

.active {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    border-color: #28a745;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.upcoming {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

/* Enhanced Leaderboard */
.leaderboard-container {
    background: rgba(15, 25, 35, 0.9);
    border: 1px solid #0ff;
    border-radius: 15px;
    padding: 30px;
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leaderboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ff, transparent);
    animation: scanline 2s linear infinite;
}

.leaderboard-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.challenge-title {
    font-family: 'Orbitron', sans-serif;
    color: #0ff;
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.challenge-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Leaderboard Table Styles */
.leaderboard-table-container {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    color: #fff;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.leaderboard-table thead th {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
}

.leaderboard-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.leaderboard-table td {
    padding: 15px;
    border: none;
    vertical-align: middle;
}

/* Rank Styles */
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.position-1 .rank-number {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border: none;
    color: #000;
}

.position-2 .rank-number {
    background: linear-gradient(45deg, #c0c0c0, #a0a0a0);
    border: none;
    color: #000;
}

.position-3 .rank-number {
    background: linear-gradient(45deg, #cd7f32, #a0522d);
    border: none;
    color: #000;
}

/* Athlete Info Styles */
.athlete-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.athlete-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.athlete-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status Badge Styles */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.verified {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

/* Trend Styles */
.trend-up {
    color: #28a745;
}

.trend-down {
    color: #dc3545;
}

.trend-neutral {
    color: #6c757d;
}

/* Animation for new entries */
@keyframes newEntry {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.leaderboard-table tbody tr {
    animation: newEntry 0.5s ease-out;
}

/* Animations */
@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes glitch1 {
    0% {
        transform: none;
        opacity: 1;
    }
    7% {
        transform: skew(-0.5deg, -0.9deg);
        opacity: 0.75;
    }
    10% {
        transform: none;
        opacity: 1;
    }
    27% {
        transform: none;
        opacity: 1;
    }
    30% {
        transform: skew(0.8deg, -0.1deg);
        opacity: 0.75;
    }
    35% {
        transform: none;
        opacity: 1;
    }
    52% {
        transform: none;
        opacity: 1;
    }
    55% {
        transform: skew(-1deg, 0.2deg);
        opacity: 0.75;
    }
    50% {
        transform: none;
        opacity: 1;
    }
    72% {
        transform: none;
        opacity: 1;
    }
    75% {
        transform: skew(0.4deg, 1deg);
        opacity: 0.75;
    }
    80% {
        transform: none;
        opacity: 1;
    }
    100% {
        transform: none;
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .timer {
        font-size: 2rem;
    }
} 