
/* Category Section Styling */
.category-selection {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Base Category Card */
.cat-card {
    position: relative;
    height: 250px;
    text-decoration: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* The Glassy Surface */
    backdrop-filter: blur(10px);
}

.cat-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
}

.cat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
    font-weight: 700;
}

.cat-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 10px 0;
    line-height: 1.2;
}

/* Specific Gradients & Glows */
.cat-blue {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.8) 0%, rgba(58, 123, 213, 0.8) 100%);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.cat-yellow {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.8) 0%, rgba(230, 126, 34, 0.8) 100%);
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.3);
}

.cat-green {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.8) 0%, rgba(39, 174, 96, 0.8) 100%);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.cat-orange {
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.8) 0%, rgba(254, 180, 123, 0.8) 100%);
    box-shadow: 0 10px 30px rgba(255, 126, 95, 0.3);
}

/* Hover Physics */
.cat-card:hover {
    transform: translateY(-12px) scale(1.03);
}

.cat-blue:hover { box-shadow: 0 20px 50px rgba(0, 210, 255, 0.6); }
.cat-yellow:hover { box-shadow: 0 20px 50px rgba(241, 196, 15, 0.6); }
.cat-green:hover { box-shadow: 0 20px 50px rgba(46, 204, 113, 0.6); }
.cat-orange:hover { box-shadow: 0 20px 50px rgba(255, 126, 95, 0.6); }

/* Shine Effect Animation */
.cat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.cat-card:hover::after {
    left: 100%;
}

/* Leaderboard Specific Styles */
.leaderboard-container {
    padding: 4rem 10%;
    max-width: 1000px;
    margin: 0 auto;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Base Leader Card (Glassmorphism) */
.leader-card {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    border-radius: 20px;
    background: rgb(255 255 255 / 13%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.leader-card:hover {
    transform: scale(1.02);
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 900;
    width: 50px;
}

.user-info {
    flex: 2;
}

.full-name {
    font-size: 1.1rem;
}

.username {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.badge-box {
    flex: 1;
    text-align: center;
}

.points {
    font-weight: 700;
    color: #ffcc00;
    font-size: 1.2rem;
}

/* Top 4 Circular Gradients and Glowing Shadows */
.rank-1 {
    background: radial-gradient(circle at top left, #00d2ff, #3a7bd5);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    border: none;
}

.rank-2 {
    background: radial-gradient(circle at top left, #f1c40f, #e67e22);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
    color: #2e005e;
    border: none;
}
.rank-2 .username, .rank-2 .points { color: #2e005e; opacity: 0.8; }

.rank-3 {
    background: radial-gradient(circle at top left, #bdc3c7, #2c3e50);
    box-shadow: 0 0 20px rgba(189, 195, 199, 0.4);
    border: none;
}

.rank-4 {
    background: radial-gradient(circle at top left, #d35400, #3e1d00);
    box-shadow: 0 0 20px rgba(211, 84, 0, 0.4);
    border: none;
}

/* Medal Badges */
.medal-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.diamond { background: #ffffff; color: #00d2ff; }
.gold { background: #2e005e; color: #ffcc00; }
.silver { background: #ffffff; color: #2c3e50; }
.bronze { background: #ffffff; color: #d35400; }

/* Responsive */
@media screen and (max-width: 600px) {

        .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 10000;
    }
    .menu-toggle .bar {
        display: block;
        width: 28px;
        height: 3px;
        margin: 6px auto;
        transition: all 0.3s ease-in-out;
        background: #ffcc00; /* Yellow bars for better visibility */
    }
    .leader-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 2rem;
    }
    .badge-box { margin: 10px 0; }
}