/* Leaderboard Table Styles */
.leaderboard-table-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #211c70 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Table Header */
.leaderboard-table thead {
    background: linear-gradient(135deg, #2575fc 0%, #0095D9 100%);
}

.leaderboard-table thead tr th {
    padding: 18px 15px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.leaderboard-table thead tr th:first-child {
    border-top-left-radius: 10px;
}

.leaderboard-table thead tr th:last-child {
    border-top-right-radius: 10px;
}

/* Table Body */
.leaderboard-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.leaderboard-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.leaderboard-table tbody tr:last-child {
    border-bottom: none;
}

.leaderboard-table tbody tr td {
    padding: 16px 15px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}

/* Top 3 Rankings Special Styling */
.leaderboard-table tbody tr.rank-1 {
    background: linear-gradient(90deg, #fff9e6 0%, #ffffff 100%);
}

.leaderboard-table tbody tr.rank-2 {
    background: linear-gradient(90deg, #f5f5f5 0%, #ffffff 100%);
}

.leaderboard-table tbody tr.rank-3 {
    background: linear-gradient(90deg, #fff4e6 0%, #ffffff 100%);
}

/* Rank Column */
.rank-col {
    width: 80px;
}

.rank-number {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
}

.rank-number.top-rank {
    font-size: 28px;
}

/* Name Column */
.name-col {
    width: 200px;
    text-align: left !important;
}

.name-col a {
    color: #2575fc;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.name-col a:hover {
    color: #6a11cb;
    text-decoration: underline;
}

/* Title Column */
.title-col {
    width: 150px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 16px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roty-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.capper-badge.cotm {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.capper-badge.coty {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
}

.default-capper-badge {
    background: linear-gradient(135deg, #a8a8a8 0%, #c0c0c0 100%);
    color: #fff;
}

.no-tier {
    color: #999;
    font-size: 16px;
}

/* Tier Column */
.tier-col {
    width: 100px;
}

.tier-badge-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Stars Column */
.stars-col {
    width: 120px;
}

.stars-display {
    font-size: 18px;
    display: inline-block;
}

/* Score Column */
.score-col {
    width: 100px;
}

.score-value {
    font-size: 18px;
    font-weight: 700;
    color: #2575fc;
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .leaderboard-table-wrapper {
        padding: 15px;
        overflow-x: auto;
    }
    
    .leaderboard-table {
        min-width: 700px;
    }
}

@media screen and (max-width: 768px) {
    .leaderboard-table-wrapper {
        padding: 10px;
        border-radius: 10px;
    }
    
    .leaderboard-table thead tr th {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .leaderboard-table tbody tr td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .rank-number {
        font-size: 16px;
    }
    
    .rank-number.top-rank {
        font-size: 22px;
    }
    
    .name-col a {
        font-size: 13px;
    }
    
    .tier-badge-img {
        width: 35px;
        height: 35px;
    }
    
    .stars-display {
        font-size: 14px;
    }
    
    .score-value {
        font-size: 14px;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 9px;
    }
}

@media screen and (max-width: 576px) {
    .leaderboard-table {
        min-width: 600px;
    }
    
    .rank-col {
        width: 60px;
    }
    
    .name-col {
        width: 150px;
    }
    
    .title-col {
        width: 100px;
    }
    
    .tier-col {
        width: 70px;
    }
    
    .stars-col {
        width: 90px;
    }
    
    .score-col {
        width: 80px;
    }
}
