/**
 * Tipsters Aggregate Stats - Modern Apple-Style Design
 * Icon left, stats right
 */

.tipsters-aggregate-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* Individual stat card */
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Icon container */
.stat-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: #3b82f6;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stat-icon svg {
  width: 40px;
  height: 40px;
}

/* Content area (right side) */
.stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Label */
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Value */
.stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-value--positive {
  color: #10b981;
}

.stat-value--negative {
  color: #ef4444;
}

/* Specific card styling */
.stat-profit .stat-icon {
  color: #10b981;
}

.stat-profit:hover .stat-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-yield .stat-icon {
  color: #10b981;
}

.stat-yield:hover .stat-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-profit:hover .stat-icon svg,
.stat-yield:hover .stat-icon svg {
  fill: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .tipsters-aggregate-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card {
    padding: 16px 20px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .stat-icon svg {
    width: 32px;
    height: 32px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
  }
}
