/* 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 */
.clan-rank-section {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.clan-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;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 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);
}

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

.clan-avatar {
    width: 50px;
    height: 50px;
    overflow: hidden;
}

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

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

/* Clan Stats */
.rank-exp,
.rank-owner,
.rank-members {
    font-weight: 600;
    color: #ffffff;
}

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

/* Member Count */
.member-count {
    font-weight: 600;
    color: #ffffff;
}

.member-max {
    color: #64748b;
    font-size: 12px;
}

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

/* 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;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.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;
}

/* Responsive Design */
@media (max-width: 992px) {
    .clan-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;
    }

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

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

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

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

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

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