/* Ranking Page Styles */

/* Base Styles */
.ranking-page {
    padding: 2rem 1rem;
    min-height: 70vh;
}

.ranking-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.ranking-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.ranking-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.ranking-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Tabs */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.class-tab-header {
    text-align: center;
    margin-bottom: 2rem;
}

.class-tab-header h2 {
    font-size: 2rem;
    color: #2d3748;
}

/* Podium Section */
.podium-section {
    margin-bottom: 3rem;
}

.podium-title {
    text-align: center;
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 700;
}

.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 900px;
}

.podium-item {
    flex: 1;
    max-width: 280px;
    position: relative;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podium-item.rank-1 {
    animation-delay: 0.2s;
}

.podium-item.rank-2 {
    animation-delay: 0s;
}

.podium-item.rank-3 {
    animation-delay: 0.4s;
}

.crown-absolute {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: float 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    z-index: 10;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.podium-player-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.podium-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.rank-1 .podium-player-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
    border: 3px solid #FFD700;
}

.rank-2 .podium-player-card {
    border: 3px solid #C0C0C0;
}

.rank-3 .podium-player-card {
    border: 3px solid #CD7F32;
}

.medal-container {
    text-align: center;
    margin-bottom: 1rem;
}

.medal {
    font-size: 4rem;
    display: inline-block;
}

.medal.gold {
    animation: rotate-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.medal.silver {
    animation: bounce 2s ease-in-out infinite;
}

.medal.bronze {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes rotate-pulse {

    0%,
    100% {
        transform: rotate(-5deg) scale(1);
    }

    50% {
        transform: rotate(5deg) scale(1.1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.player-details {
    text-align: center;
}

.player-rank {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.player-name-podium {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.rank-1 .player-name-podium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
}

.hero-star {
    font-size: 1.2rem;
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.player-class-podium {
    margin: 0.75rem 0;
}

.player-guild-podium {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 600;
}

.guild-icon {
    margin-right: 0.25rem;
}

.no-guild-text {
    color: #cbd5e0;
    font-style: italic;
    font-weight: 400;
}

/* Podium Stands */
.podium-stand {
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    color: white;
}

.rank-1-stand {
    height: 150px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.rank-2-stand {
    height: 120px;
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.rank-3-stand {
    height: 90px;
    background: linear-gradient(135deg, #CD7F32 0%, #B8732D 100%);
}

.stand-rank {
    opacity: 0.7;
}

/* Table Section */
.table-section {
    margin-top: 3rem;
}

.table-title {
    text-align: center;
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.ranking-table-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ranking-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.ranking-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.ranking-table tr:hover {
    background: #f7fafc;
}

.rank-cell {
    font-weight: 600;
    color: #4a5568;
}

.name-cell {
    font-weight: 600;
    color: #2d3748;
}

.hero-badge-small {
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

/* Class Ranking Section (for Class Tabs) */
.class-ranking-section {
    margin-bottom: 2rem;
}

/* Champion Row in Tables */
.champion-row {
    background: linear-gradient(90deg,
            rgba(255, 215, 0, 0.15) 0%,
            rgba(255, 215, 0, 0.08) 50%,
            rgba(255, 215, 0, 0.15) 100%) !important;
    border-left: 4px solid #FFD700;
    border-right: 4px solid #FFD700;
}

.champion-row:hover {
    background: linear-gradient(90deg,
            rgba(255, 215, 0, 0.25) 0%,
            rgba(255, 215, 0, 0.15) 50%,
            rgba(255, 215, 0, 0.25) 100%) !important;
}

.champion-rank-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.crown-small {
    font-size: 1.5rem;
    animation: float-small 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes float-small {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.rank-number-champion {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.champion-name {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.champion-guild {
    color: #b7791f !important;
    font-weight: 700 !important;
}

.rank-number {
    font-weight: 600;
    color: #4a5568;
}

.player-name-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Class Badges */
.class-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.class-badge.class-0 {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.class-badge.class-2 {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.class-badge.class-6 {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
}

.class-badge.class-7 {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
}

/* Guild Styles */
.guild-cell {
    color: #2d3748;
    font-weight: 500;
}

.guild-name {
    color: #4a5568;
    font-weight: 600;
}

.no-guild {
    color: #cbd5e0;
    font-style: italic;
}

/* No Data */
.no-data-wrapper {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-data-message {
    color: #a0aec0;
}

/* Info Box */
.ranking-info {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.ranking-info h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ranking-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-info li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.ranking-info li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .podium-container {
        flex-direction: column;
        align-items: center;
    }

    .podium-item {
        max-width: 400px;
        width: 100%;
        margin-bottom: 2rem;
    }

    .podium-stand {
        height: 80px !important;
    }
}

@media (max-width: 768px) {
    .ranking-title {
        font-size: 1.8rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .podium-title {
        font-size: 1.5rem;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .guild-cell {
        display: none;
    }
}