* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Section */
.challenge-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    padding: 0px;
}

.challenge-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.8));
}

.challenge-hero .hero-content {
    position: relative;
    z-index: 10;
}

.challenge-hero .badge-container {
    animation: float 3s ease-in-out infinite;
}

.challenge-hero .challenge-badge {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 10px 30px rgba(252, 82, 0, 0.3));
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 150px auto 0 auto;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Challenge Header */
.challenge-header {
    padding: 4rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.challenge-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.challenge-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #a3a3a3;
    margin-bottom: 3rem;
}

.challenge-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #262626;
    border-radius: 0.75rem;
}

.icon {
    width: 2rem;
    height: 2rem;
    color: #fc5200;
    flex-shrink: 0;
}

.icon-small {
    width: 1.25rem;
    height: 1.25rem;
    color: #a3a3a3;
}

.detail-label {
    font-size: 0.875rem;
    color: #a3a3a3;
    text-align: left;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
}

.join-button {
    display: block;
    margin: 0 auto 2rem;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fafafa;
    background: linear-gradient(135deg, #fc5200, #ff6b2c);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(252, 82, 0, 0.3);
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(252, 82, 0, 0.4);
}

.participants {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #a3a3a3;
    font-size: 0.875rem;
}

/* Overview Section */
.overview {
    padding: 3rem 1rem;
    border-top: 1px solid #262626;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.overview-content {
    max-width: none;
}

.overview-text {
    color: #a3a3a3;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    text-align: left;
}

.subsection-title {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.overview-list {
    list-style: none;
    color: #a3a3a3;
    font-size: 1.125rem;
    text-align: left;
}

.overview-list li {
    margin-bottom: 0.5rem;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 1rem 1rem;
    border-top: 1px solid #262626;
}

.leaderboard-card {
    background-color: #FFFFFF;
    
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaderboard-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
}

.leaderboard-content::-webkit-scrollbar {
    width: 10px;
}

.leaderboard-content::-webkit-scrollbar-track {
    background: #FFFFFF;
    border-radius: 5px;
}

.leaderboard-content::-webkit-scrollbar-thumb {
    background: #FFFFFF;
    border-radius: 5px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #FFFFFF;
    border: 1px solid #a3a3a3;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.leaderboard-item:hover {
    background-color: rgba(20, 184, 166, 0.1);
}

.leaderboard-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #a3a3a3;
    min-width: 60px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(252, 82, 0, 0.1);
    color: #fc5200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 600;
    color: #000000;
    text-align: left;
}

.participant-city {
    font-size: 0.875rem;
    color: #000000;
    text-align: left;
}

.leaderboard-right {
    text-align: right;
}

.points {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fc5200;
}

.points-label {
    font-size: 0.75rem;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .challenge-title {
        font-size: 2rem;
    }

    .challenge-details {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 400px;
    }

    .challenge-badge {
        width: 150px;
        height: 150px;
    }

    .rank {
        min-width: 40px;
        font-size: 1.25rem;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .points {
        font-size: 1.25rem;
    }
}
