/* Ranking Page Styles */



/* Ranking Tabs */
.ranking-tabs-container {
    max-width: 100%;
    margin: 0 auto 3rem;
}

.ranking-table-card {
    max-width: 100%;
    margin: 0 auto;
}

.ranking-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(215, 157, 57, 0.1);

}

.ranking-nav-tabs .nav-item {
    margin: 0;
}

.ranking-nav-tabs .nav-link {
    color: #aea599;
    border: none;
    border-radius: 30px;
    font-family: var(--font-1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.ranking-nav-tabs .nav-link:hover {
    color: #fff8ed;
    background: rgba(255, 255, 255, 0.05);
}

.ranking-nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #d79d39 0%, #b8862d 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(215, 157, 57, 0.3);
}

/* Ranking Table */
.ranking-table-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(215, 157, 57, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Strict visibility control for tabs */
.tab-content>.tab-pane {
    display: none !important;
}

.tab-content>.tab-pane.active {
    display: block !important;
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    color: #e8d1a6;
}

.ranking-table th {
    background: transparent;
    border: none;
    color: #ffb751;
    font-family: var(--font-1);
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: left;
}

.ranking-table td {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    padding: 15px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ranking-table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-family: var(--font-1);
    font-weight: 700;
    color: #ffb751;
}

.ranking-table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.ranking-table tbody tr:hover td {
    background: rgba(215, 157, 57, 0.1);
    color: #fff;
    transform: scale(1.01);
}

/* Rank Medals */
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
}

.rank-1 .rank-number {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-2 .rank-number {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-3 .rank-number {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

/* Clan Crests */
.clan-crest {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Online Status */
.online-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.online-status.online {
    background: #28a745;
    box-shadow: 0 0 10px #28a745;
}

.online-status.offline {
    background: #6c757d;
}

/* Footer blockquote adjust */
.ranking-footer {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-align: right;
}

.rank-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.rank-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(215, 157, 57, 0.3);
    border-top-color: #d79d39;
    border-radius: 50%;
    animation: rank-spin 0.8s linear infinite;
}

@keyframes rank-spin {
    to {
        transform: rotate(360deg);
    }
}

.rank-important {
    color: #d79d39;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 991px) {
    .ranking-table-card {
        padding: 10px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}

.table-font-size {
    font-size: 0.95rem;
}

.ranking-table th,
.ranking-table td {
    vertical-align: middle;
}

.ranking-table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.025);
}

.ranking-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.04);
}

.ranking-table td:last-child {
    text-align: center;
}

.rank-link {
    color: #e8d1a6;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.rank-link:hover {
    color: #ffb751;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 183, 81, 0.4);
}

.ranking-table thead th {
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1;
    border-bottom: 1px solid rgba(255, 183, 81, 0.2);
    text-align: center;
}