/* Leaderboard Styling */
.leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.leaderboard-header h2 {
    font-size: 32px;
    color: #667eea;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.leaderboard-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.leaderboard-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.leaderboard-table th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table th:first-child {
    width: 100px;
    text-align: center;
}

.leaderboard-table th:nth-child(2) {
    width: 250px;
}

.leaderboard-table th:nth-child(3) {
    width: 150px;
}

.leaderboard-table th:nth-child(4) {
    width: 100px;
    text-align: center;
}

.leaderboard-table th:nth-child(5) {
    width: 180px;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

.leaderboard-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.leaderboard-table tbody tr.podium {
    font-weight: 600;
}

.leaderboard-table tbody tr.rank-1 {
    background: linear-gradient(90deg, #fff9e6, #ffffff);
}

.leaderboard-table tbody tr.rank-2 {
    background: linear-gradient(90deg, #f5f5f5, #ffffff);
}

.leaderboard-table tbody tr.rank-3 {
    background: linear-gradient(90deg, #fff5e6, #ffffff);
}

.leaderboard-table td {
    padding: 16px;
    vertical-align: middle;
}

.rank-cell {
    text-align: center;
    font-weight: 700;
}

.rank-number {
    display: inline-block;
    font-size: 22px;
    color: #667eea;
}

.medal {
    display: block;
    font-size: 28px;
    margin-top: 5px;
}

.player-cell {
    font-size: 18px;
    color: #333;
}

.player-name {
    font-weight: 600;
}

.title-cell {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

.wl-cell {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.win-count {
    color: #4caf50;
}

.loss-count {
    color: #f44336;
}

.round-cell {
    font-size: 14px;
    color: #666;
}

.leaderboard-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-export,
.btn-print {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.btn-export {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.btn-export:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-print {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.btn-print:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leaderboard-container {
        padding: 20px 10px;
    }
    
    .leaderboard-header h2 {
        font-size: 24px;
    }
    
    .leaderboard-subtitle {
        font-size: 14px;
    }
    
    .leaderboard-table {
        font-size: 14px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 8px;
    }
    
    .rank-number {
        font-size: 18px;
    }
    
    .medal {
        font-size: 22px;
    }
    
    .player-cell {
        font-size: 16px;
    }
    
    .title-cell {
        font-size: 14px;
    }
    
    .round-cell {
        font-size: 12px;
    }
    
    .btn-export,
    .btn-print {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .leaderboard-footer {
        display: none;
    }
    
    .leaderboard-container {
        max-width: 100%;
    }
    
    .leaderboard-table tbody tr {
        page-break-inside: avoid;
    }
}
