/* Events Page Styles */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.event-banner {
    position: relative;
    text-align: center;
    color: #ffffff;
    margin: 40px auto;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.6;
}

.event-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px;
}

.event-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.event-timer {
    font-size: 26px;
    font-weight: 700;
    margin: 25px 0;
    color: #fff9c4;
    text-shadow: 0 0 15px rgba(255, 234, 167, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: inline-block;
    min-width: 300px;
}

.join-btn, .join-form {
    margin-top: 20px;
}

.join-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    text-decoration: none;
    display: inline-block;
}

.join-btn:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.6);
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.join-form select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.joined-msg {
    font-size: 18px;
    color: #e8f4f8;
    margin-top: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: inline-block;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.leaderboard-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    margin: 12px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.rank-row:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.rank-row.highlight {
    background: linear-gradient(135deg, #fff9c4 0%, #fce4ec 100%);
    border: 2px solid #ff9800;
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
}

.rank-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rank-num {
    font-size: 20px;
    font-weight: 800;
    color: #667eea;
    min-width: 45px;
    text-align: center;
}

.rank-left .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #667eea;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rank-info .name {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.rank-score {
    font-size: 20px;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 14px;
    min-width: 120px;
    text-align: center;
}

.rank-score.rcoin {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #8b4513;
}

.rank-score.diamond {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: #01579b;
}

.rank-score.vote {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    color: #1b5e20;
}

