/*
 * ---------------------------------------------
 * Leaderboard
 * ---------------------------------------------
 */

 .leaderboard-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: 'Roboto Condensed', sans-serif;
    color: #e0f7fa;
    background: rgba(20, 30, 40, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    box-shadow: 0 0 16px rgba(125, 211, 252, 0.1);
}

.leaderboard-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #7dd3fc;
    margin-bottom: 2rem;
    text-shadow: 0 0 6px rgba(125, 211, 252, 0.4);
}

/* Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 22, 30, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.05);
}

.leaderboard-table thead {
    background-color: rgba(30, 50, 70, 0.9);
}

.leaderboard-table thead th {
    padding: 0.9rem 1.25rem;
    text-align: left;
    color: #7dd3fc;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(80, 201, 255, 0.05);
    border-bottom: 1px solid rgba(125, 211, 252, 0.15);
}

.leaderboard-table thead th a {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.leaderboard-table thead th a:hover {
    color: #a8eaff;
}

.leaderboard-table td {
    padding: 0.9rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: #e0f7fa;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(125, 211, 252, 0.05);
}

/* Player row */
.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #7dd3fc;
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #e5f9ff;
}

/* Rank column + medals */
.leaderboard-rank {
    font-weight: bold;
    color: #ffffff;
}

.leaderboard-rank .icon {
    margin-right: 0.3rem;
    font-size: 1.25rem;
}

.icon-gold {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.icon-silver {
    color: #c0c0c0;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.4);
}

.icon-bronze {
    color: #cd7f32;
    text-shadow: 0 0 4px rgba(205, 127, 50, 0.4);
}

/* Form */
.leaderboard-form {
    text-align: left;
    margin-bottom: 2rem;
}

.leaderboard-form label {
    font-weight: bold;
    margin: 0 0.5rem;
    font-size: 1rem;
    color: #abd9d7;
}

.leaderboard-form select {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    font-size: 1rem;
    border: 1px solid #4c6b8a;
    border-radius: 8px;
    background-color: rgba(15, 22, 30, 0.9);
    color: #e0f7fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
}

.leaderboard-form select:focus {
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.3);
}

/* Highlighted Player */
.leaderboard-highlight {
    background-color: rgba(125, 211, 252, 0.1) !important;
    font-weight: bold;
}
/* Center stat values */
.leaderboard-table td.text-center,
.leaderboard-table th.text-center {
    text-align: center;
}

/* Name links */
.leaderboard-name-link {
    color: #7dd3fc;
    text-decoration: underline;
    font-weight: 600;
}

.leaderboard-name-link:hover {
    color: #a8eaff;
}

/* Pagination */
.leaderboard-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
}

/* Arrows & Button Wrappers */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    background-color: rgba(30, 50, 70, 0.7);
    border-radius: 6px;
    color: #7dd3fc;
    transition: background-color 0.2s ease;
}

.pagination-btn:hover {
    background-color: rgba(80, 201, 255, 0.15);
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* SVG Icon Size */
.pagination-icon {
    width: 1rem;
    height: 1rem;
}

/* Number Buttons */
.pagination-page {
    padding: 0.4rem 0.75rem;
    background-color: rgba(30, 50, 70, 0.7);
    color: #e0f7fa;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pagination-page:hover {
    background-color: rgba(80, 201, 255, 0.15);
    color: #7dd3fc;
}

.pagination-page.current {
    background-color: #7dd3fc;
    color: #0b1119;
    font-weight: 700;
}
/* Responsive wrapper */
.leaderboard-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

/* Make table full width and non-wrapping */
.leaderboard-table {
    min-width: 768px; /* Ensures table fits without squishing */
    width: 100%;
}

/* Optional: Slight shadow on scrollable edge */
.leaderboard-table-wrapper::-webkit-scrollbar {
    height: 8px;
}
.leaderboard-table-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(125, 211, 252, 0.2);
    border-radius: 8px;
}
@media (max-width: 640px) {
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .leaderboard-avatar {
        width: 28px;
        height: 28px;
    }

    .leaderboard-title {
        font-size: 1.75rem;
    }

    .leaderboard-form select {
        font-size: 0.9rem;
        padding: 0.4rem 0.75rem;
    }
}
.leaderboard-table-wrapper::after {
    content: "← Swipe to scroll →";
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #96b0ad;
    margin-top: 0.5rem;
}

/* Prize Section */
.etn-prize-list p {
    font-size: 1.1rem;
    margin: 0.3rem 0;
}

.etn-note {
    margin-top: 1rem;
    color: #abd9d7;
}
