/* Ranking Page Styles */
.ranking-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 20px;
    color: #fff;
}

/* Pódio Section */
.podium-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 40px 0;
}

.podium-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    max-width: 800px;
    width: 100%;
    justify-content: center;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.podium-card {
    background: linear-gradient(145deg, #2a1810, #1a1008);
    border: 2px solid #8b4513;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    position: relative;
    margin-bottom: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.podium-card:hover {
    transform: translateY(-5px);
}

.rank-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #8b4513;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 3px solid #fdda9a;
}

.rank-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

}

.rank-icon-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(139, 69, 19, 0.1);
    padding: 2px;
}

.player-avatar {
    margin: 20px 0 15px 0;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fdda9a;
    object-fit: cover;
}

.player-info {
    color: #fdda9a;
}

.player-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.player-level {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    color: #bfa77a;
}

.player-info .player-guild {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    color: #87ceeb;
}

.player-points {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

/* Bases do Pódio */
.podium-base {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
}

.first-base {
    background: linear-gradient(145deg, #ffd700, #b8860b);
    height: 80px;
    border: 2px solid #ffed4e;
}

.second-base {
    background: linear-gradient(145deg, #c0c0c0, #808080);
    height: 70px;
    border: 2px solid #e5e5e5;
}

.third-base {
    background: linear-gradient(145deg, #cd7f32, #8b4513);
    height: 60px;
    border: 2px solid #daa520;
}

.podium-label {
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: #000;
}

/* Posicionamento do Pódio */
.first-place {
    order: 2;
}

.second-place {
    order: 1;
}

.third-place {
    order: 3;
}

/* Ranking Table Section */
.ranking-table-section {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #333;
}

.ranking-header {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 2px solid #444;
}

.header-item {
    text-align: center;
    font-weight: bold;
    color: #fdda9a;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ranking-list {
    max-height: 600px;
    overflow-y: auto;
}

.ranking-item {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 80px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
    background: rgba(20, 20, 20, 0.8);
}

.ranking-item:hover {
    background: rgba(40, 40, 40, 0.9);
}

.rank-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rank-dot {
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

.player-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fdda9a;
}

.player-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    flex: 1;
}

.player-name-rank {
    font-weight: bold;
    color: #fdda9a;
    font-size: 1rem;
    margin-bottom: 2px;
}

.player-guild {
    font-size: 0.8rem;
    color: #bfa77a;
}

.player-title {
    text-align: center;
}

.title-legend {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-rookie {
    background: linear-gradient(135deg, #32cd32, #228b22);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-champion {
    background: linear-gradient(135deg, #ff6347, #dc143c);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-contender {
    background: linear-gradient(135deg, #4169e1, #191970);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-warrior {
    background: linear-gradient(135deg, #708090, #2f4f4f);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-stats {
    text-align: center;
}

.stat-item {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.player-rank-number {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fdda9a;
}

/* Paginação */
.pagination-section {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    border-top: 2px solid #333;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-link {
    padding: 8px 12px;
    background: rgba(40, 40, 40, 0.8);
    color: #fdda9a;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #555;
    transition: all 0.3s ease;
    font-weight: bold;
}

.page-link:hover {
    background: rgba(60, 60, 60, 0.9);
    color: #fff;
    transform: translateY(-2px);
}

.page-link.active {
    background: linear-gradient(135deg, #fdda9a, #d4af37);
    color: #000;
    border-color: #fdda9a;
}

.page-link.dots {
    background: transparent;
    border: none;
    color: #666;
}

.pagination-info {
    color: #bfa77a;
    font-size: 0.9rem;
}

/* Scrollbar para ranking-list */
.ranking-list::-webkit-scrollbar {
    width: 8px;
}

.ranking-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.ranking-list::-webkit-scrollbar-thumb {
    background: #fdda9a66;
    border-radius: 4px;
}

.ranking-list::-webkit-scrollbar-thumb:hover {
    background: #fdda9a99;
}

/* Responsividade */
@media (max-width: 1200px) {
    .podium-container {
        gap: 15px;
    }
    
    .podium-card {
        padding: 15px;
    }
    
    .avatar-img {
        width: 70px;
        height: 70px;
    }
    
    .ranking-item {
        padding: 12px 15px;
        grid-template-columns: 40px 2fr 1fr 1fr 70px;
    }
}

@media (max-width: 900px) {
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .podium-place {
        order: unset !important;
    }
    
    .ranking-header {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 0.9rem;
    }
    
    .ranking-item {
        grid-template-columns: 40px 2fr 60px;
    }
    
    .player-title,
    .player-stats {
        display: none;
    }
    
    .pagination-section {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .ranking-container {
        padding: 10px;
    }
    
    .podium-card {
        padding: 10px;
        width: 200px;
    }
    
    .avatar-img {
        width: 60px;
        height: 60px;
    }
    
    .ranking-item {
        padding: 10px;
        grid-template-columns: 30px 1fr 50px;
    }
    
    .player-avatar-small {
        width: 30px;
        height: 30px;
    }
    
    .player-section {
        gap: 10px;
    }
    
    .header-item {
        font-size: 0.8rem;
    }
}

/* Custom styles for video background and search */
.header {
    position: relative;
    z-index: 100 !important;
}

.bg-video-container {
    position: relative;
    z-index: 50 !important;
}

.bg-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/silkroad-map.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3) blur(1px);
    z-index: -1;
}

.ranking-container {
    background: none !important;
}

/* Table Controls Container */
.table-controls {
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
}

/* Ranking Selector */
.ranking-selector-section {
    flex: 0 0 auto;
}

.selector-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selector-label {
    color: #e5d4a1;
    font-weight: bold;
    font-size: 1rem;
}

.ranking-selector {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #fdda9a;
    border-radius: 8px;
    color: #e5d4a1;
    font-size: 16px;
    padding: 8px 15px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ranking-selector:hover {
    border-color: #d4af37;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
}

.ranking-selector:focus {
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.ranking-selector option {
    background: #2a2a2a;
    color: #e5d4a1;
}

/* Search Section */
.search-section {
    flex: 0 0 auto;
}

.search-container {
    display: inline-flex;
    align-items: center;
    border: 2px solid #fdda9a;
    border-radius: 25px;
    padding: 5px;
}

.search-input {
    background: transparent;
    border: none;
    color: #e5d4a1;
    font-size: 16px;
    padding: 10px 15px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-button {
    background: linear-gradient(145deg, #d4af37, #b8941f);
    border: none;
    border-radius: 20px;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(145deg, #b8941f, #d4af37);
    transform: scale(1.05);
}

/* Podium Section Updates */
.podium-section {
    margin-bottom: 40px;
}

.podium-place {
    cursor: pointer;
    transition: all 0.3s ease;
}

.podium-place:hover {
    transform: translateY(-10px) scale(1.05);
}

.podium-place:hover .podium-card {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
    border-color: #fff;
}

/* Updated Ranking Table */
.ranking-table-section {
    border: 2px solid #fdda9a;
    border-radius: 15px;
    overflow: hidden;
}

.ranking-header {
    background: linear-gradient(145deg, #d4af37, #b8941f);
    color: #000;
    display: grid;
    grid-template-columns: 100px 350px 250px 200px 150px;
    padding: 15px;
    font-weight: bold;
    font-size: 1rem;
    align-items: center;
}

.ranking-header .header-item {
    text-align: center;
}

.ranking-header .header-item:first-child {
    text-align: center;
}

.ranking-header .header-item:nth-child(2) {
    text-align: center;
}

.ranking-item {
    display: grid;
    grid-template-columns: 100px 350px 250px 200px 150px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(253, 218, 154, 0.2);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.rank-position {
    text-align: center;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
}

.player-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 125px;
}

/* Updated Player avatars */
.player-avatar-small {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-avatar-small:hover {
    transform: scale(1.1);
}

.player-avatar-small img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
}

.player-name-rank {
    color: #e5d4a1;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.player-name-rank:hover {
    color: #d4af37;
}

.player-guild {
    text-align: center;
}

.guild-link {
    color: #87ceeb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guild-link:hover {
    color: #add8e6;
}

.no-guild {
    color: #a0a0a0;
    font-style: italic;
}

.player-level, .player-points {
    color: #e5d4a1;
    font-weight: bold;
    text-align: center;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #a0a0a0;
    font-style: italic;
}

.no-results p {
    margin: 0;
    font-size: 1.1rem;
}

/* Updated Responsive */
@media (max-width: 768px) {
    .ranking-container {
        padding: 20px 10px 80px 10px;
    }
    
    .ranking-header, .ranking-item {
        grid-template-columns: 60px 1fr 80px;
        gap: 10px;
        font-size: 0.9rem;
    }
    
    .player-section {
        padding-left: 10px;
    }
    
    .player-guild, .player-level {
        display: none;
    }
    
    .ranking-header .header-item:nth-child(3), 
    .ranking-header .header-item:nth-child(5) {
        display: none;
    }
    
    .search-input {
        width: 200px;
    }
    
    .controls-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .ranking-selector-section,
    .search-section {
        text-align: center;
    }
    
    .selector-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .ranking-selector {
        font-size: 14px;
        padding: 6px 12px;
        width: 200px;
    }
} 