/* ==========================================
   RANKING PAGE - COMPLETE REDESIGN
   ========================================== */

/* Ranking Container */
.ranking-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Page Header */
.ranking-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.95) 0%, rgba(20, 30, 50, 0.98) 100%);
    border-radius: 24px;
    border: 3px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.ranking-page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(79, 195, 247, 0.6);
}

.ranking-page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Top 3 Podium - Horizontal Cards */
.ranking-podium-section {
    margin-bottom: 40px;
}

.podium-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.podium-card {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(10, 20, 40, 0.98) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 3px solid;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.podium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.podium-card:hover::before {
    left: 100%;
}

.podium-card:hover {
    transform: translateY(-5px);
}

/* 1st Place */
.podium-card.first {
    border-color: #ffd700;
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.6);
}

.podium-card.first .podium-card-rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a237e;
}

/* 2nd Place */
.podium-card.second {
    border-color: #c0c0c0;
    box-shadow: 0 6px 25px rgba(192, 192, 192, 0.5);
}

.podium-card.second .podium-card-rank {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #1a237e;
}

/* 3rd Place */
.podium-card.third {
    border-color: #cd7f32;
    box-shadow: 0 6px 25px rgba(205, 127, 50, 0.5);
}

.podium-card.third .podium-card-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    color: #1a237e;
}

.podium-card-rank {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.podium-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.podium-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

.podium-card-info {
    flex: 1;
}

.podium-card-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.podium-card-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 700;
}

.podium-card-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.podium-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.podium-stat-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: #4fc3f7;
}

.podium-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Ranking List - Modern Cards */
.ranking-list-section {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
    border-radius: 24px;
    padding: 30px;
    border: 3px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.ranking-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(79, 195, 247, 0.3);
}

.ranking-list-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.ranking-search {
    display: flex;
    gap: 10px;
}

.ranking-search-input {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(79, 195, 247, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    width: 250px;
}

.ranking-search-input:focus {
    outline: none;
    border-color: rgba(79, 195, 247, 0.6);
}

.ranking-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.8) 0%, rgba(10, 20, 40, 0.9) 100%);
    border-radius: 16px;
    border: 2px solid rgba(79, 195, 247, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-item:hover {
    transform: translateX(10px);
    border-color: rgba(79, 195, 247, 0.5);
    box-shadow: 0 6px 25px rgba(79, 195, 247, 0.3);
}

.ranking-item-position {
    font-size: 1.5rem;
    font-weight: 900;
    color: #4fc3f7;
    min-width: 50px;
    text-align: center;
}

.ranking-item-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

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

.ranking-item-info {
    flex: 1;
}

.ranking-item-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.ranking-item-level {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.ranking-item-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffd700;
}

.ranking-item-stats {
    display: flex;
    gap: 15px;
}

.ranking-item-stat {
    text-align: center;
}

.ranking-item-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #4fc3f7;
}

.ranking-item-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .podium-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-list-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .ranking-search-input {
        width: 100%;
    }
    
    .ranking-item {
        flex-wrap: wrap;
    }
    
    .ranking-item-stats {
        width: 100%;
        justify-content: space-around;
    }
}
