/* /assets/css/player_card.css */
.player-card-container {
    background-color: var(--bg-panel);
    margin: 15px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Parte superior: Avatar, Nome e XP */
.player-profile-top {
    display: flex;
    padding: 15px;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--bg-panel-light);
}

.avatar-wrapper {
    position: relative;
    width: 75px;
    height: 75px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: cover;
}

.level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-info {
    flex-grow: 1;
}

.player-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.player-rank {
    font-size: 0.85rem;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.xp-bar-bg {
    background-color: var(--bg-dark);
    height: 8px;
    border-radius: 4px;
    width: 100%;
    position: relative;
    margin-bottom: 5px;
}

.xp-bar-fill {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-gold));
    height: 100%;
    border-radius: 4px;
    width: 60%; /* Exemplo: 60% preenchido */
}

.xp-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

/* Parte inferior: Estatísticas */
.player-stats {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: rgba(0,0,0,0.2);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item:not(:last-child) {
    border-right: 1px solid var(--bg-panel-light);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.val-win { color: var(--success-green); }
.val-draw { color: var(--accent-blue); }
.val-loss { color: var(--danger-red); }

/* /assets/css/player_card.css (Adicionar ao final) */

.name-and-coins {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.shinobits-badge {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    padding: 3px 8px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--primary-gold);
}

.shinobits-badge .coin-icon {
    font-size: 14px; /* Ícone um pouco menor para caber melhor no card */
    margin-right: 4px;
}

.shinobits-badge .amount {
    font-weight: bold;
    color: var(--primary-gold);
    font-size: 0.8rem;
}