* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

nav a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3em;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Platform Stats */
.platform-stats {
    padding: 20px 40px;
}

.platform-stats h2 {
    margin-bottom: 20px;
    color: #333;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.platform-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.platform-icon {
    font-size: 2em;
}

.platform-name {
    font-weight: bold;
    color: #667eea;
}

.platform-count {
    margin-left: auto;
    color: #666;
}

/* Players Section */
.players-section {
    padding: 40px;
}

.players-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.players-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.players-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.players-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.players-table tbody tr:hover {
    background: #f8f9fa;
}

.player-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.player-link:hover {
    color: #764ba2;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.badge-java {
    background: #ff9800;
    color: white;
}

.badge-bedrock {
    background: #2196f3;
    color: white;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    background: #e0e0e0;
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    height: 100%;
    transition: width 0.3s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #333;
    font-size: 0.85em;
}

/* Text Colors */
.text-success {
    color: #4caf50;
    font-weight: bold;
}

.text-danger {
    color: #f44336;
    font-weight: bold;
}

.text-warning {
    color: #ff9800;
    font-weight: bold;
}

.text-info {
    color: #2196f3;
    font-weight: bold;
}

.text-muted {
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.pagination-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s;
}

.pagination-btn:hover {
    transform: scale(1.05);
}

.pagination-info {
    color: #666;
    font-weight: bold;
}

/* Leaderboards */
.leaderboards {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.leaderboard-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.leaderboard-item:hover {
    transform: translateX(10px);
}

.rank {
    font-size: 2em;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.player-stats {
    text-align: right;
}

.stat-primary {
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
}

.stat-secondary {
    color: #666;
    font-size: 0.85em;
}

/* Player Profile */
.player-profile {
    padding: 40px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-info h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.profile-dates {
    margin-top: 15px;
    color: #666;
}

.profile-dates p {
    margin: 5px 0;
}

.stats-section {
    margin-bottom: 40px;
}

.stats-section h3 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5em;
}

.win-rate-bar {
    display: flex;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.win-section {
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.loss-section {
    background: linear-gradient(90deg, #f44336 0%, #e91e63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.kd-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin: 20px 0;
}

.kd-value {
    font-size: 4em;
    font-weight: bold;
}

.kd-label {
    font-size: 1.2em;
    opacity: 0.9;
}

.kills-breakdown {
    margin-top: 30px;
}

.kills-breakdown h4 {
    margin-bottom: 15px;
    color: #333;
}

.breakdown-bar {
    display: flex;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.breakdown-mob {
    background: linear-gradient(90deg, #ff9800 0%, #ff5722 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.breakdown-hunter {
    background: linear-gradient(90deg, #2196f3 0%, #03a9f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.back-link {
    margin-top: 40px;
    text-align: center;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .leaderboards {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .table-container {
        font-size: 0.85em;
    }

    header h1 {
        font-size: 1.8em;
    }
}

