/* --- MELHORIA VISUAL TOP 3 COMPRADORES --- */
.top-buyers-container {
  padding: 18px 12px 18px 12px;
  background: linear-gradient(135deg, #23272b 0%, #2c3e50 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.top-buyer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border-radius: 16px;
  border: 1.5px solid rgba(226, 185, 84, 0.22);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: visible;
  min-height: 70px;
  gap: 14px;
  flex-wrap: nowrap;
  box-shadow: 0 2px 12px rgba(226,185,84,0.08);
}

.top-buyer-item:hover {
    background: linear-gradient(135deg, rgba(226, 185, 84, 0.15) 0%, rgba(242, 172, 67, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 185, 84, 0.2);
    border-color: rgba(226, 185, 84, 0.4);
}

/* Efeito especial para o primeiro lugar */
.top-buyer-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.top-buyer-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    border-radius: 12px 12px 0 0;
}

.top-buyer-item:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 193, 7, 0.15) 100%);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Segundo lugar */
.top-buyer-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(169, 169, 169, 0.1) 100%);
    border-color: rgba(192, 192, 192, 0.4);
    box-shadow: 0 3px 12px rgba(192, 192, 192, 0.2);
}

.top-buyer-item:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.25) 0%, rgba(169, 169, 169, 0.15) 100%);
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.3);
}

/* Terceiro lugar */
.top-buyer-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(184, 115, 51, 0.1) 100%);
    border-color: rgba(205, 127, 50, 0.4);
    box-shadow: 0 3px 12px rgba(205, 127, 50, 0.2);
}

.top-buyer-item:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.25) 0%, rgba(184, 115, 51, 0.15) 100%);
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.3);
}

/* Estilos para o ranking */
.buyer-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e2b954 0%, #f2ac43 100%);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(226, 185, 84, 0.3);
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.buyer-rank i {
    z-index: 2;
    position: relative;
}

.buyer-rank::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Estilos para as informações do comprador */
.buyer-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.buyer-avatar {
    margin-right: 10px;
    flex-shrink: 0;
}

.player-head {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e2b954;
    box-shadow: 0 2px 8px rgba(226, 185, 84, 0.3);
    transition: all 0.3s ease;
    background: #fff;
}

.player-head:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(226, 185, 84, 0.4);
    border-color: #f2ac43;
}

/* Cores específicas para cada posição */
.top-buyer-item:nth-child(1) .player-head {
    border-color: #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.top-buyer-item:nth-child(2) .player-head {
    border-color: #C0C0C0;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.top-buyer-item:nth-child(3) .player-head {
    border-color: #CD7F32;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.buyer-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.buyer-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #e2b954 0%, #f2ac43 100%);
  padding: 2px 12px;
  border-radius: 8px;
  margin-bottom: 2px;
  box-shadow: 0 1px 4px rgba(226,185,84,0.10);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  word-wrap: break-word;
  word-break: break-word;
}

.buyer-stats {
    font-size: 12px;
    color: #95a5a6;
}

/* Estilos para o valor gasto */
.buyer-amount {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e2b954;
  background: #23272b;
  padding: 6px 16px;
  border-radius: 10px;
  border: 2px solid #e2b954;
  min-width: 100px;
  max-width: 180px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  box-shadow: 0 2px 8px rgba(226,185,84,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buyer-amount span {
  font-size: 1.1rem;
  color: #fff;
  margin-left: 6px;
}

.buyer-amount:hover {
    background: linear-gradient(135deg, rgba(226, 185, 84, 0.2) 0%, rgba(242, 172, 67, 0.1) 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(226, 185, 84, 0.2);
}

/* Cores específicas para cada posição */
.top-buyer-item:nth-child(1) .buyer-amount {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    color: #FFD700;
}

.top-buyer-item:nth-child(2) .buyer-amount {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(169, 169, 169, 0.1) 100%);
    border-color: rgba(192, 192, 192, 0.4);
    color: #C0C0C0;
}

.top-buyer-item:nth-child(3) .buyer-amount {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(184, 115, 51, 0.1) 100%);
    border-color: rgba(205, 127, 50, 0.4);
    color: #CD7F32;
}

/* Responsividade */
@media (max-width: 768px) {
    .top-buyers-container {
        padding: 10px;
    }
    
    .top-buyer-item {
        padding: 10px 12px;
        min-height: 60px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .buyer-rank {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .player-head {
        width: 32px;
        height: 32px;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .buyer-name {
        font-size: 14px;
        padding: 3px 6px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .buyer-amount {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 100px;
        flex-shrink: 0;
    }
}

@media (max-width: 900px) {
  .top-buyer-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 8px;
  }
  .buyer-amount {
    min-width: 100px;
    max-width: 100%;
    font-size: 1.1rem;
    padding: 5px 12px;
  }
  .buyer-name {
    max-width: none;
    font-size: 1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}
@media (max-width: 600px) {
  .top-buyer-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 4px;
  }
  .buyer-amount {
    min-width: 80px;
    font-size: 1rem;
    padding: 4px 8px;
  }
  .buyer-name {
    max-width: none;
    font-size: 0.95rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .player-head {
    width: 36px;
    height: 36px;
  }
  .buyer-rank {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* Animação de entrada */
.top-buyer-item {
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.top-buyer-item:nth-child(1) {
    animation-delay: 0.1s;
}

.top-buyer-item:nth-child(2) {
    animation-delay: 0.2s;
}

.top-buyer-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorar a legibilidade do texto */
.top-buyers-container {
    color: #ecf0f1;
}

.top-buyers-container .text-muted {
    color: #bdc3c7 !important;
}

/* Efeito de destaque para valores altos */
.buyer-amount[data-amount]:not([data-amount=""]) {
    position: relative;
}

.buyer-amount[data-amount]:not([data-amount=""])::after {
    content: '🔥';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.buyer-amount[data-amount]:not([data-amount=""]):hover::after {
    opacity: 1;
} 