/* ========================================
   RANKING STYLES
   ======================================== */

/* Hero Section */
.ranking-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #010000;
}

.ranking-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.ranking-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(1,0,0,0.85) 0%, rgba(82,32,21,0.95) 100%);
    z-index: 2;
}

.ranking-hero-content {
    position: relative;
    z-index: 3;
}

.ranking-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #FEFCFB;
    text-shadow: 0 0 30px rgba(250, 82, 38, 0.8), 
                 0 4px 20px rgba(0, 0, 0, 0.9);
    animation: glow-title 2s ease-in-out infinite alternate;
}

@keyframes glow-title {
    from { 
        text-shadow: 0 0 30px rgba(250, 82, 38, 0.8), 
                     0 4px 20px rgba(0, 0, 0, 0.9); 
    }
    to { 
        text-shadow: 0 0 50px rgba(250, 82, 38, 1), 
                     0 4px 20px rgba(0, 0, 0, 0.9); 
    }
}

/* Trophy Animation */
.trophy-icon {
    animation: bounce-trophy 2s ease-in-out infinite;
}

@keyframes bounce-trophy {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(-5deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(5deg); 
    }
}

/* Submenú de Rankings */
.ranking-submenu {
    background: linear-gradient(135deg, rgba(82, 32, 21, 0.95) 0%, rgba(1, 0, 0, 0.95) 100%);
    border-bottom: 2px solid rgba(250, 82, 38, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.submenu-link {
    padding: 1rem 1.5rem;
    color: #FEFCFB;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.submenu-link:hover {
    background: rgba(250, 82, 38, 0.2);
    color: #FA5226;
}

.submenu-link.active {
    background: rgba(250, 82, 38, 0.3);
    color: #FA5226;
    border-bottom-color: #FA5226;
}

/* Ranking Card */
.ranking-card {
    background: linear-gradient(135deg, rgba(82, 32, 21, 0.95) 0%, rgba(1, 0, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(250, 82, 38, 0.5);
    transition: all 0.3s ease;
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, rgba(188, 50, 16, 0.15) 0%, rgba(250, 82, 38, 0.1) 100%);
    border: 1px solid rgba(250, 82, 38, 0.3);
}

/* Table Styles */
.ranking-table {
    background: rgba(1, 0, 0, 0.3);
    border: 1px solid rgba(250, 82, 38, 0.3);
    overflow: hidden;
}

.ranking-table thead {
    background: linear-gradient(135deg, #BC3210 0%, #FA5226 100%);
}

.ranking-table tbody tr {
    border-bottom: 1px solid rgba(250, 82, 38, 0.2);
    transition: all 0.2s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(250, 82, 38, 0.1);
    transform: translateX(5px);
}

.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(218, 165, 32, 0.1) 100%) !important;
}

.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(169, 169, 169, 0.1) 100%) !important;
}

.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(184, 115, 51, 0.1) 100%) !important;
}

/* Buttons */
.btn-filter {
    background: linear-gradient(135deg, #BC3210 0%, #FA5226 100%);
    transition: all 0.3s ease;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 82, 38, 0.5);
}

.btn-reset {
    background: linear-gradient(135deg, rgba(145, 128, 124, 0.8) 0%, rgba(82, 32, 21, 0.8) 100%);
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: linear-gradient(135deg, rgba(145, 128, 124, 1) 0%, rgba(82, 32, 21, 1) 100%);
    transform: translateY(-2px);
}

/* Discord Floating Button */
.discord-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float-discord 3s ease-in-out infinite;
}

@keyframes float-discord {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

.discord-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.discord-button:hover {
    transform: scale(1.1) rotate(5deg);
}

.discord-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(250, 82, 38, 0.8));
    animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

.discord-text {
    color: #FEFCFB;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .ranking-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .ranking-hero {
        min-height: 35vh;
    }
    
    .ranking-hero-background {
        background-position: center top;
        transform: scale(1.1);
    }
    
    .trophy-icon {
        font-size: 3rem !important;
    }
    
    .submenu-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .submenu-link span {
        display: none;
    }
    
    .submenu-link i {
        font-size: 1.25rem;
    }
    
    .discord-float {
        bottom: 20px;
        right: 20px;
    }
    
    .discord-logo {
        width: 40px;
        height: 40px;
    }
    
    .ranking-table {
        font-size: 0.875rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.5rem !important;
    }
}

@media (max-width: 640px) {
    .ranking-title {
        font-size: 1.75rem;
    }
    
    .ranking-table {
        font-size: 0.75rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.4rem !important;
    }
}