﻿/* === Galaxy Candy Leaderboard Style === */
body {
    background: radial-gradient(circle at top, #060506 50%, #141e1b 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}


/* ⚠️ ADD THIS NEW SECTION */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("../images/bg.webp") center/cover no-repeat;
    z-index: -1;
}

/* Title */
h1 {
    font-size: 2.4rem;
    margin-bottom: 24px;
    text-align: center;
    text-shadow: 0 0 15px #30de82, 0 0 30px #003d16;
    color: #2fe988;
}

/* Container */
.leaderboard-container {
    width: 90%;
    max-width: 480px;
    background: #0f1c18;
    border: 2px solid #2fe988;
    border-radius: 12px;
    box-shadow: 0 0 20px #00ff8966, inset 0 0 20px #00ffd033;
    padding: 20px;
    backdrop-filter: blur(6px);
}

/* 🎖 Entries */
.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(28 67 65 / 65%);
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #2fe988;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .leaderboard-entry:hover {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgb(66 255 142 / 60%), 0 0 24px rgb(0 255 173 / 25%), inset 0 0 8px rgba(255, 255, 255, 0.1);
    }

/* Rank / Wallet / Score */
.rank {
    color: #2fe988;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 0 8px #2fe988;
}

.wallet {
    font-family: 'Courier New', monospace;
    color: #ffe6ff;
    font-size: 1rem;
    opacity: 0.9;
}

.score {
    font-weight: bold;
    color: rgb(47 233 136);
    text-shadow: 0 0 8px rgb(47 233 136);
}

/* 🏆 Top ranks special */
.top1 {
    color: gold;
    text-shadow: 0 0 10px gold;
}

.top2 {
    color: silver;
    text-shadow: 0 0 10px silver;
}

.top3 {
    color: #cd7f32;
    text-shadow: 0 0 10px #cd7f32;
}

/* Back Button */
.back-btn {
    margin-top: 24px;
    background: linear-gradient(135deg, #30de82, #3d7b4d, #003d16);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid rgb(47 233 136);
    border-radius: 10px;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: 0 0 12px rgb(47 233 136);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pinkGlow 5s ease infinite;
}

    .back-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgb(66 255 142 / 60%), 0 0 24px rgb(0 255 173 / 25%), inset 0 0 8px rgba(255, 255, 255, 0.1);
    }

/* Subtle animated shimmer */
@keyframes pinkGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.no-data {
    text-align: center;
    padding: 150px 20px;
}

#dailyCountdown {
    margin-top: 0px !important;
}

#countdownTimer {
    font-size: 25px;
}

#yesterdayTop1 {
    display: block;
    margin-top: 6px;
    color: #ff99ff;
    font-weight: 500;
    text-shadow: 0 0 15px #30de82, 0 0 30px #003d16;
}


/* 🌠 RESPONSIVE STYLES */
/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.3rem;
        margin-bottom: 18px;
        margin-top: 20px;
    }

    .leaderboard-container {
        width: 85%;
        padding: 14px;
    }

    #dailyNote, #dailyCountdown {
        width: 85%;
        padding: 14px;
        padding-bottom: 5px;
    }

    .leaderboard-entry {
        padding: 10px 12px;
    }

    .rank, .wallet, .score {
        font-size: 0.9rem;
    }

    .back-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Tablet (481px to 900px) */
@media (min-width: 481px) and (max-width: 900px) {
    h1 {
        font-size: 2rem;
        padding-top: 55px;
    }

    .leaderboard-container {
        width: 80%;
        max-width: 500px;
    }

    #dailyNote, #dailyCountdown {
        width: 85%;
        max-width: 500px;
    }

    .leaderboard-entry {
        padding: 12px 16px;
    }
}

/* Desktop (>900px) */
@media (min-width: 901px) {
    body {
        justify-content: center;
        padding-top: 0;
    }

    h1 {
        font-size: 2.6rem;
    }

    .leaderboard-container {
        max-width: 500px;
    }

    #dailyNote, #dailyCountdown {
        max-width: 530px;
    }

    .back-btn {
        margin-top: 30px;
        font-size: 17px;
    }
}
/* === 🌈 CONFETTI EFFECT === */
.confetti {
    position: fixed;
    top: -10px;
    width: 8px;
    height: 14px;
    opacity: 0.8;
    border-radius: 2px;
    animation: fall linear forwards;
    z-index: 9999;
    pointer-events: none;
}

/* Keyframes for falling motion */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0.6;
    }
}


/* === 🌌 Tabs Style === */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tab-btn {
    background: linear-gradient(135deg, #092321, #003d16);
    color: rgb(0 255 173 / 25%);
    font-weight: 600;
    border: 2px solid #3d7b4d;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: 0 0 12px #3d7b4d;
    transition: all 0.25s ease;
    font-size: 15px;
}

    .tab-btn:hover {
        transform: scale(1.05);
    }

    .tab-btn.active {
        background: linear-gradient(135deg, #30de82, #3d7b4d, #003d16);
        color: white;
        border: 2px solid rgb(47 233 136);
        box-shadow: 0 0 12px rgb(47 233 136);
    }


.coin-logo {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 5px;
}

.coin-logo {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-left: 1px;
    margin-top: -4px;
    filter: drop-shadow(0 0 3px #2fe988);
}

.daily-note {
    text-align: center;
    color: #ffd700;
    font-size: 12px;
    margin: 10px auto;
    padding: 8px 5px;
    border: 2px solid rgb(251 255 0 / 40%);
    box-shadow: 0 0 20px #f1ff2166, inset 0 0 20px #b5b00d33;
    border-radius: 10px;
    width: 90%;
    backdrop-filter: blur(3px);
}

.hidden {
    display: none;
}
.hourly-disabled {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
    overflow: hidden;
}

    /* Thin diagonal line text */
    .hourly-disabled::after {
        content: "COMING SOON";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -130%) rotate(0deg);
        font-size: 10px;
        font-weight: bold;
        color: white;
        padding: 4px 4px;
        background: #ff0000;
        letter-spacing: 1px;
        white-space: nowrap;
        opacity: 0.9;
        pointer-events: none;
    }


/* ===== Fixed Footer Menu Bar ===== */
#footerMenu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid #2fe988;
    z-index: 9999;
}

    #footerMenu .footer-item {
        color: #fff;
        text-align: center;
        text-decoration: none;
        font-size: 14px;
        font-family: 'Fredoka One', sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        opacity: 0.8;
        transition: 0.2s;
    }

        #footerMenu .footer-item:hover {
            opacity: 1;
            transform: translateY(-2px);
        }

        #footerMenu .footer-item span {
            font-size: 11px;
            letter-spacing: 0.5px;
        }

/* Mobile adjustments */
@media (max-width: 600px) {
    #footerMenu {
        height: 55px;
    }

        #footerMenu .footer-item {
            font-size: 12px;
        }

            #footerMenu .footer-item span {
                font-size: 10px;
            }
}
