/* =========================================
   ESTILOS EXCLUSIVOS DO RANKING
========================================= */

.ranking-card h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 16px;
}


/* =========================================
   ABAS DO RANKING
========================================= */

.ranking-tabs {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
}

.ranking-tabs .tab-btn {
    box-sizing: border-box;

    flex: 1 1 0;
    width: 50%;
    min-width: 0;

    height: 42px;
    min-height: 42px;

    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    border: 2px solid var(--primary-color);

    background: transparent;
    color: var(--primary-color);

    font-family: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ranking-tabs .tab-btn:hover {
    background-color: var(--notice-bg);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.ranking-tabs .tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(179, 94, 175, 0.25);
}


/* =========================================
   LISTA E ITENS
========================================= */

.ranking-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    min-height: 150px;
    padding: 0;
    margin: 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 14px;

    background-color: var(--notice-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;

    animation: fadeIn 0.3s ease;
}


/* =========================================
   ANIMAÇÃO
========================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   POSIÇÕES
========================================= */

/*
 * Todas as posições usam a cor principal
 * da identidade visual da página.
 */

.ranking-rank {
    min-width: 32px;
    width: 32px;

    text-align: center;

    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1rem;

    flex-shrink: 0;
}


/* 1º, 2º e 3º */

.rank-1 .ranking-rank,
.rank-2 .ranking-rank,
.rank-3 .ranking-rank {
    color: var(--primary-color) !important;
    text-shadow: none;
}


/* 4º e 5º */

.rank-other .ranking-rank {
    color: var(--primary-color) !important;
    font-size: 1rem;
}


/* =========================================
   NOME
========================================= */

.ranking-name {
    flex: 1;

    font-weight: 700;
    font-size: 0.9rem;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-color);
}


/* =========================================
   VALOR
========================================= */

.ranking-amount {
    font-weight: 800;
    font-size: 0.9rem;

    color: var(--primary-color) !important;

    white-space: nowrap;
}


/* =========================================
   STATUS
========================================= */

.ranking-status {
    font-size: 0.85rem;
    color: var(--subtitle-color);
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}
