﻿.ranking-background {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ranking-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f3f3;
    border-radius: 30px;
    padding: 5px;
    width: 80%;
    min-width: 500px;
    height: 60px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ranking-switch button {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 18px;
    font-size: 18px;
    color: #333;
    border-radius: 30px;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.ranking-switch button.active {
    background: #030617;
    color: white;
}

.ranking-images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 100px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    width: 80%;
    min-width: 500px;
}

.ranking-img-primeiro {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #FFD700;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 2;
    resize: both;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.ranking-img-segundo {
    border: 4px solid #C0C0C0;
}

.ranking-img-terceiro {
    border: 4px solid #CD7F32;
}

.ranking-img-segundo,
.ranking-img-terceiro {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    z-index: 1;
    transform: translateY(25px);
    resize: both;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.ranking-top-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 160px;
}

.ranking-top-name {
    font-size: 26px;
    font-weight: bold;
    color: #030617;
    width: auto;
    min-width: 200px;
    margin-bottom: 6px;
}

.ranking-top-pontos {
    font-size: 22px;
    color: #030617;
    display: flex;
    align-items: center;
}

.ranking-top-item .ranking-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    color: #030617;
}

.ranking-top-item .ranking-pontos {
    font-size: 16px;
    color: #030617;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}


.ranking-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px 80px;
    width: 100%;
    max-width: 700px;
    gap: 16px;
}

.ranking-item {
    display: flex;
    align-items: center;
    width: 100%;
    /*    background: #f9f9f9;*/
    border-radius: 25px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-width: 1px;
    border-color: #D9D9D9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ranking-item:hover {
    transform: scale(1.02);
}

.ranking-posicao {
    font-size: 28px;
    font-weight: bold;
    color: #030617;
    margin-right: 15px;
    text-align: center;
    width: 50px;
}

.ranking-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #030617;
    margin-right: 20px;
    padding: 5px;
}

.ranking-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ranking-name {
    font-size: 20px;
    font-weight: bold;
    color: #030617;
    margin-bottom: 6px;
}

.ranking-pontos {
    font-size: 16px;
    color: #030617;
    display: flex;
    align-items: center;
}

.ranking-pontos img {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}
