/* Modern, clean styling for the leaderboard */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --rank1-color: #ffd700; /* Gold */
    --rank2-color: #c0c0c0; /* Silver */
    --rank3-color: #cd7f32; /* Bronze */
    --rank4-color: #88d1f1; /* Light Blue */
    --rank5-color: #adff2f; /* Light Green */
    --bg-color: #1e2430;
    --text-color: #ffffff;
    --card-bg: #2c3446;
    --accent-color: #ff6b6b;
    --header-bg: #181f2a;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.last-updated {
    text-align: center;
    margin-bottom: 30px;
    color: #8a97a8;
    font-size: 0.85rem;
}

.leaderboard-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 30px;
}

.leaderboard {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.leaderboard thead {
    background-color: var(--header-bg);
}

.leaderboard th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: #8a97a8;
}

.leaderboard td {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard tbody tr:last-child td {
    border-bottom: none;
}

.leaderboard th:first-child,
.leaderboard td:first-child {
    padding-left: 20px;
    width: 80px;
}

.leaderboard th:last-child,
.leaderboard td:last-child {
    padding-right: 20px;
    width: 120px;
}

/* Rank Specific Styling */
.rank-1, .rank-2, .rank-3, .rank-4, .rank-5 {
    position: relative;
    transition: transform 0.2s ease;
}

.rank-1:hover, .rank-2:hover, .rank-3:hover, .rank-4:hover, .rank-5:hover {
    transform: translateX(5px);
}

.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), transparent);
    border-left: 4px solid var(--rank1-color);
}

.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent);
    border-left: 4px solid var(--rank2-color);
}

.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
    border-left: 4px solid var(--rank3-color);
}

.rank-4 {
    background: linear-gradient(90deg, rgba(136, 209, 241, 0.15), transparent);
    border-left: 4px solid var(--rank4-color);
}

.rank-5 {
    background: linear-gradient(90deg, rgba(173, 255, 47, 0.15), transparent);
    border-left: 4px solid var(--rank5-color);
}

/* Column styling */
.rank {
    font-weight: 700;
    font-size: 1.2rem;
}

.rank-1 .rank { color: var(--rank1-color); }
.rank-2 .rank { color: var(--rank2-color); }
.rank-3 .rank { color: var(--rank3-color); }
.rank-4 .rank { color: var(--rank4-color); }
.rank-5 .rank { color: var(--rank5-color); }

.player-id {
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wager {
    font-weight: 500;
}

.prize {
    font-weight: 700;
    color: #41e97e;
}

.fa-money-bag:before {
    content: "\f81c"; /* Font Awesome money bag icon */
    margin-right: 6px;
}

/* Info Box */
.info-box {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-box h2 {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.info-box p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .leaderboard th,
    .leaderboard td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .leaderboard th:first-child,
    .leaderboard td:first-child {
        padding-left: 15px;
        width: 60px;
    }
    
    .leaderboard th:last-child,
    .leaderboard td:last-child {
        padding-right: 15px;
    }
}
