/* === Best Traders Slider === */

/* Container with proper spacing and section styling */
.best-traders-slider-container {
  margin: 3rem auto;
  padding: 0;
  max-width: 100%;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Section header */
.best-traders-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--neutral-50) 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--neutral-200);
  position: relative;
}

.best-traders-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--success-500), var(--primary-500));
}

.best-traders-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.best-traders-subtitle {
  font-size: 0.9375rem;
  color: var(--neutral-600);
  margin: 0;
}

/* Scroll container with hidden scrollbar */
.best-traders-slider-scroll {
  overflow-x: auto;
  padding: 2rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.best-traders-slider-scroll::-webkit-scrollbar {
  display: none;
}

/* Slider flex container */
.best-traders-slider {
  display: flex;
  gap: 1.5rem;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  scroll-padding-left: 1rem;
}

/* Individual trader card with enhanced styling */
.best-card {
  min-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Animated gradient border on hover */
.best-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #3b82f6, #10b981, #8b5cf6, #3b82f6);
  background-size: 400% 400%;
  border-radius: var(--radius-2xl);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--duration-normal) var(--ease-out);
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hover effect with enhanced animation */
.best-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: transparent;
}

.best-card:hover::before {
  opacity: 1;
}

/* Profile image with enhanced effects */
.best-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid white;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  z-index: 1;
}

.best-card:hover img {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  border-radius: var(--radius-xl);
}

/* Username styling with gradient text */
.best-card .best-username {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--neutral-900);
  margin-bottom: 0.375rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

/* Wallet address with improved styling */
.best-card .best-wallet {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin-bottom: 1.5rem;
  letter-spacing: 0.025em;
  padding: 0.375rem 0.75rem;
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  transition: all var(--duration-fast) var(--ease-out);
}

.best-card:hover .best-wallet {
  background: var(--neutral-100);
  border-color: var(--neutral-300);
}

/* Enhanced stats section */
.best-card-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--neutral-100);
  border-bottom: 1px solid var(--neutral-100);
  width: 100%;
}

.best-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: center;
}

.best-stat-label {
  font-size: 0.75rem;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.best-stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--neutral-900);
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced action button with ripple effect */
.best-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: white;
  border: 2px solid white;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.best-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.best-btn:hover::before {
  width: 300px;
  height: 300px;
}

.best-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.best-btn:active {
  transform: translateY(0);
}

/* Arrow icon */
.best-btn::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13 7l5 5m0 0l-5 5m5-5H6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--duration-fast) var(--ease-out);
}

.best-btn:hover::after {
  transform: translateX(2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .best-traders-slider-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 2rem -1rem;
  }
  
  .best-traders-header {
    padding: 1.5rem 1rem;
  }
  
  .best-traders-title {
    font-size: 1.125rem;
  }
  
  .best-traders-subtitle {
    font-size: 0.875rem;
  }
  
  .best-traders-slider-scroll {
    padding: 1.5rem 1rem;
  }
  
  .best-traders-slider {
    gap: 1rem;
  }
  
  .best-card {
    min-width: 280px;
    padding: 1.5rem 1.25rem;
  }
  
  .best-card img {
    width: 72px;
    height: 72px;
  }
  
  .best-card .best-username {
    font-size: 1rem;
  }
  
  .best-card-stats {
    gap: 1.5rem;
  }
  
  .best-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .best-card {
    min-width: 260px;
  }
}