/* Import Font Chakra Petch dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&display=swap');

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    border-left: none;
    border-right: none;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    border: none;
    outline: none;
}

/* Page Background */
body {
    background-color: #0c0026 !important;
    background-image: none !important;
    border: none;
    outline: none;
}

/* Remove borders from all elements */
header, nav, div, section, article, aside, footer {
    border: none;
    outline: none;
    border-left: none;
    border-right: none;
}

/* Reset CSS for this page */
.player-rank-section {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Player Rank Section */
.player-rank-section {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 50px;
    background-color: #0c0026;
    background-image: none;
    position: relative;
    display: block;
}

.player-rank-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Rank Header */
.rank-header {
    text-align: center;
    margin-bottom: 50px;
}

.rank-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #01c6f3;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 20px 0;
    text-shadow: 0 0 20px rgba(1, 198, 243, 0.5);
}

.rank-divider {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #01c6f3, transparent);
    margin: 0 auto 20px;
}

.rank-subtitle {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 18px;
    color: #ffffff;
    opacity: 0.8;
    margin: 0;
}

/* Rank Table Wrapper */
.rank-table-wrapper {
    background: linear-gradient(135deg, rgba(1, 198, 243, 0.05) 0%, rgba(18, 139, 209, 0.05) 100%);
    border: 1px solid rgba(1, 198, 243, 0.3);
    padding: 30px;
    overflow-x: auto;
}

/* Rank Table */
.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Chakra Petch', sans-serif;
}

.rank-table thead tr {
    background: linear-gradient(135deg, rgba(1, 198, 243, 0.2) 0%, rgba(18, 139, 209, 0.2) 100%);
    border-bottom: 2px solid rgba(1, 198, 243, 0.5);
}

.rank-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    color: #01c6f3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-table tbody tr {
    border-bottom: 1px solid rgba(1, 198, 243, 0.1);
    transition: all 0.3s ease;
}

.rank-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(1, 198, 243, 0.1) 0%, rgba(18, 139, 209, 0.1) 100%);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(1, 198, 243, 0.2);
}

.rank-table td {
    padding: 15px;
    color: #ffffff;
    font-size: 14px;
}

/* Rank Position */
.rank-position {
    font-weight: 700;
    font-size: 18px;
    color: #01c6f3;
    text-align: center;
}

.rank-position.top-1 {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-position.top-2 {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-position.top-3 {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

/* Player Info */
.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(1, 198, 243, 0.5);
    background: linear-gradient(135deg, rgba(1, 198, 243, 0.2) 0%, rgba(18, 139, 209, 0.2) 100%);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-name {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.player-info-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    font-size: 18px;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
}

.verified-badge.verified-user {
    color: #4285f4;
    text-shadow: 0 0 5px rgba(66, 133, 244, 0.5);
    border: 1px solid rgba(66, 133, 244, 0.3);
    background: rgba(66, 133, 244, 0.1);
}

.verified-badge.verified-streamer {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.verified-badge.verified-admin {
    color: #f44336;
    text-shadow: 0 0 5px rgba(244, 67, 54, 0.5);
    border: 1px solid rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Rank Stats */
.rank-level,
.rank-points,
.rank-kills,
.rank-deaths,
.rank-kdr {
    font-weight: 600;
    color: #ffffff;
}

.rank-points {
    color: #01c6f3;
    text-shadow: 0 0 10px rgba(1, 198, 243, 0.5);
}

.rank-kdr {
    color: #4CAF50;
}

/* Pagination */
.rank-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    background: linear-gradient(135deg, rgba(1, 198, 243, 0.1) 0%, rgba(18, 139, 209, 0.1) 100%);
    border: 1px solid rgba(1, 198, 243, 0.3);
    color: #ffffff;
    padding: 10px 20px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, rgba(1, 198, 243, 0.2) 0%, rgba(18, 139, 209, 0.2) 100%);
    border-color: rgba(1, 198, 243, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 198, 243, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #01c6f3 0%, #128bd1 100%);
    border-color: #01c6f3;
    box-shadow: 0 5px 15px rgba(1, 198, 243, 0.5);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-dots {
    color: #ffffff;
    font-size: 18px;
    margin: 0 5px;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #ffffff;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .player-rank-section {
        padding: 100px 15px 30px;
    }

    .rank-title {
        font-size: 36px;
    }

    .rank-table-wrapper {
        padding: 20px;
    }

    .rank-table th,
    .rank-table td {
        padding: 10px;
        font-size: 12px;
    }

    .player-avatar {
        width: 40px;
        height: 40px;
    }

    .player-name {
        font-size: 14px;
    }

    .pagination-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .rank-title {
        font-size: 28px;
    }

    .rank-table th,
    .rank-table td {
        padding: 8px;
        font-size: 11px;
    }

    .rank-table th:nth-child(4),
    .rank-table th:nth-child(5),
    .rank-table th:nth-child(6),
    .rank-table td:nth-child(4),
    .rank-table td:nth-child(5),
    .rank-table td:nth-child(6) {
        display: none;
    }

    .player-avatar {
        width: 35px;
        height: 35px;
    }

    .player-name {
        font-size: 12px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}
