/* ========================================
   🏆 RANKING PAGE ENHANCED STYLES
======================================== */

/* Statistics Cards with 3D Effect */
.summary-card {
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Ranking Tab Buttons with 3D Effect */
.ranking-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.ranking-tab-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.15),
        -8px -8px 16px rgba(255, 255, 255, 0.7),
        inset 0 0 0 rgba(255, 255, 255, 0);
}

.ranking-tab-btn:hover {
    transform: translateY(-5px);
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.2),
        -12px -12px 24px rgba(255, 255, 255, 0.8),
        inset 0 0 0 rgba(255, 255, 255, 0);
}

.ranking-tab-btn:active {
    transform: translateY(-2px);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.15),
        -4px -4px 8px rgba(255, 255, 255, 0.7),
        inset 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.tab-icon {
    font-size: 56px;
    line-height: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.ranking-tab-btn:hover .tab-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
}

.tab-content {
    flex: 1;
    text-align: left;
}

.tab-title {
    font-size: 1.3em;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.tab-subtitle {
    font-size: 0.9em;
    color: #7f8c8d;
    font-weight: 600;
}

/* Active State - Top 10 */
.ranking-tab-btn.ranking-tab-top.active {
    background: linear-gradient(145deg, #11998e, #0d8578);
    box-shadow:
        8px 8px 20px rgba(17, 153, 142, 0.4),
        -4px -4px 12px rgba(56, 239, 125, 0.2),
        inset -2px -2px 8px rgba(255, 255, 255, 0.2),
        inset 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.ranking-tab-btn.ranking-tab-top.active .tab-title,
.ranking-tab-btn.ranking-tab-top.active .tab-subtitle {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ranking-tab-btn.ranking-tab-top.active .tab-icon {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

/* Active State - Bottom 10 */
.ranking-tab-btn.ranking-tab-bottom.active {
    background: linear-gradient(145deg, #ee0979, #d1076b);
    box-shadow:
        8px 8px 20px rgba(238, 9, 121, 0.4),
        -4px -4px 12px rgba(255, 106, 0, 0.2),
        inset -2px -2px 8px rgba(255, 255, 255, 0.2),
        inset 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.ranking-tab-btn.ranking-tab-bottom.active .tab-title,
.ranking-tab-btn.ranking-tab-bottom.active .tab-subtitle {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ranking Cards Enhanced */
.ranking-cards {
    display: grid;
    gap: 25px;
}

.ranking-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-left: 8px solid transparent;
}

.ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ranking-card:hover::before {
    opacity: 1;
}

.ranking-card.top {
    border-left-color: #11998e;
}

.ranking-card.bottom {
    border-left-color: #ee0979;
}

.ranking-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Rank Badge 3D Effect */
.rank-badge {
    font-size: 36px;
    font-weight: 900;
    min-width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.15),
        -3px -3px 8px rgba(255, 255, 255, 0.7);
}

.rank-badge.top-badge {
    background: linear-gradient(145deg, #f093fb, #e080f7);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.rank-badge.bottom-badge {
    background: linear-gradient(145deg, #ffeaa7, #f5d887);
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Progress Bar Enhanced */
.progress-bar {
    width: 100%;
    height: 24px;
    background: #ecf0f1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 100%);
}

.progress-fill.success {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.progress-fill.orange {
    background: linear-gradient(90deg, #e67e22, #f39c12);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Responsive */
@media (max-width: 768px) {
    .ranking-tabs {
        grid-template-columns: 1fr;
    }

    .tab-icon {
        font-size: 42px;
    }

    .ranking-tab-btn {
        padding: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ranking-tabs {
    animation: fadeInUp 0.6s ease;
}

.ranking-cards {
    animation: fadeInUp 0.8s ease;
}