/* ranking_style.css - Estilos para a página de rankings */
.ranking-section {
    padding: 40px 0;
    background: #fff; /* Fundo branco no modo claro */
    min-height: 80vh;
}
.ranking-section .section-header {
    text-align: center;
    margin-bottom: 32px;
}
.ranking-section .section-header h2 {
    color: #111;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.ranking-section .section-header span {
    color: #0a1444; /* Azul escuro para destaque */
}
.ranking-table-wrapper {
    overflow-x: auto;
    background: #fff; /* Fundo branco no modo claro */
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: #222; /* Texto escuro no modo claro */
    font-size: 1.1rem;
    background: transparent;
}
.ranking-table th, .ranking-table td {
    padding: 14px 10px;
    text-align: left;
}
.ranking-table th {
    background: #fff;
    color: #0a1444; /* Azul escuro para títulos */
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 2px solid #0a1444;
}
.ranking-table tr {
    border-bottom: 1px solid #e5e7ef;
    transition: background 0.2s;
}
.ranking-table tr:hover {
    background: #f5f7fa;
}
.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.player-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffb400;
    background: #fff;
}
@media (max-width: 600px) {
    .ranking-table th, .ranking-table td {
        padding: 8px 4px;
        font-size: 0.95rem;
    }
    .ranking-section .section-header h2 {
        font-size: 1.5rem;
    }
    .ranking-table-wrapper {
        padding: 8px;
    }
}

body.night-mode .ranking-section {
    background: #101A3C; /* Fundo azul escuro correto no modo noturno */
}
body.night-mode .ranking-section .section-header h2 {
    color: #fff;
}
body.night-mode .ranking-section .section-header span {
    color: #ffb400;
}
body.night-mode .ranking-table-wrapper {
    background: #181c24;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
body.night-mode .ranking-table {
    color: #ffe082;
}
body.night-mode .ranking-table th {
    background: #181c24;
    color: #ffd54f;
    border-bottom: 2px solid #ffd54f;
}
body.night-mode .ranking-table tr {
    border-bottom: 1px solid #23283a;
}
body.night-mode .ranking-table tr:hover {
    background: #23283a;
}
body.night-mode .player-avatar {
    background: #23283a;
    border-color: #ffd54f;
}
