/* Ranking Page Styles */

.ranking-main {
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a1a0a 0%, #000000 50%, #0a1a0a 100%);
}

.ranking-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.ranking-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a4a1a 0%, #0a2a0a 100%);
    border: 3px solid #d4af37;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.page-title {
    color: #d4af37;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.title-icon {
    font-size: 48px;
}

.page-subtitle {
    color: #cccccc;
    font-size: 18px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: linear-gradient(135deg, #1a4a1a 0%, #0a2a0a 100%);
    border: 3px solid #d4af37;
    border-radius: 10px;
    padding: 15px 30px;
    color: #d4af37;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.tab-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000000;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.tab-icon {
    font-size: 20px;
}

/* Ranking Tab */
.ranking-tab {
    display: none;
}

.ranking-tab.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-title {
    color: #d4af37;
    font-size: 28px;
    font-weight: bold;
}

.tab-description {
    color: #cccccc;
    font-size: 14px;
    margin-top: 5px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-select,
.search-input {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    border-radius: 5px;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 14px;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.search-input {
    min-width: 250px;
}

/* Ranking Table */
.ranking-table-container {
    background: linear-gradient(135deg, #1a4a1a 0%, #0a2a0a 100%);
    border: 3px solid #d4af37;
    border-radius: 15px;
    padding: 20px;
    overflow-x: auto;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff;
}

.ranking-table thead {
    background: rgba(0, 0, 0, 0.5);
}

.ranking-table th {
    padding: 15px;
    text-align: left;
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.ranking-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 14px;
}

.ranking-table tbody tr {
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.01);
}

.ranking-table tbody tr:first-child {
    background: rgba(212, 175, 55, 0.2);
    font-weight: bold;
}

.ranking-table tbody tr:nth-child(2) {
    background: rgba(192, 192, 192, 0.1);
}

.ranking-table tbody tr:nth-child(3) {
    background: rgba(205, 127, 50, 0.1);
}

.rank-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    font-size: 14px;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000000;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a857 100%);
    color: #000000;
}

.class-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.class-badge.warrior {
    background: #ff4444;
    color: #ffffff;
}

.class-badge.ninja {
    background: #4444ff;
    color: #ffffff;
}

.class-badge.sura {
    background: #ff44ff;
    color: #ffffff;
}

.class-badge.shaman {
    background: #44ff44;
    color: #000000;
}

/* Top 3 Section */
.top-three-section {
    margin-top: 60px;
}

.section-title {
    color: #d4af37;
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.top-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.top-card {
    background: linear-gradient(135deg, #1a4a1a 0%, #0a2a0a 100%);
    border: 3px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.top-card.gold {
    border-color: #ffd700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.top-card.silver {
    border-color: #c0c0c0;
    box-shadow: 0 0 40px rgba(192, 192, 192, 0.5);
}

.top-card.bronze {
    border-color: #cd7f32;
    box-shadow: 0 0 40px rgba(205, 127, 50, 0.5);
}

.top-card:hover {
    transform: translateY(-10px);
}

.rank-number {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 15px;
}

.top-card.gold .rank-number {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.top-card.silver .rank-number {
    color: #c0c0c0;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.8);
}

.top-card.bronze .rank-number {
    color: #cd7f32;
    text-shadow: 0 0 20px rgba(205, 127, 50, 0.8);
}

.top-name {
    color: #d4af37;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.top-info {
    color: #cccccc;
    font-size: 14px;
    margin: 5px 0;
}

.top-level {
    color: #00ff00;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
}

/* Active Nav Link */
.nav-link.active {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .filter-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .top-three-grid {
        grid-template-columns: 1fr;
    }
}

